NexusFi: Find Your Edge


Home Menu

 





BarsInProgress==0 / BarsArray[0]


Discussion in NinjaTrader

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




 
Search this Thread

BarsInProgress==0 / BarsArray[0]

  #1 (permalink)
 
WolfieWolf's Avatar
 WolfieWolf 
Charlottetown, Prince Edward Island
 
Experience: Advanced
Platform: Ninja
Broker: Optimus - Rithmic
Trading: GC
Posts: 232 since Jul 2010
Thanks Given: 100
Thanks Received: 272

Guys I'm by no means a Ninja guru but I've done my share of coding and I just can't understand this. I've written a strategy based on multiple time series. everywhere in the code I've referenced the BIP1+ and purposely excluded BIP0. I've even aligned my data series objects with the extra BIP's. Shouldn't I be able to attach this strategy to any chart of any resolution and get the same results regardless of the primary time frame? I expected this to be the case but it's not. somewhere, somehow Ninja insists on using BIP0 somehow and I have no idea where.... any takers?

Thanks

Wolfie

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
REcommedations for programming help
Sierra Chart
Better Renko Gaps
The Elite Circle
About a successful futures trader who didn´t know anyth …
Psychology and Money Management
Quant vue
Trading Reviews and Vendors
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
 
  #2 (permalink)
 
ratfink's Avatar
 ratfink 
Birmingham UK
Market Wizard
 
Experience: Intermediate
Platform: NinjaTrader
Broker: TST/Rithmic
Trading: YM/Gold
Posts: 3,633 since Dec 2012
Thanks Given: 17,423
Thanks Received: 8,426


WolfieWolf View Post
Guys I'm by no means a Ninja guru but I've done my share of coding and I just can't understand this. I've written a strategy based on multiple time series. everywhere in the code I've referenced the BIP1+ and purposely excluded BIP0. I've even aligned my data series objects with the extra BIP's. Shouldn't I be able to attach this strategy to any chart of any resolution and get the same results regardless of the primary time frame? I expected this to be the case but it's not. somewhere, somehow Ninja insists on using BIP0 somehow and I have no idea where.... any takers?

Thanks

Wolfie

Remember that all code in OBU still gets all events for all series unless you have else-if's or switch's in place. Just accessing bip[N]'s isn't everything unless you have also taken care of the event streams.

Travel Well
Visit my NexusFi Trade Journal Reply With Quote
  #3 (permalink)
 
WolfieWolf's Avatar
 WolfieWolf 
Charlottetown, Prince Edward Island
 
Experience: Advanced
Platform: Ninja
Broker: Optimus - Rithmic
Trading: GC
Posts: 232 since Jul 2010
Thanks Given: 100
Thanks Received: 272



ratfink View Post
Remember that all code in OBU still gets all events for all series unless you have else-if's or switch's in place. Just accessing bip[N]'s isn't everything unless you have also taken care of the event streams.

Thanks...can you elaborate on that? if specified if(BIP==0)return what else do I need to handle?

Started this thread Reply With Quote
  #4 (permalink)
 
ratfink's Avatar
 ratfink 
Birmingham UK
Market Wizard
 
Experience: Intermediate
Platform: NinjaTrader
Broker: TST/Rithmic
Trading: YM/Gold
Posts: 3,633 since Dec 2012
Thanks Given: 17,423
Thanks Received: 8,426


WolfieWolf View Post
Thanks...can you elaborate on that? if specified if(BIP==0)return what else do I need to handle?

Ok, that way out should be fine.

I can only suggest you add some diagnostic 'Print' calls and open up the output window, otherwise post some code and we can think some more.

Travel Well
Visit my NexusFi Trade Journal Reply With Quote




Last Updated on April 9, 2014


© 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