Hi Traders!
I like to keep it SIMPLE! I have written a very simple EA for MT4. It has the following parameters:
input int TakeProfit = 400;
input int StopLoss = 200;
input int MA_PERIOD = 50;
input double Lots = 0.01;
TakeProfit and StopLoss are in points not pips so if your broker has 5 decimal points for the cross, then 200 means 20 pips. MA_PERIOD is the period that the EA will use for the moving average. The default value is 50. What it does is basically look for the price to close above or below the moving average and then it will enter a buy or sell order. It will only open one order at a time and it won't open a new order unless the current order's StopLoss or TakeProfit is triggered.
I have run a few tests and it seems like that with the default parameters it works best for EURUSD under the 5MIN chart. Please run your own tests and let us know what the best pair, timeline and parameters are. The initial capital for the default parameters should be 100. My motto is to start with as little as possible and grow as much and as fast as possible.
Kind Regards,
Markus
I like to keep it SIMPLE! I have written a very simple EA for MT4. It has the following parameters:
input int TakeProfit = 400;
input int StopLoss = 200;
input int MA_PERIOD = 50;
input double Lots = 0.01;
TakeProfit and StopLoss are in points not pips so if your broker has 5 decimal points for the cross, then 200 means 20 pips. MA_PERIOD is the period that the EA will use for the moving average. The default value is 50. What it does is basically look for the price to close above or below the moving average and then it will enter a buy or sell order. It will only open one order at a time and it won't open a new order unless the current order's StopLoss or TakeProfit is triggered.
I have run a few tests and it seems like that with the default parameters it works best for EURUSD under the 5MIN chart. Please run your own tests and let us know what the best pair, timeline and parameters are. The initial capital for the default parameters should be 100. My motto is to start with as little as possible and grow as much and as fast as possible.
Kind Regards,
Markus
Attached File(s)
MovingAverage.ex4
6 KB
|
7,618 downloads