[Toute question de débutant, afin de ne pas encombrer le forum. Professionnels, ne passez pas votre chemin. Je ne peux aller nulle part sans toi. - page 839

 
tous les supports semblent être en place
 
etroplus:
tous les supports semblent être en place.

Et après return(0) ; où ?
 

Je l'ai inséré et maintenant il donne cette erreur

int' - point-virgule attendu

indique la variable 'ticket', mais est-elle suivie d'un point-virgule ou s'agit-il d'autre chose ?)


//----
int ticket ;
{
si (Bid >iHigh(NULL,PERIOD_D1,1)
{
ticket=OrderSend(Symbol(),OP_SELLSTOP,Lots_sell,iHigh(NULL,PERIOD_D1,1),3,iHigh(NULL,PERIOD_D1,1)+StopLoss_sell*Point,iHigh(NULL,PERIOD_D1,1)-TakeProfit_sell*Point)
}
si (Demande <iLow(NULL,PERIOD_D1,1)
{
ticket=OrderSend(Symbol(),OP_BUYSTOP,Lots_buy,iLow(NULL,PERIOD_D1,1),3,iLow(NULL,PERIOD_D1,1)-StopLoss_buy*Point,iLow(NULL,PERIOD_D1,1)+TakeProfit_buy*Point)
}
//oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo
retour(0) ;
}
//+------------------------------------------------------------------+
 

tout est là, les erreurs ont le numéro de ligne et la position verticale

et le code entier devrait être affiché.

 
etroplus:

Je l'ai inséré et maintenant il donne cette erreur

int' - point-virgule attendu

indique la variable 'ticket', mais est-elle suivie d'un point-virgule ou s'agit-il d'autre chose ?)


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


si (Bid >iHigh(NULL,PERIOD_D1,1) il manque une parenthèse droite

si (Ask <iLow(NULL,PERIOD_D1,1) la parenthèse droite est manquante

 

'int' - le point-virgule était attendu E:\Program Files\Broco Trader\experts\news trade.mq4 (46, 4)


//+------------------------------------------------------------------+
//| news trade.mq4 |
//| Copyright © 2010, MetaQuotes Software Corp.
//| http://www.metaquotes.net |
//+------------------------------------------------------------------+
#property copyright "Copyright © 2010, MetaQuotes Software Corp.
#lien de propriété "http://www.metaquotes.net"


extern bool In_BUYSTOP=true ;
extern intProfit_buy=100 ;
extern int StopLoss_buy=5 ;
extern double Lots_buy=0.01 ;
//+------------------------------------------------------------------+
extern bool In_SELLSTOP =true ;
externe interne TakeProfit_sell=100 ;
extern int StopLoss_sell =5 ;
extern double Lots_sell =0.01 ;
//+------------------------------------------------------------------+
//| fonction d'initialisation de l'expert |
//+------------------------------------------------------------------+
int init()
{
//----

//----
retour(0) ;
}
//+------------------------------------------------------------------+
//| fonction de désinitialisation des experts |
//+------------------------------------------------------------------+
int deinit()
{
//----
//----
retour(0) ;
}
//+------------------------------------------------------------------+
//| fonction de démarrage de l'expert |
//+------------------------------------------------------------------+
int start()
//----
int ticket ;
{
si (Bid >iHigh(NULL,PERIOD_D1,1)
{
ticket=OrderSend(Symbol(),OP_SELLSTOP,Lots_sell,iHigh(NULL,PERIOD_D1,1),3,iHigh(NULL,PERIOD_D1,1)+StopLoss_sell*Point,iHigh(NULL,PERIOD_D1,1)-TakeProfit_sell*Point)
}
si (Ask <iLow(NULL,PERIOD_D1,1)
{
ticket=OrderSend(Symbol(),OP_BUYSTOP,Lots_buy,iLow(NULL,PERIOD_D1,1),3,iLow(NULL,PERIOD_D1,1)-StopLoss_buy*Point,iLow(NULL,PERIOD_D1,1)+TakeProfit_buy*Point)
}
//oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo
retour(0) ;
}
//+------------------------------------------------------------------+
 

Fixez les supports. Ci-dessus, nous avons écrit où

 
J'ai corrigé les parenthèses et compilé, mais la même erreur apparaît.
 

'int' - le point-virgule était attendu E:\Program Files\Broco Trader\experts\news trade.mq4 (46, 4)


//+------------------------------------------------------------------+
//| news trade.mq4 |
//| Copyright © 2010, MetaQuotes Software Corp.
//| http://www.metaquotes.net |
//+------------------------------------------------------------------+
#property copyright "Copyright © 2010, MetaQuotes Software Corp.
#lien de propriété "http://www.metaquotes.net"


extern bool In_BUYSTOP=true ;
extern intProfit_buy=100 ;
extern int StopLoss_buy=5 ;
extern double Lots_buy=0.01 ;
//+------------------------------------------------------------------+
extern bool In_SELLSTOP =true ;
externe interne TakeProfit_sell=100 ;
extern int StopLoss_sell =5 ;
extern double Lots_sell =0.01 ;
//+------------------------------------------------------------------+
//| fonction d'initialisation de l'expert |
//+------------------------------------------------------------------+
int init()
{
//----

//----
retour(0) ;
}
//+------------------------------------------------------------------+
//| fonction de désinitialisation des experts |
//+------------------------------------------------------------------+
int deinit()
{
//----
//----
retour(0) ;
}
//+------------------------------------------------------------------+
//| fonction de démarrage de l'expert |
//+------------------------------------------------------------------+
int start()
//----
int ticket ;
{
si (Bid >iHigh(NULL,PERIOD_D1,1))
{
ticket=OrderSend(Symbol(),OP_SELLSTOP,Lots_sell,iHigh(NULL,PERIOD_D1,1),3,iHigh(NULL,PERIOD_D1,1)+StopLoss_sell*Point,iHigh(NULL,PERIOD_D1,1)-TakeProfit_sell*Point)
}
si (Ask <iLow(NULL,PERIOD_D1,1))
{
ticket=OrderSend(Symbol(),OP_BUYSTOP,Lots_buy,iLow(NULL,PERIOD_D1,1),3,iLow(NULL,PERIOD_D1,1)-StopLoss_buy*Point,iLow(NULL,PERIOD_D1,1)+TakeProfit_buy*Point)
}
//oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo
retour(0) ;
}
//+------------------------------------------------------------------+
 

Bonjour !

Comment puis-je déchiffrer

double g_price_196 ;
double gd_204 ;
double gd_unused_212 ;
double gd_unused_220 ;
double g_price_228 ;
double g_bid_236 ;
double g_ask_244 ;
double gd_252 ;
double gd_260 ;
double gd_276 ;
bool gi_284 ;

Raison: