Buy and Sell Alternately
-
Hi, I have created my EA but would like it to enter a buy and follow my conditions but then not open another buy even if the conditions are met untill it opens a sell and follows the conditions again not opening any other sells untill a buy signal and so on. Appreciate your help. Thanks
-
You can use flags or variables to stop EA from doing something until your conditions say taking a trade is viable.
-
Thanks for the reply, but i am struggling to understand the variable and flag tabs. do they need to be linked in any particular order or can they lay separately? could you possibly give an example that I could play around with?
-
Flags are easiest to understand, above buy/sell check the flag, in a separate tree set the flag true, and in another tree set the flag false. What you use to set the flag is whatever make a trade make sense. Once you have this together you can add a shared link and say what's mot working as expected.
-
Sorry, im trying to follow what you have said and getting myself confused now. Are you able to make something up quickly for me to add and understand better please? having a hard time here brains hurting lol.
-
i managed to do it just by putting a 'check type (last closed)' tab
Thank you for your time