NexusFi: Find Your Edge


Home Menu

 





NT8 - Multi Instrument Indicators


Discussion in NinjaTrader

Updated
    1. trending_up 7,530 views
    2. thumb_up 2 thanks given
    3. group 3 followers
    1. forum 13 posts
    2. attach_file 0 attachments




 
Search this Thread

NT8 - Multi Instrument Indicators

  #11 (permalink)
 choke35 
Germany
 
Experience: Intermediate
Platform: Other
Trading: ES, YM, 6E
Posts: 2,668 since Feb 2013
Thanks Given: 5,101
Thanks Received: 6,558


wuileng View Post

However, when calling the indicator from a strategy, only the third (the hardcode) works. Sorry for not being specific earlier that I was trying to get it to work in the context of a strategy.

ad 1.)
Pardon, but the first sentence doesn't make sense.
Indicators are supposed to be called by strategies.
So - if called correctly - why should a call deliver less than the indicator can do?

ad 2.)
From a performance point of view:
Why would one pack x time series into a strategy that uses indicators that hold these time series anyway?

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
MC PL editor upgrade
MultiCharts
Increase in trading performance by 75%
The Elite Circle
REcommedations for programming help
Sierra Chart
ZombieSqueeze
Platforms and Indicators
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Just another trading journal: PA, Wyckoff & Trends
34 thanks
Tao te Trade: way of the WLD
24 thanks
My NQ Trading Journal
14 thanks
GFIs1 1 DAX trade per day journal
11 thanks
Vinny E-Mini & Algobox Review TRADE ROOM
10 thanks
  #12 (permalink)
 wuileng 
Kuala Lumpur + Malaysia
 
Experience: Advanced
Platform: NinjaTrader
Broker: Interactive Brokers
Trading: ES
Posts: 26 since Aug 2012
Thanks Given: 13
Thanks Received: 9


choke35 View Post
ad 1.)
Pardon, but the first sentence doesn't make sense.
Indicators are supposed to be called by strategies.
So - if called correctly - why should a call deliver less than the indicator can do?

ad 2.)
From a performance point of view:
Why would one pack x time series into a strategy that uses indicators that hold these time series anyway?

What I meant is that when I try to use my indicator from within a strategy (via AddChartIndicator), the strategy fails to run because the indicator is referencing BarsPeriod. However, this does not cause problems when the indicator is just added to a chart (for visual purposes only).

Started this thread Reply With Quote
  #13 (permalink)
 choke35 
Germany
 
Experience: Intermediate
Platform: Other
Trading: ES, YM, 6E
Posts: 2,668 since Feb 2013
Thanks Given: 5,101
Thanks Received: 6,558



wuileng View Post
What I meant is that when I try to use my indicator from within a strategy (via AddChartIndicator), the strategy fails to run because the indicator is referencing BarsPeriod. However, this does not cause problems when the indicator is just added to a chart (for visual purposes only).

Ok, so the problem was more basic
AddChartIndicator is nothing but a visual representation without any flexibility concerning calculations.
But that is also made clear in the manual ...

Reply With Quote
Thanked by:
  #14 (permalink)
 wuileng 
Kuala Lumpur + Malaysia
 
Experience: Advanced
Platform: NinjaTrader
Broker: Interactive Brokers
Trading: ES
Posts: 26 since Aug 2012
Thanks Given: 13
Thanks Received: 9


choke35 View Post
Ok, so the problem was more basic
AddChartIndicator is nothing but a visual representation without any flexibility concerning calculations.
But that is also made clear in the manual ...

I've played around with it a bit more. It seems a workaround for this problem would be to not define my indicator in State.Configure, but instead wait till OnBarUpdate to do so (of course with logic implemented so this code snippet is only called once). It's working fine now, tested with all three lines of AddDataSeries.

I guess the only drawback is that since it's not defined in State.Configure, I can't AddChartIndicator, so I don't have the visual representation but I can live with that. It would be nice to have though, and am surprised this took a step back since it worked fine in NT7.

Thanks again for your help!

Started this thread Reply With Quote
Thanked by:




Last Updated on February 4, 2016


© 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