NexusFi: Find Your Edge


Home Menu

 





Help Request for Multi Time Frame Indicator


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one w4w4w with 5 posts (5 thanks)
    2. looks_two Blash with 3 posts (2 thanks)
    3. looks_3 iq200 with 2 posts (2 thanks)
    4. looks_4 Quick Summary with 1 posts (0 thanks)
    1. trending_up 5,279 views
    2. thumb_up 9 thanks given
    3. group 4 followers
    1. forum 11 posts
    2. attach_file 5 attachments




 
Search this Thread
  #11 (permalink)
 iq200 
London, UK
 
Experience: Intermediate
Platform: Ninjatrader, Tradestation
Broker: Kinetick, InteractiveBrokers
Trading: Equities, Futures
Posts: 417 since Jun 2010
Thanks Given: 146
Thanks Received: 286

Can you post your complete indicator file? I'll help you find out what the problem is ..


Sent from my iPhone using NexusFi


Follow me on X Visit my NexusFi Trade Journal Reply With Quote
  #12 (permalink)
 marpol 
San Francisco, CA
 
Experience: Advanced
Platform: IB-TWS, Ninja, Wave59, R
Broker: IB, IQFeed
Trading: ZB
Posts: 37 since Sep 2013
Thanks Given: 0
Thanks Received: 26

Your lines are printing from 2 days ago because of the way OnBarUpdate() works and the fact that you are plotting on a lower time frame.

OnBarUpdate updates at the END of the bar. So if you are in BarsInProgress==1 (or the day data)...and the day is done (when onBarUpdate is called) then you are technically looking back 2 days because onBarUpdate will not get call again for your day data till the end of the day.

Don't know if that makes since or not but basicly try changing High[1][1] to High[1][0]. That should fix it for you.


Reply With Quote




Last Updated on April 12, 2017


© 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