I have a couple of conceptual question.
When I use "CalculateOnBarClose = true".
Using, for exemple: " if(Close[0] > SMA(8)[0]) {EnterLong("Entra Comprado")}" , and the CurrentBar is 1234.
This condition only is defined, and open a buy, after the bar (N. 1234) is closed. If the timeframe is 10 min, for example, the value of de Close[0] and SMA(8)[0] values will vary, but so be defined when the bar closed.
In the case of the stop loss and target profit, when the value of market reaches the value of the of stop loss and target profit, the trade will be closed in the value of the stop loss or in of the target profit. Is that correct ?
Also on the chart when the closing of the bar number 1234 and the condition "Close [0> SMA (8) [0]" are met, a new trade will be to open in bar number 1235. Can you also confirm this??
If the value of market reaches the value of stop loss or target profit in the bar n. 1234 the trade will be closed . even if the bar is not closed.
Comment