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")
কোডের ভিতরে শুধু নিচের সমান্তরাল লাইনটা লেখা আছে, আর কিছু না, নিচের ফরমটা দেখা হয়েছে, অনেকগুলো প্রশ্নের উত্তর দেওয়া হয়েছে। কিন্তু পাইনের কাছে প্রশ্নের সময় নির্ধারণ করা হয়নি, তাই মহান দেবতাদের কাছে উত্তর চাইছি।
