Forum

Problem Open Order Moving Average

Hello, extern int iHeureDebut = 9 ; // Heure du debut de la plage horaire du filtre horaire extern int iMinutesDebut = 30 ; // Minutes du debut de la plage horaire du filtre horaire extern int iHeureFin = 20 ; // Heure de fin de la plage horaire du filtre horaire extern int iMinutesFin = 30 ; //

ERR_INVALID_STOPS

Hello, I try to code very basic EA. Can someone explains to me what is the problem with it ? It keeps saying ERR_INVALID_STOPS. int start() { if (iStop > 0 && iStop < MarketInfo ( Symbol (), MODE_STOPLEVEL) ) iStop = MarketInfo ( Symbol (), MODE_STOPLEVEL); if (iLimite > 0 && iLimite <

ERR_INVALID_TICKET

Hello, I'm trying to do simple EA for the moment and i don't understand why the following one doesn't work to close all the positions : for (int iCompteur = OrdersTotal() - 1; iCompteur >= 0; iCompteur--) // Boucle pour vérifier toutes les positions ouvertes ou en attentes { iTicket = OrderSelect

problem with function : unbalanced left parenthesis.

Hello, Does anyone can explain to me what is the problem with the following function ? It says to me : end_of_program : unbalanced left parenthesis. void fStopLimitMin(double iStop, double iLimite) { if ( iStop < MarketInfo(Symbol(), MODE_STOPLEVEL) iStop = MarketInfo(Symbol(), MODE_STOPLEVEL); if (

Difference Ask - MarketInfo(Symbol(), MODE_ASK)

Hello, Can anyone explain to me if Ask = MarketInfo (Symbol(), MODE_ASK) And if OrderSend (..., Ask, ..., ....) = OrderSend (.., MarketInfo (Symbol(), MODE_ASK), ....) ? Thank you