Help, EA Close all trades!
-
I need help
, I want to create an EA to close all trade when level2 (appear icon), already tried all possible ways (visible indicator, apper indicator, condition, etc) (Whith all buffer) Still doesn't work
.(to orders I started manual way)
Attached two versions of the same indicator.
-
Here the example i tried:
-
Can you compile the indicator? Because I can't http://prntscr.com/7m3zz5
-
I can copilate the 3_Level_ZZ_Semafor.mq4
'3_Level_ZZ_Semafor.mq4' 3_Level_ZZ_Semafor.mq4 1 1
not all control paths return a value 3_Level_ZZ_Semafor.mq4 248 2
0 error(s), 1 warning(s) 1 2The indicator work well in Meta Trader, why don't work in the EA of fxdreema? The goal is only close all trades when get level 2, no matter if is down or up.
-
If you are trying to close trades made manually, I think you need to change your magic start number to zero in the project settings.
-
When you are not sure whether an indicator works or not, just put it in "Indicator tester" to see what it's buffers provide. If there are values different than 24XXXXXXXX, then it can be used. Otherwise you should try something else, for example changing Candle ID. Many indicators just work in some older candle and provide nothing for the current one.
-
Using "Indicator tester" with 3_Level_ZZ_Semafor, all bufer provide 0 value, the custon indicator have "SetIndexEmptyValue(1,0.0)" in your code, but ever the value is 0.
Can somebody help me to change the code? to bring a value when the indicator is in level 2 or 3? with this i can use the indicator on Fxdreema.
the code is here:
http://www.forexmt4.com/mt_yahoo/3_Level_ZZ_Semafor.mq4 -
I found that I have this indicator already and it produces normal values other than 0 for me, even for the current candle
http://prntscr.com/7o5ymr -
Ok, thank you, is possible work with this indicator on Fxdreema, but, not is so easy, i'm learning yet.
-
You can create a function to close all trades when the indicator bring up the arrow on the chart? I tried everything

-
Condition (indicator > 0) => Close Trades
Indicator is visible => Close TradesAny of these shoud work. But first make sure that you use the indicator with correct settings. "Indicator tester" can help. Normally you need to set Candle ID to 1 (or more) for arrow-based indicators