Hi!
I have problems getting this ea to work. I made much simpler working ea's in the past but I wanted to make something more complex now. I don't know anything about coding and I'm still quite a noob in fxdreema :D. I tried to make some new variables myself but It's not correct I think. also some conditions for closing trades are not working I think. It's a mess actually, I would be very pleased if someone could help me out. It's a profitable strategy.
I took the first steps to make this ea based on a tutorial of MIRO1360 (https://fxdreema.com/shared/29RWlV12d)
The strategy is:
The EA is multi timeframe based. I want the trend indicators to work once per bar. But the stochastic once per few seconds. I don't know if this works the way I build it?
(1)When all the conditions are met the EA opens a buy or sell order. If price hits take profit the ea starts over. If price goes in negative 20 pips(distance) ea opens another order in the same direction martingale based. Also the take profit of the new order multiplies(profitmultiplier).
this keeps repeating until the last opened order hits take profit (If there are equal or less than 5 orders created.) then the ea closes all the other trades in the same direction
If there are more than 5 opened orders in the same direction then the EA closes the trades in a more safer way. If the profit of the last opened trade is bigger than the loss of the first opened trade it closes the two trades. Now it's calculated in total sum of money. But a percentage of profit between the two trades would be easier. But I dont know how to do it.
The EA can trade in both directions. if a group of sell or buy orders are closed. It can start over and open a new trade if the conditions are met(1).
If have some more things I want to add later but I first want this to work.
I thank you in advance!
Kind regards!
https://fxdreema.com/shared/hEIlWvM8c
Trend indicator:
0_1617701324350_half-trend.mq4