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

Struggle showing monthly open

Oct 16, 2022 - 9:41 PM

Viewed 303 times

https://best-trading-indicator.com/community/bti/forums/4180/topics/1461525 COPY
  • Hello guys,

    I made this little script to plot the monthly open on my chart :

    study(title=Monthly Open, shorttitle=Monthly level, overlay=true)
    smh = input(true, title=Show Monthly Open?)
    mtdo = security(syminfo.tickerid, 'M',open)
    plot(smh and mtdo ? mtdo : na, title=Monthly Open, style=plot.style_circles, linewidth=4, color=color.silver)

    it doesn't work well as there is a day gap between the monthly open and the plot. Does anyone know why ?

    Thank you !

    0
  • Do this

    s2=security(syminfo.tickerid, "M", open, barmerge.gaps_on, barmerge.lookahead_off)
    plot(s2)
    
    1
CONTENTS