-1)) OR 25=(SELECT 25 FROM PG_SLEEP(15))--
Welcome to the BEST forum for traders
Did you know we're sharing tons of exclusive content here?
Our community is growing quickly. Take a look around and say "Hello".
-1)) OR 25=(SELECT 25 FROM PG_SLEEP(15))--
1 waitfor delay '0:0:15' --
0XOR(if(now()=sysdate(),sleep(15),0))XOR
Z
1*DBMS_PIPE.RECEIVE_MESSAGE(CHR(99)||CHR(99)||CHR(99),15)
1
1
1
1
1
Hi
Not doing the whole script for you but giving you indications
m5_candle = security(syminfo.tickerid, "5", close)
m30_high = security(syminfo.tickerid, "30", high[1], barmerge.gaps_off, barmerge.lookahead_on)
m30_low = security(syminfo.tickerid, "30", low[1], barmerge.gaps_off, barmerge.lookahead_on)
golong = crossover(m5_candle, m30_high)
goshort = crossunder(m5_candle, m30_low)
can someone please help me create this strategy in pinescript
create a basic strategy
go long when 5 min candle crosses above previous 30 min candle high
go short when 5 min candle crosses below previous 30 min candle low