Custom moving Average E.A
8件の返信
こんにちは
I have build E.A with custom moving average (SMA) but I want when open buy order and when enter sell order should close first
automatically buy order and open sell order, I don’t want buy order and sell order both to be open.
Here you can my attachment.
ありがとう。.
0
こんにちは,
you can add close position (magic). Look at the modified EA
0
こんにちは
I found there mistake in E.A and I try to figure out but i fail and this is that;
I want the candle when cross up line and open new indicator above should open BUY ORDER and when buy position cross down line
and before open another candle should close immediately Buy position and open sell position. It should do the same position.
I have attach here my home work and help to finish up.
ありがとう
0
こんにちは,
you can use shift = 0 with the moving average. When you use Bid price and Ask price always use “Every tick” backtest in MetaTrader to make it work correctly. See file attached
0
こんにちは
In moving Average(SMA) I want when profit reach dollar 10 in long position should close position and wait for short entry when SMA
Cross below Ask.
And when short position profit reach dollar 10 should close short position and wait long position when SMA Cross above Bid.
But if profit does not reach dollar 10 should close normal . Example short position open and does not reach dollar 10 but SMA come
Cross Above Bid should close short position and open Long position, It will do the same to the rest.
I have attach my work progress here , it need some little help.
Thanks for you time, am appreciate.
0
こんにちは,
if so you can separate entry conditions and profit management. Look at the attached file
0
こんにちは
Thanks, but i was ask that if I have attach that E.A and open order and profit reach dollar 10 and i have another position I opened manually and it has loss dollar 6 so
it will not affect the E.A with condition that when profit reach dollar 10 should close position.
ありがとう
0
こんにちは
Thanks for showing in E.A, It open order as i request and when profit reach dollar 10 is closing and waiting for cross, but there mainly big
problem happen, and is that , it open correctly but in closing are not closing even cross the above line or below and make more loss ,
while instruction is clear state , may be there mistake in build, can you check to know where problem com from.
I have attach screenshot to find more.
ありがとう。.
0
こんにちは,
you need to remove the “market positions is flat” condition from Long and Short tabs. See file attached
0
8件の返信を表示中 - 1 - 8件目 (全8件中)