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”)
O código simplesmente escreveu a linha de equilíbrio, nada mais, consultou o projeto e disse que era devido a muitas pesquisas. Mas o pine não configurou a hora da pesquisa, por isso pediu aos grandes deuses que respondessem