Buy: When aroon up crosses above aroon down. Exit when aroon up crosses level 50 downwards or when an opposite signal occurs, whichever comes first. (Opposite signal means when aroon up crosses below aroon down)
Sell: When aroon down crosses above aroon up. Exit when aroon down crosses level 50 downwards or when an opposite signal occurs, whichever comes first. (Opposite signal means when aroon down crosses below aroon up)
All the trades should be opened on the open of the next candle after the signal occurs.
Set the stop loss at the previous swing high/swing low. If not possible to do so then use ATR stoploss or manual stoploss.
If possible please add money management feature too.
Your time, skills and generosity are so much appreciated. Regards
otherwise i want one help. in this indicator high low are showing with short yellow lines ... likes that after the price of low of the zigzag.. from the price itself need short lines for 0.326% ,0.5%, 0.618% , 1%, 1.618%,2.27%,2.618%,3.33%, 4,236% i means the fibo retracement is for that price alone which is like (after setting low) low+(low*0.326/100)............ low +(low*0.5/100)........... like...
after that for the high made means .... same procedure like short lines dotted
high-(high*0.326/100)........... high -(high*0.5/100)........
I'm testingwiththe code belowto openorders. I didbacktestfor 3 monthsinH1. The result was verybad.
Thereany wayto improve the wayofopening oforders?
Please read this post : https://www.mql5.com/en/forum/186208/page3 about eventual optimization. As of why it works like that : you probably could revise the rules you are using when orders are opened and closed. But in any case, check the rules you are using and check when your orders are closed
otherwise i want one help. in this indicator high low are showing with short yellow lines ... likes that after the price of low of the zigzag.. from the price itself need short lines for 0.326% ,0.5%, 0.618% , 1%, 1.618%,2.27%,2.618%,3.33%, 4,236% i means the fibo retracement is for that price alone which is like (after setting low) low+(low*0.326/100)............ low +(low*0.5/100)........... like...
after that for the high made means .... same procedure like short lines dotted
high-(high*0.326/100)........... high -(high*0.5/100)........
can you please any one do this for me?
i will be much thankful to u..
I can not check the file per moment. but seeing the name, are you sure that using zigzag for signals can be used the way you are expecting it (being that zigzag repaints)?
mladen: Please read this post : https://www.mql5.com/en/forum/186208/page3 about eventual optimization. As of why it works like that : you probably could revise the rules you are using when orders are opened and closed. But in any case, check the rules you are using and check when your orders are closed
Dear Mladen,
The openingrulewas wrong.
I changedthe codebut stillcontinues witha verypoor performancelosinga lot of money.
To make thefilter alongwith theParabolicwould bebetter to useRSI?
int doWhat = _doNothing;
double sarUp = iCustom(NULL,0,"Parabolic SAR of KAMA 1_5",0,AccStep,AccLimit,AmaPeriod,AmaPrice,FastEnd,SlowEnd,SmoothPower,JurikFDAdaptive,0,BarToUse);
double sarDn = iCustom(NULL,0,"Parabolic SAR of KAMA 1_5",0,AccStep,AccLimit,AmaPeriod,AmaPrice,FastEnd,SlowEnd,SmoothPower,JurikFDAdaptive,1,BarToUse+1);
double macdUp= iCustom(NULL,0,"Macd - std normalized 1_2 histo",0,FastMAPeriod,SlowMAPeriod,SignalPeriod,StdPeriod,Price,Filter,FilterPeriod,ColorChangeOn,0,BarToUse);
double macdDn= iCustom(NULL,0,"Macd - std normalized 1_2 histo",0,FastMAPeriod,SlowMAPeriod,SignalPeriod,StdPeriod,Price,Filter,FilterPeriod,ColorChangeOn,1,BarToUse+1);
if (sarUp<sarDn & macdUp<macdDn) doWhat = _doBuy;
if (sarUp>sarDn & macdUp>macdDn) doWhat = _doSell;
if (doWhat==_doNothing && !DisplayInfo) return(0);
for (int i = OrdersTotal()-1; i>=0; i--)
{
if (!OrderSelect(i,SELECT_BY_POS,MODE_TRADES)) continue;
if (OrderSymbol() != Symbol()) continue;
if (OrderMagicNumber() != MagicNumber) continue;
//////////if (DisplayInfo) currentProfit += OrderProfit()+OrderCommission()+OrderSwap();
//////////if (OrderType()==OP_BUY)
if (doWhat==_doSell )
{ RefreshRates(); if (!OrderClose(OrderTicket(),OrderLots(),Bid,Slippage,Orange)) openedBuys++; }
else openedBuys++;
if (OrderType()==OP_SELL)
if (doWhat==_doBuy )
{ RefreshRates(); if (!OrderClose(OrderTicket(),OrderLots(),Ask,Slippage,Green)) openedSells++; }
else openedSells++;
}
if (DisplayInfo) Comment("Current profit : "+DoubleToStr(currentProfit,2)+" "+AccountCurrency()); if (doWhat==_doNothing) return(0);
//////////if (doWhat==_doBuy && openedBuys==0)
{
RefreshRates();
//double BStopLossLevel = Ask - StopLoss *myPoint;//double BTakeProfitLevel = Ask + TakeProfit *myPoint; double stopLossBuy = 0; if (StopLoss>0) stopLossBuy =Ask - StopLoss *myPoint; //Ask-StopLoss*Point*MathPow(10,Digits%2);double takeProfitBuy = 0; if (TakeProfit>0) takeProfitBuy =Ask + TakeProfit *myPoint; //Ask+TakeProfit*Point*MathPow(10,Digits%2);if (EcnBroker)
{
int ticketb = OrderSend(Symbol(),OP_BUY,LotSize,NormalizeDouble(Ask,digit),Slippage*myPoint,0,0,EASHORTNAME+"_"+Symbol()+"("+GetChartTimeFrame()+")_B",MagicNumber,0,Blue);
if (ticketb>-1)
dummyResult = OrderModify(ticketb,OrderOpenPrice(),NormalizeDouble(stopLossBuy,digit),NormalizeDouble(takeProfitBuy,digit),0,CLR_NONE);
}
else dummyResult = OrderSend(Symbol(),OP_BUY,LotSize,NormalizeDouble(Ask,digit),Slippage*myPoint,NormalizeDouble(stopLossBuy,digit),NormalizeDouble(takeProfitBuy,digit),EASHORTNAME+"_"+Symbol()+"("+GetChartTimeFrame()+")_B",MagicNumber,0,Blue);
}
if (doWhat==_doSell & openedSells==0)
{
RefreshRates();
//double SStopLossLevel = Bid + StopLoss *Mypoint;//double STakeProfitLevel = Bid - TakeProfit *Mypoint;double stopLossSell = 0; if (StopLoss>0) stopLossSell=Bid + StopLoss *myPoint; //Bid+StopLoss*Point*MathPow(10,Digits%2);double takeProfitSell = 0; if (TakeProfit>0) takeProfitSell =Bid - TakeProfit *myPoint; //Bid-TakeProfit*Point*MathPow(10,Digits%2);if (EcnBroker)
{
int tickets = OrderSend(Symbol(),OP_SELL,LotSize,NormalizeDouble(Bid,digit),Slippage*myPoint,0,0,EASHORTNAME+"_"+Symbol()+"("+GetChartTimeFrame()+")_S",MagicNumber,0,Red);
if (tickets>-1)
dummyResult = OrderModify(tickets,OrderOpenPrice(),NormalizeDouble(stopLossSell,digit),NormalizeDouble(takeProfitSell,digit),0,CLR_NONE);
}
else dummyResult = OrderSend(Symbol(),OP_SELL,LotSize,NormalizeDouble(Bid,digit),Slippage*myPoint,NormalizeDouble(stopLossSell,digit),NormalizeDouble(takeProfitSell,digit),EASHORTNAME+"_"+Symbol()+"("+GetChartTimeFrame()+")_S",MagicNumber,0,Red);
}
return(0);
}
I'm requesting for a simple Aroon EA.
Buy: When aroon up crosses above aroon down. Exit when aroon up crosses level 50 downwards or when an opposite signal occurs, whichever comes first. (Opposite signal means when aroon up crosses below aroon down)
Sell: When aroon down crosses above aroon up. Exit when aroon down crosses level 50 downwards or when an opposite signal occurs, whichever comes first. (Opposite signal means when aroon down crosses below aroon up)
All the trades should be opened on the open of the next candle after the signal occurs.
Set the stop loss at the previous swing high/swing low. If not possible to do so then use ATR stoploss or manual stoploss.
If possible please add money management feature too.
Your time, skills and generosity are so much appreciated. Regards
Reymaq.
otherwise i want one help. in this indicator high low are showing with short yellow lines ... likes that after the price of low of the zigzag.. from the price itself need short lines for 0.326% ,0.5%, 0.618% , 1%, 1.618%,2.27%,2.618%,3.33%, 4,236% i means the fibo retracement is for that price alone which is like (after setting low) low+(low*0.326/100)............ low +(low*0.5/100)........... like...
after that for the high made means .... same procedure like short lines dotted
high-(high*0.326/100)........... high -(high*0.5/100)........
can you please any one do this for me?
i will be much thankful to u..
Hi,
I would like to test their two indicators in an EA.
1 - Parabolic SAR of KAMA 1_5.mq4
2 - Macd - std normalized.mq4 1_2 (Filter)
I'm testing with the code below to open orders.
I did back test for 3 months in H1.
The result was very bad.
There any way to improve the way of opening of orders?
Hi,
I would like to test their two indicators in an EA.
1 - Parabolic SAR of KAMA 1_5.mq4
2 - Macd - std normalized.mq4 1_2 (Filter)
I'm testing with the code below to open orders.
I did back test for 3 months in H1.
The result was very bad.
There any way to improve the way of opening of orders?
otherwise i want one help. in this indicator high low are showing with short yellow lines ... likes that after the price of low of the zigzag.. from the price itself need short lines for 0.326% ,0.5%, 0.618% , 1%, 1.618%,2.27%,2.618%,3.33%, 4,236% i means the fibo retracement is for that price alone which is like (after setting low) low+(low*0.326/100)............ low +(low*0.5/100)........... like...
after that for the high made means .... same procedure like short lines dotted
high-(high*0.326/100)........... high -(high*0.5/100)........
can you please any one do this for me?
i will be much thankful to u..
Please read this post : https://www.mql5.com/en/forum/186208/page3 about eventual optimization. As of why it works like that : you probably could revise the rules you are using when orders are opened and closed. But in any case, check the rules you are using and check when your orders are closed
Dear Mladen,
The opening rule was wrong.
I changed the code but still continues with a very poor performance losing a lot of money.
To make the filter along with the Parabolic would be better to use RSI?
Dear Mladen,
The opening rule was wrong.
I changed the code but still continues with a very poor performance losing a lot of money.
To make the filter along with the Parabolic would be better to use RSI?
Please, try to optimize your EA
Mr. Mladen, please look at the below codes , the arrow doesnt come up in live until i switched time frame.
That is a repainting version of sidus indicator
Non repainting version can be downloaded from here : https://www.mql5.com/en/forum/180648/page293