mpr:
iBarShift() with the time that the trade was opened, OrderOpenTime(), will give you the bar number of the candle when the trade was opened.
I'm trying to keep track of the number of candles that passed since a trade opened. ie. - a trade opens at 12:05. it is now 15:10, the lmit has not been reached yet, so the trade is still open. This is a thirty minute chart, so 6 candles has passed since the trade was opened.
Can someone point me in the right direction? Thanks!!
RaptorUK:
iBarShift() with the time that the trade was opened, OrderOpenTime(), will give you the bar number of the candle when the trade was opened.
iBarShift() with the time that the trade was opened, OrderOpenTime(), will give you the bar number of the candle when the trade was opened.
thanks!!!

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
I'm trying to keep track of the number of candles that passed since a trade opened. ie. - a trade opens at 12:05. it is now 15:10, the lmit has not been reached yet, so the trade is still open. This is a thirty minute chart, so 6 candles has passed since the trade was opened.
Can someone point me in the right direction? Thanks!!