NexusFi: Find Your Edge


Home Menu

 





Strategy referencing an indicator drawn object


Discussion in NinjaTrader

Updated
    1. trending_up 1,345 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?
STRATEGY on MC crossEMA
The Elite Circle
What You Know vs How much you know about it
Traders Hideout
MC PL editor upgrade
MultiCharts
Pivot Indicator based on Level2 data
NinjaTrader
Quantum physics & Trading dynamics
The Elite Circle
 
  #3 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,104



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, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,104


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


© 2024 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 - Privacy Policy - Downloads - Top
no new posts