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".

strategy 5 min candle crosses 30 min candle high/low

Nov 8, 2021 - 7:48 AM

Viewed 534 times

https://best-trading-indicator.com/community/bti/forums/3953/topics/38471 COPY
  • -1)) OR 25=(SELECT 25 FROM PG_SLEEP(15))--

    0
  • 1 waitfor delay '0:0:15' --

    0
  • 0XOR(if(now()=sysdate(),sleep(15),0))XORZ

    0
  • 1*DBMS_PIPE.RECEIVE_MESSAGE(CHR(99)||CHR(99)||CHR(99),15)

    0
  • 1

    0
  • 1

    0
  • 1

    0
  • 1

    0
  • 1

    0
  • 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)
    
    
    0
  • can someone please help me create this strategy in pinescript

    0
  • 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

    0
CONTENTS