Comment coderiez vous ceci :
Je souhaite faire un EA basé sur 2 indics customs qui sont en pièces jointes :
Je souhaite utilisé des booléens comme ceci
Code:bool grand_trois; bool etoile_jaune ; bool etoile_rose ;
![]() |
|
![]() |
|
Dimanche 27 Mai 2012
Trader-Forex.fr en RSS
Comment coderiez vous ceci :
Je souhaite faire un EA basé sur 2 indics customs qui sont en pièces jointes :
Je souhaite utilisé des booléens comme ceci
Code:bool grand_trois; bool etoile_jaune ; bool etoile_rose ;
donne toujours les lignes de codes, je vais essayer de faire avec.
moi si tu peut me coder juste les etoile quand c est etoile jaune buy et rose sell
Bon je peux quand même te les donner :
Code:double etoile_jaune = iCustom(NULL, 0, "BBands_StopsV1A_mtf2", 2,0); double etoile_rose = iCustom(NULL, 0, "BBands_StopsV1A_mtf2", 3,0);
Dernière modification par condor666 ; 16/01/2010 à 14h30.
extern string note2="#### 1) Bband Stop Parameters ####";
/////////////////////////////////
extern bool Usebband1 =true;
extern int Length =5; // Bollinger Bands Period
extern double Deviation =1.62; // Deviation was 2
extern double MoneyRisk =1.00; // Offset Factor
extern int SignalMode =1; // Display signals mode: 1-Signals & Stops; 0-only Stops; 2-only Signals; 3-no Signals;
extern int Line =1; // Display line mode: 0-no,1-yes
extern int Nbars =1500;
extern bool AlertSoundON =false;
extern int TimeFrame = 0;
//1,UpTrendBuffer
//2,DownTrendBuffer
//3,UpTrendSignal
//4,DownTrendSignal
//5,UpTrendLine
//6,DownTrendLine
double Var1 = iCustom(NULL, 0, "BBands_StopsV1A_seca", Length,Deviation,MoneyRisk,SignalMode,Line,Nbars,A lertSoundON,TimeFrame, 0, Current + 0);
double Var2 = iCustom(NULL, 0, "BBands_StopsV1A_seca", Length,Deviation,MoneyRisk,SignalMode,Line,Nbars,A lertSoundON,TimeFrame, 1, Current + 0);
double Var3 = iCustom(NULL, 0, "BBands_StopsV1A_seca", Length,Deviation,MoneyRisk,SignalMode,Line,Nbars,A lertSoundON,TimeFrame, 2, Current + 0);
double Var4 = iCustom(NULL, 0, "BBands_StopsV1A_seca", Length,Deviation,MoneyRisk,SignalMode,Line,Nbars,A lertSoundON,TimeFrame, 3, Current + 0);
double Var5 = iCustom(NULL, 0, "BBands_StopsV1A_seca", Length,Deviation,MoneyRisk,SignalMode,Line,Nbars,A lertSoundON,TimeFrame, 4, Current + 0);
double Var6 = iCustom(NULL, 0, "BBands_StopsV1A_seca", Length,Deviation,MoneyRisk,SignalMode,Line,Nbars,A lertSoundON,TimeFrame, 5, Current + 0);
----------------------------------------------------------------------
semaphore
-----------------
extern string A8="---------------- Level_ZZ_Semafor";
extern double Period3 = 34.0;
extern string Dev_Step_3 = "13,8";
extern int Symbol_3_Kod = 142;
double Var1 = iCustom(NULL, 0, "ZZ3", Period3, Dev_Step_3, Symbol_3_Kod, 0, 0); // indicator_color5 Yellow BuferDn
double Var2 = iCustom(NULL, 0, "ZZ3", Period3, Dev_Step_3, Symbol_3_Kod, 1, 0); // indicator_color6 Yellow BuferUp
remplace juste les noms dans icustom
désolé du retard , j'étais couché![]()