long_in = ta.crossover(mafast, maslow) and maslow > nbEma long_out = ta.crossunder(mafast, maslow) and maslow > nbEma
short_in = ta.crossunder(mafast, maslow) and maslow < nbEma short_out = ta.crossover(mafast, maslow) and maslow < nbEma
if long_in strategy.entry(“MA2CrossLE”, strategy.long, comment=“MA2CrossLE”) if long_out strategy.close(“MA2CrossLE”, strategy.long, comment=“MA2CrossLE”)
if long_in strategy.entry(“MA2CrossLE”, strategy.short, comment=“MA2CrossLE”) if short_out strategy.close(“MA2CrossLE”, strategy.short, comment=“MA2CrossLE”)
Der Code schrieb einfach die gleiche Gleichung, nichts anderes, und der Auftrag wurde angefordert, weil es zu viele Umfragen gab. Aber Pine hat keine Umfragezeit eingestellt.