You're totally right, I think it doesn't work this way. But anyway the EA works with the little workaround by dragging the indicator manually on chart.
Thank you both for the great and fast support guys!!
Latest posts made by Mycle89
-
RE: Draw Custom Indicator automaticallyposted in Questions & Answers
-
RE: Draw Custom Indicator automaticallyposted in Questions & Answers
Thanks a lot! Maybe I will manage to modify the code of the indicator... or I have to live with it

-
Draw Custom Indicator automaticallyposted in Questions & Answers
Hello,
for my setup I am using a custom indicator (Demark Trend Lines), but its output buffers are useless for an EA. So I drag the indicator manually on chart and let the EA do its work with the object names. Therefore, backtesting in MT4 only works in visual mode, which is very time-consuming.
Is it possible for the EA to load the indicator on its own - maybe on init? The reason I want it this way is to do the faster 'offline' backtests without loading a chart.
-
RE: Multiple partial closesposted in Questions & Answers
That's it, thank you very much! Didn't know negative numbers are allowed. Cool...
-
Multiple partial closesposted in Questions & Answers
Hello,
sorry for opening the partial close topic for the 1000th time, but I didn't find anything describing my exact problem on this forum.
This is my project: https://fxdreema.com/shared/ZXvRuKAvdAs you can see, I created 2 loops for partial closes - 1 for when the trade is 10 pips in profit and 1 for 5 pips in loss. The problem is that the loop for the loss situation also has an effect on the profit situation, so the trade closes partially when 5 pips in profit. But I want the EA to only close partially when 10 pips in profit and 5 pips in loss.
Using the block 'pips away from stop-loss' instead of 'pips away from open price' seems not to work.Thank you for any advice!