I am not against your concerns and agree but maybe thinking about it and looking for a solutiuon.
You can still use SL, virtual TP.
https://www.mql5.com/en/code/13853
The principle is the same ...

- votes: 20
- 2015.12.10
- Vladimir Khlystov
- www.mql5.com
https://www.mql5.com/en/code/13853
The principle is the same ...
;)
I just can't make it visible on the chart. This is supposed to be added as EA(run auto trading) and not Indicator?
As an EA there is no option to select colors;
As indicator, there is an option to change color but nothing will show on the chart;
I just can't make it visible on the chart. This is supposed to be added as EA(run auto trading) and not Indicator?
As an EA there is no option to select colors;
As indicator, there is an option to change color but nothing will show on the chart;
To be a stop, it has to be an EA, not an indicator. If it doesn't have an input for changing the colour, you will need to add it to the code. Just add an input parameter, then use that colour when drawing the line in the DrawHline() function.
I don't need to change the color so I don't want an input but just to see the spot on the chart. I see in the code there is:
DrawHline("SL Buy",TrallB,clrBlue,1);
but it is not visible in my chart

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
So I am not the one convincing people not to use a SL but whenever possible to be on the computer all the time, you don't need to put it (the SL) but rather imagine and manually close and take the lost if you believe this is the right action. Same logic apply for the TPs.