Forums › ProRealTime English forum › ProOrder support › 3 Candle Strategy › Reply To: 3 Candle Strategy
08/02/2018 at 2:27 PM
#77413
Current Candle is always 0…this means that my calculations are based on candles 2,1,0…if condition is met market order is placed and SL/TP are calculated and linked to open position…
I have to rechek if the code is okay…I found a bug
Does this mean that my SL and TP are calculated based when postion is entered?
As an example:
candle 2,1,0 meet the condition and position will be opened on next candle…
for better understanding
candle 2 is now candle 3,
candle 1 is now candle 2,
candle 0 is now candle 1
and candle 0 is the one in which TPP and SL must be calculated…
Am I right?