Need some simple scripts of buy & sell !

 

Hello All:

I am a beginner. I need some simple mql4 codes of buy & sell!

1. Buy: When current market price is lower than last close price,their absolute value of the difference between the last close price and the current market price is 6, then open a buy ticket.

2. Sell: When current market price is higher than last close price,their absolute value of the difference between the last close price and the current market price is 6, then open a sell ticket.

Thanks & Best Regards!

 

I often heard that profitable strategies don't have to be very sophisticated. But this is too simple! Do you want such a mql4 script for learning purpose? If so, take a look at the doucmentation and the book. You can also look at examples (customized indicators, scripts) that come with mt4. HTH.

 

If I am not mistaken, perhaps what you are looking for is Gap Trading . I believe there is a lot of free expert or code out there.  I have this one but I do not know whether it will be suitable for your need. 

Files:
Reason: