Hi,
Could you please attach the progress that you made so far ? (vfs file)
I recommend you to:
- first insert your indicators with the needed settings and "Get historical candle" block with shift 1
Quote:
Buy: if green candle close > BB upper band ----> buy stop +2pip
--> IF block : candle close (from get historical candle) > BB band upper band THEN insert pending open
to calculate the price, take the tick price + 0.0002 = Entry price, then inset this entry price into your pending price.
Quote:
sl: setup bar low -2pip
exit: if red bar close <bb upper band
In the pending open block, there is a setting section in the bottom, open it and set the parameter in PRICE;
use a calculation block to determine the SL price : low (from get historical candle) - 0.0002 = SL PRice then drag it into the pending block
For the exit you need :
1- Check the candle type if Red or Green: compare open and close prices in a IF block
2- IF Open>Close AND IF Close < BB upper band THEN insert Close and cancel position
Cheers