10points 3.mq4 - page 487

 

C'est comme ça que l'on regarde les marchés ces derniers temps. Des fourchettes et des pics ! Une nouvelle tactique de Wall Street et des magnats de la finance pour rendre les marchés imprévisibles. Au moins, nous savons que ce qui monte doit parfois redescendre. Cela doit obéir aux lois des vagues. L'univers entier est conduit par les vagues, donc les marchés.

10pts EA sell trade score -$2o5 mais ça va descendre. Tous les indicateurs y pointent.

Hermès

Dossiers :
 
hermes:
davidke20 nous travaillons toujours sur 10pts EA et essayons de l'améliorer, ou de le perfectionner, ou de le cosmétiser. Pourquoi alors changer de thème ? Avons-nous frappé un mur avec ce thème ? Hermès

Je n'ai pas dit que c'était mal de travailler sur 10p3. Je disais que faire un système qui va doubler "vers le haut" au lieu de doubler "vers le bas" n'est PLUS 10p3, autant appeler un nouveau fil de discussion.

Récemment, j'ai réussi à sauver mon disque dur endommagé, et j'ai commencé à récupérer des centaines et des centaines d'EA et d'indicateurs de plusieurs plateformes de trading. 10point3 variante, que seul j'ai comme 20 versions En outre, j'ai été arrêté de codage pendant plusieurs années, sont maintenant vraiment paresseux et ont du mal à rattraper quand regardé dans les codes

 

Est-ce qu'il y a quelqu'un qui peut me donner cet EA avec le choix de la direction d'achat/de vente. Je veux juste donner la direction d'achat/de vente dans cet EA.

 
shakilboss:
Est-ce qu'il y a quelqu'un qui peut me donner cet EA avec le choix de la direction d'achat/de vente ? Je veux juste donner une direction d'achat/de vente dans cet EA.

Bonjour Shakilboss,

Lorsque vous cliquez pour la première fois sur l'EA pour l'installer sur votre graphique, lorsqu'il s'ouvre, cliquez sur l'onglet commun, à l'extrême gauche, il y a un onglet déroulant qui dit Long & Short, cliquez dessus, et dans le menu déroulant, il y aura Long & Short, Long ou Short.

 

Il est certain que maintenant le trading long serait gratifiant ! EA est en baisse de -520$ mais ce n'est pas encore un gros problème, j'ai déjà été en baisse avec FX Hacked de plus de 1500$ et j'ai récupéré (j'ai fini avec +7$). J'ai lu récemment que Jesse Livermore a mis fin à sa vie en se suicidant ! Faites attention quand vous commencez à faire de gros bugs ! Vous pouvez vous ennuyer avec autant d'argent et c'est la fin du plaisir. Le plaisir sera maintenu si vous avez une jeune femme comptable. Elle s'occupera de la surcharge de vos fonds propres.

Bon week-end de récupération

Hermès

P.S. L'autre possibilité de contrôler la direction des trades est d'aller dans Expert Adviser sur la première page et de cocher la case "demander une confirmation manuelle" pour permettre le trading en direct mais c'est ennuyeux parce qu'il vous demandera une confirmation tout le temps.

 

aide s'il vous plaît

dans l'EA 10 points 3uniquement des positions courtes ouvertes((((

code :

extern double TakeProfit = 40 ;

extern double Lots = 1 ;

extern double InitialStop = 0 ;

extern double TrailingStop = 20 ;

extern int MaxTrades=10 ;

extern int Pips=15 ;

extern int SecureProfit=10 ;

extern int AccountProtection=1 ;

extern int OrderstoProtect=3 ;

extern int ReverseCondition=0 ;

extern double fSiPipValue=10 ;

extern double EURUSDPipValue=10 ;

extern double GBPUSDPipValue=10 ;

extern double USDCHFPipValue=10 ;

extern double USDJPYPipValue=9.715 ;

extern int StartYear=2005 ;

extern int StartMonth=1 ;

extern int EndYear=2006 ;

extern int EndMonth=12 ;

extern int EndHour=22 ;

extern int EndMinute=30 ;

extern int mm=0 ;

extern int Risk=12 ;

extern int AccountisNormal=0 ;

int OpenOrders=0, cnt=0 ;

int slippage=5 ;

double sl=0, tp=0 ;

double BuyPrice=0, SellPrice=0 ;

double lotsi=0, mylotsi=0 ;

int mode=0, myOrderType=0 ;

bool ContinueOpening=True ;

double LastPrice=0 ;

int PreviousOpenOrders=0 ;

double Profit=0 ;

int LastTicket=0, LastType=0 ;

double LastClosePrice=0, LastLots=0 ;

double Pivot=0 ;

double PipValue=0 ;

string text="", text2="" ;

//+------------------------------------------------------------------+

//| fonction d' initialisation de l'expert |

//+------------------------------------------------------------------+

int init()

{

//----

//----

return(0) ;

}

//+------------------------------------------------------------------+

//| fonction de désinitialisation experte |

//+------------------------------------------------------------------+

int deinit()

{

//----

//----

return(0) ;

}

//+------------------------------------------------------------------+

//| fonction de démarrage expert |

//+------------------------------------------------------------------+

int start()

{

//----

if (AccountisNormal==1)

{

if (mm!=0) { lotsi=MathCeil(AccountBalance()*risk/10000) ; }

else { lotsi=Lots ; }

} else { // then is mini

if (mm!=0) { lotsi=MathCeil(AccountBalance()*risk/10000)/10 ; }

else { lotsi=Lots ; }

}

si (lotsi>100){ lotsi=100 ; }

OpenOrders=0 ;

for(cnt=0;cnt<OrdersTotal();cnt++)

{

OrderSelect(cnt, SELECT_BY_POS, MODE_TRADES) ;

si (OrderSymbol()==Symbol())

{

OpenOrders++ ;

}

}

si (OrdresOuverts<1)

{

if (TimeYear(CurTime())<StartYear) { return(0) ; }

if (TimeMonth(CurTime())<StartMonth) { return(0) ; }

if (TimeYear(CurTime())>EndYear) { return(0) ; }

if (TimeMonth(CurTime())>EndMonth ) { return(0) ; } ; }

}

if (Symbol()=="fSi") { PipValue=fSiPipValue ; }

if (Symbol()=="EURUSD") { PipValue=EURUSDPipValue ; }

if (Symbol()=="GBPUSD") { PipValue=GBPUSDPipValue ; }

if (Symbol()=="USDJPY") { PipValue=USDJPYPipValue ; }

if (Symbol()=="USDCHF") { PipValue=USDCHFPipValue ; }

if (PipValue==0) { PipValue=5 ; }

si (PreviousOpenOrders>OpenOrders)

{

for(cnt=OrdersTotal();cnt>=0;cnt--)

{

OrderSelect(cnt, SELECT_BY_POS, MODE_TRADES) ;

mode=OrderType() ;

si (OrderSymbol()==Symbol())

{

si (mode==OP_BUY) { OrderClose(OrderTicket(),OrderLots(),OrderClosePrice(),slippage,Blue) ; }

if (mode==OP_SELL) { OrderClose(OrderTicket(),OrderLots(),OrderClosePrice(),slippage,Red) ; } }

return(0) ;

}

}

}

PreviousOpenOrders=OpenOrders ;

si (OpenOrders>=MaxTrades)

{

ContinueOpening=False ;

} autre {

ContinueOpening=True ;

}

if (LastPrice==0)

{

for(cnt=0;cnt<OrdersTotal();cnt++)

{

OrderSelect(cnt, SELECT_BY_POS, MODE_TRADES) ;

mode=OrderType() ;

si (OrderSymbol()==Symbol())

{

LastPrice=OrderOpenPrice() ;

if (mode==OP_BUY) { myOrderType=2 ; }

si (mode==OP_SELL) { myOrderType=1 ; }

}

}

}

si (OpenOrders<1)

{

myOrderType=3 ;

//si (iMACD(14,26,9,MODE_MAIN,0)>0 et iMACD(14,26,9,MODE_MAIN,0)>iMACD(14,26,9,MODE_MAIN,1)) then OrderType=2 ;

if (iMACD(NULL,0,14,26,9,PRICE_CLOSE,MODE_MAIN,0)>iMACD(NULL,0,14,26,9,PRICE_CLOSE,MODE_MAIN,1)) { myOrderType=2 ; }

//si (iMACD(14,26,9,MODE_MAIN,0)<0 et iMACD(14,26,9,MODE_MAIN,0)<iMACD(14,26,9,MODE_MAIN,1)) then OrderType=1 ;

si (iMACD(NULL,0,14,26,9,PRICE_CLOSE,MODE_MAIN,0)<iMACD(NULL,0,14,26,9,PRICE_CLOSE,MODE_MAIN,1)) { myOrderType=1 ; }

if (ReverseCondition==1)

{

if (myOrderType==1) { myOrderType=2 ; }

else { if (myOrderType==2) { myOrderType=1 ; } }

}

}

// si nous avons ouvert des positions, nous nous en occupons

for(cnt=OrdersTotal();cnt>=0;cnt--)

{

OrderSelect(cnt, SELECT_BY_POS, MODE_TRADES) ;

si (OrderSymbol() == Symbol())

{

si (OrderType()==OP_SELL))

{

si (TrailingStop>0)

{

si (OrderOpenPrice()-Ask>=(TrailingStop+Pips)*Point)

{

si (OrderStopLoss()>(Ask+Point*TrailingStop))

{

OrderModify(OrderTicket(),OrderOpenPrice(),Ask+Point*TrailingStop,OrderClosePrice()-TakeProfit*Point-TrailingStop*Point,800,Purple) ;

retour(0) ;

}

}

}

}

si (OrderType()==OP_BUY)

{

si (TrailingStop>0)

{

si (Bid-OrderOpenPrice()>=(TrailingStop+Pips)*Point)

{

si (OrderStopLoss()<(Bid-Point*TrailingStop))

{

OrderModify(OrderTicket(),OrderOpenPrice(),Bid-Point*TrailingStop,OrderClosePrice()+TakeProfit*Point+TrailingStop*Point,800,Yellow) ;

retour(0) ;

}

}

}

}

}

}

Profit=0 ;

LastTicket=0 ;

LastType=0 ;

LastClosePrice=0 ;

LastLots=0 ;

for(cnt=0;cnt<OrdersTotal();cnt++)

{

OrderSelect(cnt, SELECT_BY_POS, MODE_TRADES) ;

si (OrderSymbol()==Symbol())

{

LastTicket=OrderTicket() ;

if (OrderType()==OP_BUY) { LastType=OP_BUY ; }

if (OrderType()==OP_SELL) { LastType=OP_SELL ; }

LastClosePrice=OrderClosePrice() ;

LastLots=OrderLots() ;

si (LastType==OP_BUY)

{

//Profit=Profit+(Ord(cnt,VAL_CLOSEPRICE)-Ord(cnt,VAL_OPENPRICE))*PipValue*Ord(cnt,VAL_LOTS) ;

si (OrderClosePrice()<OrderOpenPrice())

{Profit=Profit-(OrderOpenPrice()-OrderClosePrice())*OrderLots()/Point ; }

si (OrderClosePrice()>OrderOpenPrice())

{ Profit=Profit+(OrderClosePrice()-OrderOpenPrice())*OrderLots()/Point ; }

}

si (LastType==OP_SELL)

{

//Profit=Profit+(Ord(cnt,VAL_OPENPRICE)-Ord(cnt,VAL_CLOSEPRICE))*PipValue*Ord(cnt,VAL_LOTS) ;

si (OrderClosePrice()>OrderOpenPrice())

{Profit=Profit-(OrderClosePrice()-OrderOpenPrice())*OrderLots()/Point ; }

si (OrderClosePrice()<OrderOpenPrice())

{ Profit=Profit+(OrderOpenPrice()-OrderClosePrice())*OrderLots()/Point ; }

}

//Print(Symbole," :",Profit,",",LastLots) ;

}

}

Profit=Profit*PipValue ;

text2="Profit : $"+DoubleToStr(Profit,2)+" +/-" ;

si (OpenOrders>=(MaxTrades-OrderstoProtect) && AccountProtection==1)

{

//Print(Symbole," :",Profit) ;

si (Profit>=SecureProfit)

{

OrderClose(LastTicket,LastLots,LastClosePrice,slippage,Yellow) ;

ContinueOpening=False ;

retour(0) ;

}

}

if (!IsTesting())

{

if (myOrderType==3) { text="Aucune condition pour ouvrir des transactions" ; }

else { text=" " ; }

Comment("LastPrice=",LastPrice," Previous open orders=",PreviousOpenOrders,"\nContinue opening=",ContinueOpening," OrderType=",myOrderType,"\n",text2,"\nLots=",lotsi,"\n",text) ;

}

if (myOrderType==1 && ContinueOpening)

{

si ((Bid-LastPrice)>=Pips*Point || OpenOrders<1)

{

SellPrice=Bid ;

LastPrice=0 ;

si (TakeProfit==0) { tp=0 ; }

else { tp=SellPrice-TakeProfit*Point ; }

si (InitialStop==0) { sl=0 ; }

sinon { sl=Prix de vente+But initial*Point ; }

si (OpenOrders!=0)

{

mylotsi=lotsi ;

for(cnt=1;cnt<=OpenOrders;cnt++)

{

si (MaxTrades>12) { mylotsi=NormalizeDouble(mylotsi*1.5,1) ; }

else { mylotsi=NormalizeDouble(mylotsi*2,1) ; } }

}

} else { mylotsi=lotsi ; }

if (mylotsi>100) { mylotsi=100 ; } }

OrderSend(Symbol(),OP_SELL,mylotsi,SellPrice,slippage,sl,tp,NULL,0,0,Red) ;

retour(0) ;

}

}

si (myOrderType==2 && ContinueOpening)

{

si ((LastPrice-Ask)>=Pips*Point || OpenOrders<1)

{

BuyPrice=Ask ;

LastPrice=0 ;

si (TakeProfit==0) { tp=0 ; }

else { tp=BuyPrice+TakeProfit*Point ; }

if (InitialStop==0) { sl=0 ; }

sinon { sl=BuyPrice-InitialStop*Point ; }

si (OpenOrders!=0) {

mylotsi=lotsi ;

for(cnt=1;cnt<=OpenOrders;cnt++)

{

si (MaxTrades>12) { mylotsi=NormalizeDouble(mylotsi*1.5,1) ; }

else { mylotsi=NormalizeDouble(mylotsi*2,1) ; } }

}

} else { mylotsi=lotsi ; }

if (mylotsi>100) { mylotsi=100 ; } }

OrderSend(Symbol(),OP_BUY,mylotsi,BuyPrice,slippage,sl,tp,NULL,0,0,Blue) ;

retour(0) ;

}

}

//----

return(0) ;

}

+------------------------------------------------------------------+

autre question

dans l'EA 10pts3_Smi_Rsi1_mrtools erreurs

Veuillez télécharger les indicateurs

merci les amis

Dossiers :
 

Salut les gars

J'ai utilisé une fois cette ea pour faire 500% en un mois, puis elle a tout mangé la semaine suivante.

Mon conseil est de trader cette machine à fric sur les paires peu communes, comme le ddksgd etc, n'importe quelle paire moins volatile fera l'affaire.

Salutations

 
kosntantin:
dans EA 10 points 3uniquement des positions courtes ouvertes(((

code :

extern double TakeProfit = 40 ;

extern double Lots = 1 ;

extern double InitialStop = 0 ;

extern double TrailingStop = 20 ;

extern int MaxTrades=10 ;

extern int Pips=15 ;

extern int SecureProfit=10 ;

extern int AccountProtection=1 ;

extern int OrderstoProtect=3 ;

extern int ReverseCondition=0 ;

extern double fSiPipValue=10 ;

extern double EURUSDPipValue=10 ;

extern double GBPUSDPipValue=10 ;

extern double USDCHFPipValue=10 ;

extern double USDJPYPipValue=9.715 ;

extern int StartYear=2005 ;

extern int StartMonth=1 ;

extern int EndYear=2006 ;

extern int EndMonth=12 ;

extern int EndHour=22 ;

extern int EndMinute=30 ;

extern int mm=0 ;

extern int Risk=12 ;

extern int AccountisNormal=0 ;

int OpenOrders=0, cnt=0 ;

int slippage=5 ;

double sl=0, tp=0 ;

double BuyPrice=0, SellPrice=0 ;

double lotsi=0, mylotsi=0 ;

int mode=0, myOrderType=0 ;

bool ContinueOpening=True ;

double LastPrice=0 ;

int PreviousOpenOrders=0 ;

double Profit=0 ;

int LastTicket=0, LastType=0 ;

double LastClosePrice=0, LastLots=0 ;

double Pivot=0 ;

double PipValue=0 ;

string text="", text2="" ;

//+------------------------------------------------------------------+

//| fonction d'initialisation de l'expert |

//+------------------------------------------------------------------+

int init()

{

//----

//----

return(0) ;

}

//+------------------------------------------------------------------+

//| fonction de désinitialisation experte |

//+------------------------------------------------------------------+

int deinit()

{

//----

//----

return(0) ;

}

//+------------------------------------------------------------------+

//| fonction de démarrage expert |

//+------------------------------------------------------------------+

int start()

{

//----

if (AccountisNormal==1)

{

if (mm!=0) { lotsi=MathCeil(AccountBalance()*risk/10000) ; }

else { lotsi=Lots ; }

} else { // then is mini

if (mm!=0) { lotsi=MathCeil(AccountBalance()*risk/10000)/10 ; }

else { lotsi=Lots ; }

}

si (lotsi>100){ lotsi=100 ; }

OpenOrders=0 ;

for(cnt=0;cnt<OrdersTotal();cnt++)

{

OrderSelect(cnt, SELECT_BY_POS, MODE_TRADES) ;

si (OrderSymbol()==Symbol())

{

OpenOrders++ ;

}

}

if (OpenOrders<1)

{

if (TimeYear(CurTime())<StartYear) { return(0) ; }

if (TimeMonth(CurTime())<StartMonth) { return(0) ; }

if (TimeYear(CurTime())>EndYear) { return(0) ; }

if (TimeMonth(CurTime())>EndMonth ) { return(0) ; } ; }

}

if (Symbol()=="fSi") { PipValue=fSiPipValue ; }

if (Symbol()=="EURUSD") { PipValue=EURUSDPipValue ; }

if (Symbol()=="GBPUSD") { PipValue=GBPUSDPipValue ; }

if (Symbol()=="USDJPY") { PipValue=USDJPYPipValue ; }

if (Symbol()=="USDCHF") { PipValue=USDCHFPipValue ; }

if (PipValue==0) { PipValue=5 ; }

si (PreviousOpenOrders>OpenOrders)

{

for(cnt=OrdersTotal();cnt>=0;cnt--)

{

OrderSelect(cnt, SELECT_BY_POS, MODE_TRADES) ;

mode=OrderType() ;

si (OrderSymbol()==Symbol())

{

si (mode==OP_BUY) { OrderClose(OrderTicket(),OrderLots(),OrderClosePrice(),slippage,Blue) ; }

if (mode==OP_SELL) { OrderClose(OrderTicket(),OrderLots(),OrderClosePrice(),slippage,Red) ; } }

return(0) ;

}

}

}

PreviousOpenOrders=OpenOrders ;

si (OpenOrders>=MaxTrades)

{

ContinueOpening=False ;

} autre {

ContinueOpening=True ;

}

if (LastPrice==0)

{

for(cnt=0;cnt<OrdersTotal();cnt++)

{

OrderSelect(cnt, SELECT_BY_POS, MODE_TRADES) ;

mode=OrderType() ;

si (OrderSymbol()==Symbol())

{

LastPrice=OrderOpenPrice() ;

if (mode==OP_BUY) { myOrderType=2 ; }

if (mode==OP_SELL) { myOrderType=1 ; }

}

}

}

si (OpenOrders<1)

{

myOrderType=3 ;

//si (iMACD(14,26,9,MODE_MAIN,0)>0 et iMACD(14,26,9,MODE_MAIN,0)>iMACD(14,26,9,MODE_MAIN,1)) then OrderType=2 ;

if (iMACD(NULL,0,14,26,9,PRICE_CLOSE,MODE_MAIN,0)>iMACD(NULL,0,14,26,9,PRICE_CLOSE,MODE_MAIN,1)) { myOrderType=2 ; }

//si (iMACD(14,26,9,MODE_MAIN,0)<0 et iMACD(14,26,9,MODE_MAIN,0)<iMACD(14,26,9,MODE_MAIN,1)) then OrderType=1 ;

si (iMACD(NULL,0,14,26,9,PRICE_CLOSE,MODE_MAIN,0)<iMACD(NULL,0,14,26,9,PRICE_CLOSE,MODE_MAIN,1)) { myOrderType=1 ; }

if (ReverseCondition==1)

{

if (myOrderType==1) { myOrderType=2 ; }

else { if (myOrderType==2) { myOrderType=1 ; } }

}

}

// si nous avons ouvert des positions, nous nous en occupons

for(cnt=OrdersTotal();cnt>=0;cnt--)

{

OrderSelect(cnt, SELECT_BY_POS, MODE_TRADES) ;

si (OrderSymbol() == Symbol())

{

si (OrderType()==OP_SELL))

{

si (TrailingStop>0)

{

si (OrderOpenPrice()-Ask>=(TrailingStop+Pips)*Point)

{

si (OrderStopLoss()>(Ask+Point*TrailingStop))

{

OrderModify(OrderTicket(),OrderOpenPrice(),Ask+Point*TrailingStop,OrderClosePrice()-TakeProfit*Point-TrailingStop*Point,800,Purple) ;

retour(0) ;

}

}

}

}

si (OrderType()==OP_BUY)

{

si (TrailingStop>0)

{

si (Bid-OrderOpenPrice()>=(TrailingStop+Pips)*Point)

{

si (OrderStopLoss()<(Bid-Point*TrailingStop))

{

OrderModify(OrderTicket(),OrderOpenPrice(),Bid-Point*TrailingStop,OrderClosePrice()+TakeProfit*Point+TrailingStop*Point,800,Yellow) ;

retour(0) ;

}

}

}

}

}

}

Profit=0 ;

LastTicket=0 ;

LastType=0 ;

LastClosePrice=0 ;

LastLots=0 ;

for(cnt=0;cnt<OrdersTotal();cnt++)

{

OrderSelect(cnt, SELECT_BY_POS, MODE_TRADES) ;

si (OrderSymbol()==Symbol())

{

LastTicket=OrderTicket() ;

if (OrderType()==OP_BUY) { LastType=OP_BUY ; }

if (OrderType()==OP_SELL) { LastType=OP_SELL ; }

LastClosePrice=OrderClosePrice() ;

LastLots=OrderLots() ;

si (LastType==OP_BUY)

{

//Profit=Profit+(Ord(cnt,VAL_CLOSEPRICE)-Ord(cnt,VAL_OPENPRICE))*PipValue*Ord(cnt,VAL_LOTS) ;

si (OrderClosePrice()<OrderOpenPrice())

{Profit=Profit-(OrderOpenPrice()-OrderClosePrice())*OrderLots()/Point ; }

si (OrderClosePrice()>OrderOpenPrice())

{ Profit=Profit+(OrderClosePrice()-OrderOpenPrice())*OrderLots()/Point ; }

}

si (LastType==OP_SELL)

{

//Profit=Profit+(Ord(cnt,VAL_OPENPRICE)-Ord(cnt,VAL_CLOSEPRICE))*PipValue*Ord(cnt,VAL_LOTS) ;

si (OrderClosePrice()>OrderOpenPrice())

{Profit=Profit-(OrderClosePrice()-OrderOpenPrice())*OrderLots()/Point ; }

si (OrderClosePrice()<OrderOpenPrice())

{ Profit=Profit+(OrderOpenPrice()-OrderClosePrice())*OrderLots()/Point ; }

}

//Print(Symbole," :",Profit,",",LastLots) ;

}

}

Profit=Profit*PipValue ;

text2="Profit : $"+DoubleToStr(Profit,2)+" +/-" ;

si (OpenOrders>=(MaxTrades-OrderstoProtect) && AccountProtection==1)

{

//Print(Symbole," :",Profit) ;

si (Profit>=SecureProfit)

{

OrderClose(LastTicket,LastLots,LastClosePrice,slippage,Yellow) ;

ContinueOpening=False ;

retour(0) ;

}

}

if (!IsTesting())

{

if (myOrderType==3) { text="Aucune condition pour ouvrir des transactions" ; }

else { text=" " ; }

Comment("LastPrice=",LastPrice," Previous open orders=",PreviousOpenOrders,"\nContinue opening=",ContinueOpening," OrderType=",myOrderType,"\n",text2,"\nLots=",lotsi,"\n",text) ;

}

if (myOrderType==1 && ContinueOpening)

{

si ((Bid-LastPrice)>=Pips*Point || OpenOrders<1)

{

SellPrice=Bid ;

LastPrice=0 ;

si (TakeProfit==0) { tp=0 ; }

else { tp=SellPrice-TakeProfit*Point ; }

si (InitialStop==0) { sl=0 ; }

sinon { sl=Prix de vente+But initial*Point ; }

si (OpenOrders!=0)

{

mylotsi=lotsi ;

for(cnt=1;cnt<=OpenOrders;cnt++)

{

si (MaxTrades>12) { mylotsi=NormalizeDouble(mylotsi*1.5,1) ; }

else { mylotsi=NormalizeDouble(mylotsi*2,1) ; } }

}

} else { mylotsi=lotsi ; }

if (mylotsi>100) { mylotsi=100 ; } }

OrderSend(Symbol(),OP_SELL,mylotsi,SellPrice,slippage,sl,tp,NULL,0,0,Red) ;

retour(0) ;

}

}

si (myOrderType==2 && ContinueOpening)

{

si ((LastPrice-Ask)>=Pips*Point || OpenOrders<1)

{

BuyPrice=Ask ;

LastPrice=0 ;

si (TakeProfit==0) { tp=0 ; }

else { tp=BuyPrice+TakeProfit*Point ; }

if (InitialStop==0) { sl=0 ; }

sinon { sl=BuyPrice-InitialStop*Point ; }

si (OpenOrders!=0) {

mylotsi=lotsi ;

for(cnt=1;cnt<=OpenOrders;cnt++)

{

si (MaxTrades>12) { mylotsi=NormalizeDouble(mylotsi*1.5,1) ; }

else { mylotsi=NormalizeDouble(mylotsi*2,1) ; } }

}

} else { mylotsi=lotsi ; }

if (mylotsi>100) { mylotsi=100 ; } }

OrderSend(Symbol(),OP_BUY,mylotsi,BuyPrice,slippage,sl,tp,NULL,0,0,Blue) ;

retour(0) ;

}

}

//----

return(0) ;

}

+------------------------------------------------------------------+

autre question

dans l'EA 10pts3_Smi_Rsi1_mrtools erreurs

Veuillez télécharger les indicateurs

remercier les amis

Kosntantin,

Pour le code que vous avez posté vous pouvez essayer cette version corrigée ici https://www.mql5.com/en/forum/174975 post #4819

Pour la deuxième partie de votre question les indicateurs sont ici https://www.mql5.com/en/forum/174975 post#4845

 

Les paires à faible volatilité seraient : EURGBP, EURCHF, NZDUSD et AUDUSD. Le nouvel EA avec RSI intégré est timide pour ouvrir un trade. Pas encore de trade.

Merci Hermes

 

EA a récupéré un peu de -$550 à -$330 mais il reste encore beaucoup de chemin à parcourir. RSI 10pts mort.

Hermès