简体   繁体   中英

Is the anyway that I can plot bar and which I change the series?

Is there anyway that I can plotbar with condition like this plotbar(COND, Price1, price2), width -> plotbar(close>open, close, open), width when the COND condition is satisfied, plot candle or bar line between the positions of PRICE1 and PRICE2, the width is WIDTH. PLease help... I really need help on this... Please.

Yes.you can apply your condition on color transparency of the color you use in plotbar. for example :

c=(buy or sell)?color.rgb(255,255,0,0):color.rgb(255,255,0,100)
m=close*1.01
plotbar(m,m,m,m, color=c)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM