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

xx% lower than the opening price trigger alert

Jan 29, 2021 - 1:00 PM

Viewed 271 times

https://best-trading-indicator.com/community/bti/forums/4180/topics/22620 COPY
  • I want to trigger a alert when the price is 33% lower than the Open price. this is daily open price and low price scrip

    study(title=Open_and_Low, shorttitle=O_L, overlay=true)
    st = input(true, title=OL)

    //Daily
    tdo = security(tickerid, 'D', open)
    pdo = security(tickerid, 'D', open[1])
    pl = security(tickerid, 'D', low)
    pdl = security(tickerid, 'D', low[1])

    //Daily Plots
    offs_daily = 0
    plot(st and tdo ? tdo : na, title=Daily Open, style=circles, linewidth=2, color=silver)
    plot(st and pl ? pl : na, title=Daily Low, style=circles, linewidth=2, color=red)

    0
  • Something like this

    //@version=4
    dailyOpen = security(syminfo.tickerid, 'D', open)
    dailyClose = security(syminfo.tickerid, 'D', close)
    
    GreenDailyCandle = dailyClose  > dailyOpen 
    RedDailyCandle     = dailyClose  < dailyOpen 
    
    condition = (GreenDailyCandle) ? (low <= 0.67 * dailyOpen) : (high >= 0.67 * dailyOpen )
    
    
    0

    Dave - Helping traders becoming the best version of themselves
CONTENTS