well its my english again...
I meant to say that when trade went into profit and then reversed to lossI want that when he entered into profit it will nor reversed into a loss...
What you are asking is what usually is done by using trailing stops. Did you try that approach?
i did but it always hit the stop loss i want that the trade will close as it reversed to one gain pip
I am afraid that trailing stop loss is the closest that you can get to your idea. We can not predict when will the twining order start becoming a losing order, and the only way to prevent it (so far) found out is to have a stop loss at BE or higher (so that at least a part of a profit is preserved.
You have to use a trailing stop loss (that will change its value as your profit is eventually growing) and that way you will be able to lock some of the profit your order has reached. It does not need to be 1 pip - it will depend on how far in profit your order has went and how far from the current price your trailing stop loss is set
I want to learn to program but can not learn as fast as I want...
u have few questions
Is there a relatively simple way to transfer indicator to work as an expert advisor. it can be a program?
There is no simple way to do that
You can try the expert advisor builder (at this link : Expert Advisor Builder for MetaTrader 4 ) but be prepared that in a lot of cases it will not worke the you expect it to work
i tried that link with no luck
As a rule of thumb, the easiest way to incorporate the indicator into an EA is using the iCustom() call to an indicator. That is relatively simple. What is not so simple is the rest of the logic needed for any EA that is need in order to make the EA work as it should
I want to build a robot that will work according to a single indicator. Something pretty simple. when Arrow appears open trade' then closing with a simple stop traling, etc.
Maybe the easiest way to do that is to take the EA from this post : https://www.mql5.com/en/forum/180383 and then simply replace a call to "KaufmanAmaSignalsForEA" indicator in the FindTrend() function with an indicator of your choice