[ARCHIVE] Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 3. - page 153

 
DhP:

Vadim, can you code in Java?

Yes. In any C-like language.
 
chief2000:

What is the problem? Remember the Bar (time) when the MACD crosses 0, and for each new Bar compare how far away it is from it. If Delta>15 => go ahead.


I'm a bit of a beginner in this business, I tried it but it didn't work. Can I ask you a little more details or maybe an example of a similar code?
 
yosuf:

Restarting did not help
Try clearing the cache in your browser. Start with a couple of other browsers, e.g. chrome.
 

How to put StopLoss on the last fractal? Please write the code.

Standard EA in MT4, MACD or MA, or some other. I want to try to test them with stops on fractals, I have an EA, but I don't know how to write a line to put StopLoss on the last opposite fractal.

 

I think there should be such an indicator, advise me if you have seen something similar.

The indicator changes all stoplosses and profits of multiple orders, i.e. - by changing the price value for closing all positions in the properties, it will automatically set it for all orders for that pair.
 
BooGUY:

How to put StopLoss on the last fractal? Please write the code.

Standard EA in MT4, MACD or MA, or some other. I want to try to test them with stops on fractals, I have an EA, but I don't know how to write a line to put StopLoss on the last opposite fractal.


Try TrailingStopFrCnSAR.
 
w_ersoc:

I think there should be such an indicator, tell me if you've seen something like this.

The indicator changes all stop-losses and profits of multiple orders, i.e. - by changing the price value for closing all positions in the properties, it will set it for all orders for this pair.

Not the indicator -- https://www.mql5.com/ru/code/10407
 
I would like to try StopLoss only, without escort to test. Thanks, I will definitely try that too.
 
Roll:

Not the indicator -- https://www.mql5.com/ru/code/10407
thanks! +++++
 
Can you advise if there is an EA which when an open position surges in profit by a certain number of points, it would set the stop at 2/3 of a number of points and simultaneously open a position in the same direction with the stop on the same spot as the previous position, in case of another surge in the same quantity, the algorithm would repeat and all the stops would be dragged
Reason: