order manager
-
dear admin
could you please help me for creating an expert for take the engulfing patern in candles? I write an EA but it doesn`t work.
https://fxdreema.com/shared/vZ4MsxuQb
please help me
-
For such things there are indicators, but you can use Condition anyway. Just remember to not use == when you compare prices. The chance to detect two prices that are exactly the same at the same time when ticks are jumping around and the broker have 5 digits is pretty low.
Then just look at what you have - two conditions with the same left and right operands, but using different comparison sign. There is just no way to have both Condition block right at the same time, one of them is always false, they are the opposite of each other.
-
dear admin
thank you for your helps.
I am working on an EA that it works with macd-complete indicator, and I enter the order with cross over of buffer and signal line in this indicator, but the cross over occur and back again and again. and it enters the order even in discorrect position becuse the cross over didn't occur correctly( fake cross over ). how can recognize the real cross over?
-
The crossover in "Condition" block does not produce one-time signals, the block will pass until there is a visible crossover for the candle, until the candle closes. So you should control trades with other blocks. For example, if you put "Once per bar" before that Condition, it will give you some result. If you put the same block after the Condition, the result will be different.
-
dear admin
could you please tell me how can find the signals that for example 6ema cross the price for 6 pips or 6 ema cross the 20 ema for 6 pips>
-
The normal crossover, but add something like +0.0006 in the "Adjust" field on one of both sides
-
thank you
I forgot to say
happy new year
-
It's Happy Christmas, we are still in the old year

-
dear admin
i made an EA for managing the opened orders. but it does n
t work. it should close or trail the stop for current orders. i don nt know where the problem is.
please help me. -
If this is for your manual orders, I will suggest to set "Magic Start" to 0, as they have magic number of 0. Or look at the group mode parameter in blocks 2, 9 and 14.
-
dear admin
the problem is solved. thank you so much.
-
hi
could you please tell me how can I adjust the trailing stop to close the half of position?
-
Trailing stop (each trade) can't do that and I will not include this into it, because it already has so much input parameters. But it should be possible with some custom loop. Here is a start: https://fxdreema.com/demo/mt4-loop-trailing-stop
-
dear admin
i want to use breakeven the order in 10 pips and close half of order when breakeven takeplace. could you please tell me how can i make it? -
With pink block somehow. Here is an example how to make trailing stop: https://fxdreema.com/demo/mt4-loop-trailing-stop I will be different in your case, but this is the idea.
-
dear admin
I design the my trailing stop. but this is not my problem. my problem is how can i close half of my trade when i breakeven in 10 pip ( for example ).
-
What if you place a new pending order with half the lot size where SL for the trade is?
-
hi
how can i set a pending order just right there? ( at tp point of previous order ) -
When do you want to do that (in the EA)?