Need help filtering trades
-
Hi, my ea is based on buying when MACD crosses above and selling when MACD crosses below.
I am able to make this work: When the MACD crosses above, buy if no trade is running or close sell trades and buy. (and vice versa)
This is how it looks like: https://fxdreema.com/shared/4bQjL25Qd
However that would close profitable trades too early and open too many trades.
Right now I want it to work like this: When the MACD crosses above but I have a sell trade running, if the sell trade is not profitable, it will close the sell trade and open a buy trade, however if the sell trade is on profit, then it would not buy. (and vice versa). This also means that there should always only be 1 trade running.
This is the current setup I have: https://fxdreema.com/shared/nOuzbzuuc
What it does is when a crossover occurs it closes losing trades, but it opens a trade whenever a crossover occurs, buys and sells. So I have multiple buy and sell orders at once.Please suggest the blocks that I should use or correct any mistakes in my setups.
Thank you.
-
I think you want to make this kind of an EA: https://fxdreema.com/shared/GZA2Lhfad
or maybe something like this: https://fxdreema.com/shared/4FLT9feTd