Pine script 在第一个购买信号之后添加第二个购买信号?

Pine script 在第一个购买信号之后添加第二个购买信号?,pine-script,Pine Script,我正在编辑一个bolinger band pine脚本,如果价格比第一个条目下降10%,我想添加第二个购买信号。这可能吗?我想它会追求策略。取消(id=“BBandLE”) if(交叉线(震源,下部)) strategy.entry(“BBandLE”,strategy.long,stop=lower,oca_name=“bollingerband”,oca_type=strategy.oca.cancel,comment=“Buy”) 其他的 策略。取消(id=“b处理”) if(交叉下(源,

我正在编辑一个bolinger band pine脚本,如果价格比第一个条目下降10%,我想添加第二个购买信号。这可能吗?我想它会追求策略。取消(id=“BBandLE”)

if(交叉线(震源,下部)) strategy.entry(“BBandLE”,strategy.long,stop=lower,oca_name=“bollingerband”,oca_type=strategy.oca.cancel,comment=“Buy”) 其他的 策略。取消(id=“b处理”)

if(交叉下(源,上)) strategy.entry(“BBandSE”,strategy.short,stop=up,oca_name=“bollingerband”,oca_type=strategy.oca.cancel,comment=“Close”) 其他的 策略。取消(id=“BBandSE”)