Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
Okay, I MIGHT have a solution. The default settings for this strat (if memory serves) are set to volume charts. I once read that using a multi-timeframe strat requires not only that all charts are the same (time, volume, range) but that the main chart needs to be the lowest common denominator of all of them. So, if you know how, try changing the latter two from volume to say, 30 and 60 minute charts, and try again.
Let me know if you need help doing that. Otherwise, let me know if that made it work.
Here is what I got from Ninja Support... Its pretty cool if you use CurrentBar BarsInProgress == 0 and BarsInProgress ==1 and see how your bars line up.. I had to do this to figure out where to reset my variables..
Dear gg80108,
NinjaTrader_RyanM has just replied to a thread you have subscribed to entitled - BarsInProgress - in the Strategy Development forum of NinjaTrader Support Forum.
Yes, you can combine range with minute bars when working with BarsInProgress. Series do not have to be part of the same structure.
Main thing to check is that you have the underlying data for the series you're accessing.
Tick - tick data
Volume - tick data
Range - tick data
Second - tick data
Minute - minute bar data
Day - daily bar data
Week - daily bar data
Month - daily bar data
Year - daily bar data
***************
There may be other replies also, but you will not receive any more notifications until you visit the forum again.
The post above talks about how to use different kinds of charts (tick, time, vol), which is beyond the scope of my programming knowledge. That might be the problem. Can you go into the code and comment out the second and third charts and try it again tomorrow? Also, what NT are you using? I built this in 6.5 and haven't personally tested it in 7. In fact, if anyone has done that successfully, please let me know.
Works great in NT7.14,, I did add the getting the actual fill price using Iexecution, since I set my stops and targets from this price and wanted it to be accurate..
Be sure to comment out the if History and the two brackets since this encompasses the whole strategy, if it doesn't work straight away...
I think the key to the post about data for me is u put the code that matches the chart u want to run against in a
if (BarsinProgress == 0)structure.. 0 is the main chart and your adds in the initialize count 1 for the first entry 2 for the second, etc,etc..
what that means is: as long as you're using a data provider that gives you tick-data, you should have no problem switching between vol / tick / range / etc data-series.
Is your friend using a demo account? That does let you use everything but if you're using an actual live account, I don't 'think' you're able to use strats. Maybe I'm wrong. It's happened before. It'll probably happen again before I finish typing this note.
yes my buddy has a free/demo license for ninja and is using the sim101 account to test a strategy.
i have a live license and have been running a strategy on the sim101 account as well. the only difference is that i can create multiple sim accounts (sim101, sim102, sim103, etc.) since i have a live/paid license.