safetrading
10-07-2009, 06:58 AM
Does anyone know how I can reference how many bars have passed since the last trade has closed?
Thanks,
Safetrading
NinjaTrader_Josh
10-07-2009, 07:16 AM
safetrading,
Sure. Try using BarsSinceEntry().
safetrading
10-07-2009, 10:26 AM
Using the BarsSinceEntry() doesn't work. I think perhaps we did not understand each other. I wanted to know how to reference how many bars have passed since the last trade has closed. Once I added the following to my entry criteria, it will not accept any trade signals;
BarsSinceEntry() > 3
It appears the above works on the assumption that a trade is already open, and since I'm currently flat and looking for a trading opportunity, the BarsSinceEntry() > 3 never occurs.
What I need to reference is how many bars have passed since the previous trade has closed.
Any suggestions?
Thanks,
Safetrading
NinjaTrader_Josh
10-07-2009, 10:28 AM
Please use BarsSinceExit() then.