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”)
कोड में बस नीचे की समान रेखा लिखें, और कुछ भी नहीं, नीचे के कार्य पत्र से परामर्श करें, यह कहना कि यह बहुत अधिक सर्वेक्षणों के कारण है। लेकिन पाइन ने सर्वेक्षण समय सेट नहीं किया है, कृपया उत्तर दें