Be yourself
7
Millionaire Run 3 replies
millionaire 3 replies
The quest to be a Millionaire 16 replies
Dislikedwhy you succed in your quick testing?? 1- beacuse you use single pair 2- because of 60/40 instead of 70/30 ==> less time to test--you are very smart in trouble shootingIgnored
Disliked{quote} Another example with manual TP, I've been away for sometime and I started these configuration a few days before the end of the year - so far so good. On my profile you can see the results. {image} {image}Ignored
DislikedDear Al-Otaibi, In the code that you shared in the #Post 11,049, there is one thing that i am wondering. {image} i don't know whether it is the same with the latest version or not, but EA does NOT execute SELL orders in the test below. {image}Ignored
void TRADING_RSI_OPEN() { if(IsDemo() || (!IsDemo() && TimeCurrent()<StringToTime(timevalid_RSI))) { if(!IsConnected() || !IsExpertEnabled() || !IsTradeAllowed() || IsStopped()) {ObjectsDeleteAll(0,"painter_");return;} for(int k=0;k<ArraySize(FRAME);k++) { if(!IsConnected() || !IsExpertEnabled() || !IsTradeAllowed() || IsStopped()) {ObjectsDeleteAll(0,"painter_");return;} if( (k==0 && SY_MN1=="YES") || (k==1 && SY_W1=="YES") || (k==2 && SY_D1=="YES") || (k==3 && SY_H4=="YES") || (k==4 && SY_H1=="YES") || (k==5 && SY_M30=="YES") || (k==6 && SY_M15=="YES") || (k==7 && SY_M5=="YES") || (k==8 && SY_M1=="YES") ) { string fs=EnumToString(FRAME[k]); if(fs=="PERIOD_MN1") fs="PERIOD_MN"; else if(fs=="PERIOD_M30") fs="PERIOD_MH"; else if(fs=="PERIOD_M15") fs="PERIOD_MQ"; for(int i=ArraySize(pairs)-1;i>=0;i--) { if(i<=32) { if(!IsConnected() || !IsExpertEnabled() || !IsTradeAllowed() || IsStopped()) {ObjectsDeleteAll(0,"painter_");return;} if(timeR[i][k]!=iTime(pairs[i],FRAME[k],0)) { if(MarketInfo(pairs[i],MODE_TRADEALLOWED)) { double rsi2=iRSI(pairs[i],FRAME[k],RSI_PERIOD,APPLIED_PRICE,2); double rsi1=iRSI(pairs[i],FRAME[k],RSI_PERIOD,APPLIED_PRICE,1); if(RSI_OnTrade=="RSI1") { if(PAIR_SELECT[i]=="YES") { double sprd=MarketInfo(pairs[i],MODE_SPREAD); if(sprd<SPL[i]) { string ixi=i; if(i<=9)ixi="00"+i; else if(i<=99)ixi="0"+i; else if(i>999)ixi="aaa"; if(SY_LIMIT=="YES") { if( (rsi1>=RSI_DN_LEVEL && rsi2<=RSI_DN_LEVEL && SY_UP30=="YES") || (rsi1<=RSI_DN_LEVEL && rsi2>=RSI_DN_LEVEL && SY_DN30=="YES") ) { oBL[i][k]++; oSL[i][k]=0; iSL[i][k]=0; if(oBL[i][k]>FIRST_IGNORED_CROSSES+eps) { if(MathMod(oBL[i][k],(CROSSES_JUMPER+1))<eps) { if (rsi1>=RSI_DN_LEVEL && rsi2<=RSI_DN_LEVEL && SY_UP30=="YES") IO="n"; if (rsi1<=RSI_DN_LEVEL && rsi2>=RSI_DN_LEVEL && SY_DN30=="YES") IO="o"; int LL=iBL[i][k]/Ladder[i]; double lotsS=(FirstLot[i]+Increment[i]*(LL)*Multiplier_2x[i])*Multiplier_1[i]*MathPow(Multiplier_3[i],LL); if(lotsS>RSI_LOTS_LIMITER)lotsS=RSI_LOTS_LIMITER; if(lotsS<MarketInfo(pairs[i],MODE_MINLOT)) lotsS=MarketInfo(pairs[i],MODE_MINLOT); if(lotsS>MarketInfo(pairs[i],MODE_MAXLOT)) lotsS=MarketInfo(pairs[i],MODE_MAXLOT); if(iBL[i][k]<eps) { string ii=iBL[i][k]+1; if((iBL[i][k]+1)<=9)ii="0"+(iBL[i][k]+1); else if((iBL[i][k]+1)>99)ii="aa"; string comment="@RSI//"+fs+"//"+ixi+"//LB//"+IO+"/"+ii; int tickBL1=OrderSend(pairs[i],OP_BUY,lotsS,MarketInfo(pairs[i],MODE_ASK),3,0,0,comment,xMagic_Number,0,clrBlue); int err=GetLastError(); if(err>0) { if(err==131 || err==132 || err==133 || err==134 || err==136 || err==148) { if(dipson=="YES")Print("FF RSI RSI RSI----tickBL1--Oracheal CASE--------BL LastError = "+err+" "+pairs[i]); PAIR_SELECT[i]="NO"; timeR[i][k]=iTime(pairs[i],FRAME[k],0); } } if(OrderSelect(tickBL1,SELECT_BY_TICKET)) { iBL[i][k]++; priceBLx[i][k]=OrderOpenPrice(); Print("FF RSI RSI RSI--A Lots:"+OrderLots()+" / / "+OrderComment()+" / / iBL[i][k]: "+iBL[i][k]+" / / "+pairs[i]+" / / "+OrderOpenPrice()+" / / rsi1="+rsi1+" / / rsi2="+rsi2); timeR[i][k]=iTime(pairs[i],FRAME[k],0); } } else if(MarketInfo(pairs[i],MODE_ASK)<(priceBLx[i][k]-pipsD[i]*MarketInfo(pairs[i],MODE_POINT))|| BY_PASS_ADDED_PIPS=="YES") { ii=iBL[i][k]+1; if((iBL[i][k]+1)<=9)ii="0"+(iBL[i][k]+1); else if((iBL[i][k]+1)>99)ii="aa"; comment="@RSI//"+fs+"//"+ixi+"//LB//"+IO+"/"+ii; int tickBL2=OrderSend(pairs[i],OP_BUY,lotsS,MarketInfo(pairs[i],MODE_ASK),3,0,0,comment,xMagic_Number,0,clrBlue); err=GetLastError(); if(err>0) { if(err==131 || err==132 || err==133 || err==134 || err==136 || err==148) { if(dipson=="YES")Print("FF RSI RSI RSI----tickBL2--Oracheal CASE--------BL LastError = "+err+" "+pairs[i]); PAIR_SELECT[i]="NO"; timeR[i][k]=iTime(pairs[i],FRAME[k],0); } } if(OrderSelect(tickBL2,SELECT_BY_TICKET)) { iBL[i][k]++; priceBLx[i][k]=OrderOpenPrice(); Print("FF RSI RSI RSI--B Lots:"+OrderLots()+" / / "+OrderComment()+" / / iBL[i][k]: "+iBL[i][k]+" / / "+pairs[i]+" / / "+OrderOpenPrice()+" / / rsi1="+rsi1+" / / rsi2="+rsi2); timeR[i][k]=iTime(pairs[i],FRAME[k],0); } } } else { timeR[i][k]=iTime(pairs[i],FRAME[k],0); } } else { timeR[i][k]=iTime(pairs[i],FRAME[k],0); } } else if( (rsi2>=RSI_UP_LEVEL && rsi1<=RSI_UP_LEVEL && SY_DN70=="YES") || (rsi2<=RSI_UP_LEVEL && rsi1>=RSI_UP_LEVEL && SY_UP70=="YES") ) { oSL[i][k]++; oBL[i][k]=0; iBL[i][k]=0; if(oSL[i][k]>FIRST_IGNORED_CROSSES+eps) { if(MathMod(oSL[i][k],(CROSSES_JUMPER+1))<eps) { if (rsi2>=RSI_UP_LEVEL && rsi1<=RSI_UP_LEVEL && SY_DN70=="YES") IO="n"; if (rsi2<=RSI_UP_LEVEL && rsi1>=RSI_UP_LEVEL && SY_UP70=="YES") IO="o"; LL=iSL[i][k]/Ladder[i]; lotsS=(FirstLot[i]+Increment[i]*(LL)*Multiplier_2x[i])*Multiplier_1[i]*MathPow(Multiplier_3[i],LL); if(lotsS>RSI_LOTS_LIMITER)lotsS=RSI_LOTS_LIMITER; if(lotsS<MarketInfo(pairs[i],MODE_MINLOT)) lotsS=MarketInfo(pairs[i],MODE_MINLOT); if(lotsS>MarketInfo(pairs[i],MODE_MAXLOT)) lotsS=MarketInfo(pairs[i],MODE_MAXLOT); if(iSL[i][k]<eps) { ii=iSL[i][k]+1; if((iSL[i][k]+1)<=9)ii="0"+(iSL[i][k]+1); else if((iSL[i][k]+1)>99)ii="aa"; comment="@RSI//"+fs+"//"+ixi+"//LS//"+IO+"/"+ii; int tickSL1=OrderSend(pairs[i],OP_SELL,lotsS,MarketInfo(pairs[i],MODE_BID),3,0,0,comment,xMagic_Number,0,clrRed); err=GetLastError(); if(err>0) { if(err==131 || err==132 || err==133 || err==134 || err==136 || err==148) { if(dipson=="YES")Print("FF RSI RSI RSI----tickSL1--Oracheal CASE--------SL LastError = "+err+" "+pairs[i]); PAIR_SELECT[i]="NO"; timeR[i][k]=iTime(pairs[i],FRAME[k],0); } } if(OrderSelect(tickSL1,SELECT_BY_TICKET)) { iSL[i][k]++; priceSLx[i][k]=OrderOpenPrice(); Print("FF RSI RSI RSI--A Lots:"+OrderLots()+" / / "+OrderComment()+" / / iSL[i][k]: "+iSL[i][k]+" / / "+pairs[i]+" / / "+OrderOpenPrice()+" / / rsi1="+rsi1+" / / rsi2="+rsi2); timeR[i][k]=iTime(pairs[i],FRAME[k],0); } } else if(MarketInfo(pairs[i],MODE_BID)<(priceSLx[i][k]+pipsD[i]*MarketInfo(pairs[i],MODE_POINT))|| BY_PASS_ADDED_PIPS=="YES") { ii=iSL[i][k]+1; if((iSL[i][k]+1)<=9)ii="0"+(iSL[i][k]+1); else if((iSL[i][k]+1)>99)ii="aa"; comment="@RSI//"+fs+"//"+ixi+"//LS//"+IO+"/"+ii; int tickSL2=OrderSend(pairs[i],OP_SELL,lotsS,MarketInfo(pairs[i],MODE_BID),3,0,0,comment,xMagic_Number,0,clrRed); err=GetLastError(); if(err>0) { if(err==131 || err==132 || err==133 || err==134 || err==136 || err==148) { if(dipson=="YES")Print("FF RSI RSI RSI----tickSL2--Oracheal CASE--------SL LastError = "+err+" "+pairs[i]); PAIR_SELECT[i]="NO"; timeR[i][k]=iTime(pairs[i],FRAME[k],0); } } if(OrderSelect(tickSL2,SELECT_BY_TICKET)) { iSL[i][k]++; priceSLx[i][k]=OrderOpenPrice(); Print("FF RSI RSI RSI--B Lots:"+OrderLots()+" / / "+OrderComment()+" / / iSL[i][k]: "+iSL[i][k]+" / / "+pairs[i]+" / / "+OrderOpenPrice()+" / / rsi1="+rsi1+" / / rsi2="+rsi2); timeR[i][k]=iTime(pairs[i],FRAME[k],0); } } } else { timeR[i][k]=iTime(pairs[i],FRAME[k],0); } } else { timeR[i][k]=iTime(pairs[i],FRAME[k],0); } } } if(SY_STOP=="YES") { if( (rsi2>=RSI_UP_LEVEL && rsi1<=RSI_UP_LEVEL && SY_DN70=="YES") || (rsi2<=RSI_UP_LEVEL && rsi1>=RSI_UP_LEVEL && SY_UP70=="YES") ) { oBS[i][k]++; oSS[i][k]=0; iSS[i][k]=0; if(oBS[i][k]>FIRST_IGNORED_CROSSES+eps) { if(MathMod(oBS[i][k],(CROSSES_JUMPER+1))<eps) { if(rsi2>=RSI_UP_LEVEL && rsi1<=RSI_UP_LEVEL && SY_DN70=="YES") IO="n"; if(rsi2<=RSI_UP_LEVEL && rsi1>=RSI_UP_LEVEL && SY_UP70=="YES") IO="o"; LL=iBS[i][k]/Ladder[i]; lotsS=(FirstLot[i]+Increment[i]*(LL)*Multiplier_2x[i])*Multiplier_1[i]*MathPow(Multiplier_3[i],LL); if(lotsS>RSI_LOTS_LIMITER)lotsS=RSI_LOTS_LIMITER; if(lotsS<MarketInfo(pairs[i],MODE_MINLOT)) lotsS=MarketInfo(pairs[i],MODE_MINLOT); if(lotsS>MarketInfo(pairs[i],MODE_MAXLOT)) lotsS=MarketInfo(pairs[i],MODE_MAXLOT); if(iBS[i][k]<eps) { ii=iBS[i][k]+1; if((iBS[i][k]+1)<=9)ii="0"+(iBS[i][k]+1); else if((iBS[i][k]+1)>99)ii="aa"; comment="@RSI//"+fs+"//"+ixi+"//SB//"+IO+"/"+ii; int tickBS1=OrderSend(pairs[i],OP_BUY,lotsS,MarketInfo(pairs[i],MODE_ASK),3,0,0,comment,xMagic_Number,0,clrBlue); err=GetLastError(); if(err>0) { if(err==131 || err==132 || err==133 || err==134 || err==136 || err==148) { if(dipson=="YES")Print("FF RSI RSI RSI----tickBS1--Oracheal CASE--------BS LastError = "+err+" "+pairs[i]); PAIR_SELECT[i]="NO"; timeR[i][k]=iTime(pairs[i],FRAME[k],0); } } if(OrderSelect(tickBS1,SELECT_BY_TICKET)) { iBS[i][k]++; priceBSx[i][k]=OrderOpenPrice(); Print("FF RSI RSI RSI--A Lots:"+OrderLots()+" / / "+OrderComment()+" / / iBS[i][k]: "+iBS[i][k]+" / / "+pairs[i]+" / / "+OrderOpenPrice()+" / / rsi1="+rsi1+" / / rsi2="+rsi2); timeR[i][k]=iTime(pairs[i],FRAME[k],0); } } else if(MarketInfo(pairs[i],MODE_ASK)<(priceBSx[i][k]-pipsD[i]*MarketInfo(pairs[i],MODE_POINT))|| BY_PASS_ADDED_PIPS=="YES") { ii=iBS[i][k]+1; if((iBS[i][k]+1)<=9)ii="0"+(iBS[i][k]+1); else if((iBS[i][k]+1)>99)ii="aa"; comment="@RSI//"+fs+"//"+ixi+"//SB//"+IO+"/"+ii; int tickBS2=OrderSend(pairs[i],OP_BUY,lotsS,MarketInfo(pairs[i],MODE_ASK),3,0,0,comment,xMagic_Number,0,clrBlue); err=GetLastError(); if(err>0) { if(err==131 || err==132 || err==133 || err==134 || err==136 || err==148) { if(dipson=="YES")Print("FF RSI RSI RSI----tickBS2--Oracheal CASE--------BS LastError = "+err+" "+pairs[i]); PAIR_SELECT[i]="NO"; timeR[i][k]=iTime(pairs[i],FRAME[k],0); } } if(OrderSelect(tickBS2,SELECT_BY_TICKET)) { iBS[i][k]++; priceBSx[i][k]=OrderOpenPrice(); Print("FF RSI RSI RSI--B Lots:"+OrderLots()+" / / "+OrderComment()+" / / iBS[i][k]: "+iBS[i][k]+" / / "+pairs[i]+" / / "+OrderOpenPrice()+" / / rsi1="+rsi1+" / / rsi2="+rsi2); timeR[i][k]=iTime(pairs[i],FRAME[k],0); } } } else { timeR[i][k]=iTime(pairs[i],FRAME[k],0); } } else { timeR[i][k]=iTime(pairs[i],FRAME[k],0); } } else if( (rsi1>=RSI_DN_LEVEL && rsi2<=RSI_DN_LEVEL && SY_UP30=="YES") || (rsi1<=RSI_DN_LEVEL && rsi2>=RSI_DN_LEVEL && SY_DN30=="YES") ) { oSS[i][k]++; oBS[i][k]=0; iBS[i][k]=0; if(oSS[i][k]>FIRST_IGNORED_CROSSES+eps) { if(MathMod(oSS[i][k],(CROSSES_JUMPER+1))<eps) { if (rsi1>=RSI_DN_LEVEL && rsi2<=RSI_DN_LEVEL && SY_UP30=="YES") IO="n"; if (rsi1<=RSI_DN_LEVEL && rsi2>=RSI_DN_LEVEL && SY_DN30=="YES") IO="o"; LL=iSS[i][k]/Ladder[i]; lotsS=(FirstLot[i]+Increment[i]*(LL)*Multiplier_2x[i])*Multiplier_1[i]*MathPow(Multiplier_3[i],LL); if(lotsS>RSI_LOTS_LIMITER)lotsS=RSI_LOTS_LIMITER; if(lotsS<MarketInfo(pairs[i],MODE_MINLOT)) lotsS=MarketInfo(pairs[i],MODE_MINLOT); if(lotsS>MarketInfo(pairs[i],MODE_MAXLOT)) lotsS=MarketInfo(pairs[i],MODE_MAXLOT); if(iSS[i][k]<eps) { ii=iSS[i][k]+1; if((iSS[i][k]+1)<=9)ii="0"+(iSS[i][k]+1); else if((iSS[i][k]+1)>99)ii="aa"; comment="@RSI//"+fs+"//"+ixi+"//SS//"+IO+"/"+ii; int tickSS1=OrderSend(pairs[i],OP_SELL,lotsS,MarketInfo(pairs[i],MODE_BID),3,0,0,comment,xMagic_Number,0,clrRed); err=GetLastError(); if(err>0) { if(err==131 || err==132 || err==133 || err==134 || err==136 || err==148) { if(dipson=="YES")Print("FF RSI RSI RSI----tickSS1--Oracheal CASE--------SS LastError = "+err+" "+pairs[i]); PAIR_SELECT[i]="NO"; timeR[i][k]=iTime(pairs[i],FRAME[k],0); } } if(OrderSelect(tickSS1,SELECT_BY_TICKET)) { iSS[i][k]++; priceSSx[i][k]=OrderOpenPrice(); Print("FF RSI RSI RSI--A Lots:"+OrderLots()+" / / "+OrderComment()+" / / iSS[i][k]: "+iSS[i][k]+" / / "+pairs[i]+" / / "+OrderOpenPrice()+" / / rsi1="+rsi1+" / / rsi2="+rsi2); timeR[i][k]=iTime(pairs[i],FRAME[k],0); } } else if(MarketInfo(pairs[i],MODE_BID)>(priceSSx[i][k]+pipsD[i]*MarketInfo(pairs[i],MODE_POINT))|| BY_PASS_ADDED_PIPS=="YES") { ii=iSS[i][k]+1; if((iSS[i][k]+1)<=9)ii="0"+(iSS[i][k]+1); else if((iSS[i][k]+1)>99)ii="aa"; comment="@RSI//"+fs+"//"+ixi+"//SS//"+IO+"/"+ii; int tickSS2=OrderSend(pairs[i],OP_SELL,lotsS,MarketInfo(pairs[i],MODE_BID),3,0,0,comment,xMagic_Number,0,clrRed); err=GetLastError(); if(err>0) { if(err==131 || err==132 || err==133 || err==134 || err==136 || err==148) { if(dipson=="YES")Print("FF RSI RSI RSI----tickSS2--Oracheal CASE--------SS LastError = "+err+" "+pairs[i]); PAIR_SELECT[i]="NO"; timeR[i][k]=iTime(pairs[i],FRAME[k],0); } } if(OrderSelect(tickSS2,SELECT_BY_TICKET)) { iSS[i][k]++; priceSSx[i][k]=OrderOpenPrice(); Print("FF RSI RSI RSI-- RSI RSI RSI--B Lots:"+OrderLots()+" / / "+OrderComment()+" / / iSS[i][k]: "+iSS[i][k]+" / / "+pairs[i]+" / / "+OrderOpenPrice()+" / / rsi1="+rsi1+" / / rsi2="+rsi2); timeR[i][k]=iTime(pairs[i],FRAME[k],0); } } } else { timeR[i][k]=iTime(pairs[i],FRAME[k],0); } } else { timeR[i][k]=iTime(pairs[i],FRAME[k],0); } } } } } } if(RSIcloseONcondition=="YES") { for(int m=OrdersTotal()-1;m>=0;m--) { if(OrderSelect(m,SELECT_BY_POS,MODE_TRADES)) { bool com1=StringSubstr(OrderComment(),0,4)=="@RSI"; bool com2=StringSubstr(OrderComment(),6,9)==fs; if(com1 && com2) { if(pairs[i]==OrderSymbol()) { if(!IsConnected() || !IsExpertEnabled() || !IsTradeAllowed() || IsStopped()) { ObjectsDeleteAll(0,"painter_"); return; } if(OrderType()==OP_SELL && rsi2<=RSI_DN_LEVEL && rsi1>=RSI_DN_LEVEL) { bool aa1=OrderClose(OrderTicket(),OrderLots(),OrderClosePrice(),33,clrRed); Print("FF RSI RSI RSI--OP_SELL RSI_DN_LEVEL--Error: "+OrderComment()+" Error: "+GetLastError()+"//"+pairs[i]); } else if(OrderType()==OP_BUY && rsi2>=RSI_UP_LEVEL && rsi1<=RSI_UP_LEVEL) { bool aa2=OrderClose(OrderTicket(),OrderLots(),OrderClosePrice(),33,clrBlue); Print("FF RSI RSI RSI--OP_BUY RSI_UP_LEVEL--Error: "+OrderComment()+" Error: "+GetLastError()+"//"+pairs[i]); } else if(OrderType()==OP_SELL && rsi2<=RSI_DN_TPLEVEL && rsi1>=RSI_DN_TPLEVEL) { bool bb1=OrderClose(OrderTicket(),OrderLots(),OrderClosePrice(),33,clrRed); Print("FF RSI RSI RSI--OP_SELL RSI_DN_TPLEVEL--Error: "+OrderComment()+" Error: "+GetLastError()+"//"+pairs[i]); } else if(OrderType()==OP_BUY && rsi2>=RSI_UP_TPLEVEL && rsi1<=RSI_UP_TPLEVEL) { bool bb2=OrderClose(OrderTicket(),OrderLots(),OrderClosePrice(),33,clrBlue); Print("FF RSI RSI RSI--OP_BUY RSI_UP_TPLEVEL--Error: "+OrderComment()+" Error: "+GetLastError()+"//"+pairs[i]); } } } } } } } } } } } } if(SY_RSIaTP=="YES" || SY_RSIaSL=="YES") { if(MathMod(timerTicker,DELAY_TP_ONE_TIME_TIMER)<eps) { MODIFY_TP_SL_RSI("@RSI"); } } } }
Dislikedyes you are right it must be greater than, not less than thank you very much the best member in FF. You must come to Saudi ArabiaIgnored
Dislikedexpectation for Australian dollar?? what is the possible degree of volatility?? {image}??Ignored
DislikedHello everyone Why is my Ref Price not reset when I reach 5% Equity? What did I set up wrong? Seems like enough money has been made to dump.... {image}Ignored
Dislikedyes you are right it must be greater than, not less than thank you very much the best member in FF. You must come to Saudi ArabiaIgnored