Professional Documents
Culture Documents
BB Haf
BB Haf
if buyEntry
strategy.entry("long", strategy.long, stop=lower, oca_name="BollingerBands",
oca_type=strategy.oca.cancel, comment="long")
strategy.exit("SL",stop=longstop,when=buyEntry,comment="SL")
if sellEntry
strategy.entry("short", strategy.short, stop=upper,
oca_name="BollingerBands", oca_type=strategy.oca.cancel, comment="short")
strategy.exit("SL",stop=shortstop,comment="SL")
//plot(strategy.equity, title="equity", color=color.red, linewidth=2,
style=plot.style_areabr)