Closing open buy position when condition happens by moving average

 
can someone help me with adding a function to close open buy position when my two moving averages crossover takes place
 
Please help me then. Explain how can i add that function.
 
Mohit Vijay Borse:
can someone help me with adding a function to close open buy position when my two moving averages crossover takes place

Post the code so we can see if you have tried coding it. There is no free help here, the only time we will code for free is when the topic is appealing/interesting enough, or when you have shown effort in trying. Then we wouldn't mind helping you out.  

 
Mohit Vijay Borsecan someone help me with adding a function to close open buy position when my two moving averages crossover takes place

Code Base

MA Cross

Vladimir Karputov, 2017.01.26 09:16

The Expert Advisor based on intersection of two iMA.

In the search link below you will find other options to study:

Search - MQL5 Algo Trading community
Reason: