NexusFi: Find Your Edge


Home Menu

 





Strategy referencing an indicator drawn object


Discussion in NinjaTrader

Updated
    1. trending_up 1,767 views
    2. thumb_up 1 thanks given
    3. group 2 followers
    1. forum 4 posts
    2. attach_file 0 attachments




 
Search this Thread
  #1 (permalink)
jwikker
Vancouver Canada
 
Posts: 3 since Jul 2013
Thanks Given: 1
Thanks Received: 0

I am referencing an indicator inside a strategy. This indicator draws dots and creates alerts to indicate conditions that I would like to check for in the strategy code also. Instead of duplicating the indicator logic in the strategy, how can a strategy access the drawn lines or dots or even alerts for given bars when they are not properties?

FYI The indicator in question is is the D3spotterV2 indicator


Reply With Quote

Can you help answer these questions
from other members on NexusFi?
CME Raises Energy Futures Margins After Iran-War Volatil …
Commodities
Victory Day Delivers: Russia-Ukraine Ceasefire Market Cl …
Prediction Markets & Event Contracts
Five Days Until the Gap Dies -- CME Goes 24/7 on All Dig …
Traders Hideout
CFTC Workforce Shrinks 24% to 15-Year Low While Predicti …
Traders Hideout
Prediction Markets Expiry Day: Trump Eyes War Exit, $230 …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Sober Journey With S&P
24 thanks
2026 Jlab journal
10 thanks
Lady Vols Primer: Trading Volatility Journal
8 thanks
Algo automated / semi-automated trading anyone?
6 thanks
Trying to learn Volume and price action correlation
5 thanks
  #3 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader
Broker: Interactive Brokers
Trading: Futures & Stocks
Posts: 9,887 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,114



jwikker View Post
I am referencing an indicator inside a strategy. This indicator draws dots and creates alerts to indicate conditions that I would like to check for in the strategy code also. Instead of duplicating the indicator logic in the strategy, how can a strategy access the drawn lines or dots or even alerts for given bars when they are not properties?

FYI The indicator in question is is the D3spotterV2 indicator


You would either need to duplicate the logic in the strategy, or access the indicator.

To be able to access the indicator, the indicator should come with a public DataSeries, IntSeries or BoolSeries, such that the logical condition for plotting lines or dots can be accessed.


Reply With Quote
  #4 (permalink)
jwikker
Vancouver Canada
 
Posts: 3 since Jul 2013
Thanks Given: 1
Thanks Received: 0

Thank you. So I can access the dataseries and then duplicate the plotting code in my strategy (but instead of plotting I will set criteria for my strategy). Makes sense.

The indicator in question is editable, could I instead create a bool series in the indicator and set true in it when that indicator is plotting something that I'm interested in? Then I could instead have my strategy more simply refer to my new bool series. Anything wrong with that?


Reply With Quote
  #5 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader
Broker: Interactive Brokers
Trading: Futures & Stocks
Posts: 9,887 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,114


jwikker View Post
Thank you. So I can access the dataseries and then duplicate the plotting code in my strategy (but instead of plotting I will set criteria for my strategy). Makes sense.

The indicator in question is editable, could I instead create a bool series in the indicator and set true in it when that indicator is plotting something that I'm interested in? Then I could instead have my strategy more simply refer to my new bool series. Anything wrong with that?

Yes. this makes sense. You can add a BoolSeries to the indicator. You need a public BoolSeries in order to allow for access by a strategy.


Reply With Quote
Thanked by:




Last Updated on August 7, 2013


© 2026 NexusFi®, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Downloads - Top
no new posts