简体   繁体   中英

Pine script alert

I'm building my startegy for my trading bot using pine script. Everything seems fine on the chart regarding the buy/sell signals. But my issues are on the alerts. Buy and sell alerts are triggered at the same time like the exact second. I failed on trade because of that.

Is there any way to remediate to that please ?

 strategy.risk.allow_entry_in(strategy.direction.long) if ta.crossover(close, sa) if(close > sma) strategy.entry("buy", strategy.long) if ta.crossunder(close,sa) strategy.entry("sell", strategy.short)

Alert being triggered at the same time

Setting alerts on TV I select my strategy here and then connect it to 3commas as explained by their docs

Okok 我找到了解决方法,我需要将策略更改为指标

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