Need Help With This EA!
-
I cannot figure out how to get my EA to work correctly... It is a buy/sell arrow indicator and I want it to open a buy when green arrow appears and I want it to exit and open the opposite position when the red sell arrow signals. I figured out how to do that, but the problem I am running into is that sometimes there are multiple green buy arrows or multiple red sell arrows in a row. I want the EA to open a new position on all consecutive same arrows until the opposite signal appears and have it close all trades until that signal. IE: there are 2 green consecutive buy arrows I want them to open buys for both, but I want both of them to close when a red sell arrow appears and then it will open a sell order from there. Please help. Thank you!
-
@thatashtonkid-0 It would help if you share your project and maybe indicator here to have a detailed answer for you.
However, there are 2 alternative solutions that I see, but both of them are not the 100% solution.
Alternative 1: Work with "No trade" or "If trade" blocks and specify buy or sell depending on your condition tree. Like this you could avoid having multiple trades opened in the same direction. Disadvantage, If one of the trades get closed for whatever reason, there might be a new trade on next signal in same direction of the closed trade.
Alternative 2: Use "Turn on" and "Turn off" blocks. So for instance once a buy signal was opened, you place a turn on block that turns on sell signals and another one that turns off buy block (usually you take the starting block). You do the same for Sell trades vice versa. Like this you ensure that a buy sell will only be opened after a the next sell trade. However, it might happen, that there is no sell signal after a buy signal for instance and in that case you might skip the next buy signal.
Does that help?
-
Hi @trader-philipps,
Thank you for the reply. Here is the share link for my EA. I want it to basket trade on same direction consecutive signals and close out on opposite signals. Any ideas?