Hi guys,
How can I define the No. of candles? e.g.:
IF (close and close[1] and close[2] and close[3] and close [4] and close… (ALL candlecloses up to x) > sma[50]) and RSI>50) THEN
BUY 1 CONTRACTS AT MARKET
SET STOP pLoss 10
SET TARGET pPROFIT 20
ENDIF
Thanks in advance!
To check that conditions are met for ALL “x” periods:
IF summation[x](close > sma[50]) = x THEN
For just more then 50%:
IF summation[x](close > sma[50]) >= (x/2) THEN
For at least one within “x” periods:
IF summation[x](close > sma[50]) THEN