hi i was trying to code my ea to limit to trade only one trade in a up trend, but somehow it cannot be acheived. can any one help to give some examples here? Thank you