Hi.
How do i code CB2 and CS2 to make them same as CS1 and CB1 to not needing MTF?
timeframe(30minutes, updateonclose)
L30 = Low
H30 = high
timeframe(Default) //3 min
cb1 = (close crosses over H30)
cs1 = (close crosses under L30)
CB2 = close crosses over HIGHEST[10](close)
CS2 = close crosses under Lowest[10](close)
IF A=1 then
IF CB1 THEN
BUY 1 CONTRACTS AT MARKET
ENDIF
IF CS1 THEN
SELLSHORT 1 CONTRACTS AT MARKET
ENDIF
endif
If A=2 then
IF CB2 THEN
BUY 1 CONTRACTS AT MARKET
ENDIF
IF CS2 THEN
SELLSHORT 1 CONTRACTS AT MARKET
ENDIF
endif
SET STOP %LOSS 2
SET TARGET %PROFIT 2
There you go:
CB2 = close crosses over HIGHEST[10](close)
CS2 = close crosses under Lowest[10](close)
IF A=2 then
IF CB2 THEN
BUY 1 CONTRACTS AT MARKET
ENDIF
IF CS2 THEN
SELLSHORT 1 CONTRACTS AT MARKET
ENDIF
endif
SET STOP %LOSS 2
SET TARGET %PROFIT 2