A few days ago mike asked me to write EA for Daily95pips strategy.
I can see that pipimo88 has also prepared some other EA, but as I don't like having my projects unfinished, I present here the first version of my EA.
Is is totally automated system. Just add it to your H1 chart, enter parameters and let it work.
Do not use it on your live account now! It's the first release and quite a few bugs may come out.
To make it work you can either:
I can see that pipimo88 has also prepared some other EA, but as I don't like having my projects unfinished, I present here the first version of my EA.
Is is totally automated system. Just add it to your H1 chart, enter parameters and let it work.
Do not use it on your live account now! It's the first release and quite a few bugs may come out.
To make it work you can either:
- Download mq4 file, copy it to 'experts' folder (located in your MetaTrader platform directory) and compile it.
or
- Download ex4 file, copy it to 'experts' folder.
Than restart MetaTrader if necessary and you can find the EA in Strategies node ready to use.
Parameters:
- FixedLots - amount of lots used for each order. If this is set to 0.0, Risk value will be used.
- Risk - per cent of capital used for each order. For 0.01 value each order will use the amount of lots equal to 1% of your free margin, i.e. for the total of 3 orders it will take 3% of your balance.
- Margin - number of pips added to /substracted from day high/low. By default it is set to 5.
- StopLoss - initial stop-loss value.
- TakeProfit1, TakeProfit2, TakeProfit3 - take profit values.
- DayStartHour - hour in your time zone that starts the forex day.
- LookBackHours - numbers of hours that EA looks back determining day high/low.
- OrderExpirationHours - number of hours after which buy/sell stop hours will expire.
- CloseOrdersNextDay - set to true, if you want to close open orders at the end of the day.
EA with default settings works according to the rules stated int post #1.
Additionally:
- When buy orders are triggered, sell stop orders are deleted. And vice versa. (One-cancels-other function).
- Stop loss is moved to break-even point after reaching first take-profit.
That would be it.
Waiting for your remarks.
Cheers,
Pr1mer
Attached File(s)
Daily95pips.0.2.mq4
5 KB
|
824 downloads
Daily95pips.0.2.ex4
7 KB
|
612 downloads