Техническое задание
I'm looking for a skilled coder who helps me with the code fixing. My system is quite simple,
it's MA crossover EA with two timeframes (main and higher). The system can use higher TF as
a filter (open
long position only if fast MA is above slow MA on higher TF, open
short position only
if slow MA is above fast MA on higher TF). This filter is optional and can be switched off.
Close position can be done a) by another cross MAs on main TF, b) TP, c) SL. There can be more
than one position open in one time. The system has also trailing stop. But not the standard one.
The trailing stop doesn't work as I would like to. So the fix of the system is regarding mainly to
fix it.
Required modifications:
1. fix trailing stop. The trailing stop should work in this way:
There has to be always set Take Profit if Trailing stop is used. The value of Take Profit is granted - the profit
must reach this value to activate Trailing stop. If the market goes further, Trailing stop is working as usual.
If the market goes against position, the least profit from the position is value of Take profit. See the example:
Take profit = 20, trailing stop = 10, situations:
a) 20 + 10 + 10 + 10 - 12 = 23
b) 20 + 5 - 7 = 20
Trailing stop should work for all opened positions (remember, there can be more than one open position in one time).
2. check the code
If everything is working properly, debugging, testing.