Position_Current_Price

 
Am building my first buy EA ......and almost done with it ....but I can't make it close as soon as the bid line of the bar cross the slow moving average can anyone tell me how can I solve this problem
 
Moriti Aston Mathibela how can I solve this problem
  1. There is no such thing as a “bid line” or a “bid line of the bar.” There is just the current bid.
  2. Get the bid and compare it to your “slow moving average.”
  3. You haven't stated a problem, you stated a want. Show us your attempt (using the CODE button) and state the nature of your problem.
              No free help 2017.04.21
  4. Perhaps you should read the manual.
       How To Ask Questions The Smart Way. 2004
          How To Interpret Answers.
             RTFM and STFW: How To Tell You've Seriously Screwed Up.

 
William Roeder:
  1. There is no such thing as a “bid line” or a “bid line of the bar.” There is just the current bid.
  2. Get the bid and compare it to your “slow moving average.”
  3. You haven't stated a problem, you stated a want. Show us your attempt (using the CODE button) and state the nature of your problem.
              No free help 2017.04.21
  4. Perhaps you should read the manual.
       How To Ask Questions The Smart Way. 2004
          How To Interpret Answers.
             RTFM and STFW: How To Tell You've Seriously Screwed Up.

Sorry for the late response and for not adding the EA file to the question here it is
Files:
MA_1_02q.mq5  4 kb