#1: t_Wt3 = ((tst2=(iCustom(NULL, 0, "Entry_Points_Pro.ex4", "", maxcand, "", 0, 0, 500, "", 0, "", "01:00", "23:00", "", 1, 90, 2, 0) > 0.0)) && TimeCurrent() % 300 > 290) || (TimeCurrent() % 300 < 10 && t_Wt3 && iCustom(NULL, 0, "Entry_Points_Pro.ex4", "", maxcand, "", 0, 0, 500, "", 0, "", "01:00", "23:00", "", 1, 90, 2, 1) && (iCustom(NULL, 0, "Parabolic.ex4", 0, 1) < iLow(NULL, 0, 1) || (EPP_Max_ < iClose(NULL, 0, 1) && EPP_Max_ > iOpen(NULL, 0, 1)))); if (tst2) tim5 = TimeCurrent(); #1: signal Entry_Points_Pro Buy dans les 10 dernières secondes par M5 quelque soit Period() (*1) OU (précédent (*1) ET 10 premières secondes par M5 quelque soit Period() ET signal Entry_Points_Pro Buy M5(-1) ET (Parabolic(-1) < Low(-1) OU position Entry_Points_Pro < Close(-1) ET position Entry_Points_Pro > Open(-1))) -> pb. : EPP_Min et EPP_Max ne sont pas réinitialisés à chaque changement de sens Buy / Sell et donc ne correspondent pas forcément aux Min / Max de la tendance en cours -> voir si c'est utile de cette manière ou s'il faut bien réinitialiser à chaque changement de sens Buy / Sell (*) #2: if (t_Pass && t_Sent && ! Bull && (((((t_Wt3 || ! t_O240) && (TimeCurrent() % 300 < 10 || ! Sell_) && tst2) || tst_d || (t_H4_M5 && floor((TimeCurrent()-tim7)/(Period()*60)) > 7) || tst4) && OrderSelect(ticket, SELECT_BY_TICKET) && ! OrderCloseTime() && (myHour() > 3 || st_bull || (((tst2 && ! t_Rsi515) || (myHour() > 4 && (! iCustom(NULL, 0, "Entry_Points_Pro.ex4", "", maxcand, "", 0, 0, 500, "", 0, "", "08:00", "21:00", "", 1, 90, 2, DeepSkyBlue, Red, LimeGreen, LightSkyBlue, "", false, 3, f_wBars(tim6, TimeCurrent())) || iCustom(NULL, 0, "Entry_Points_Pro.ex4", "", maxcand, "", 0, 0, 500, "", 0, "", "08:00", "21:00", "", 1, 90, 2, DeepSkyBlue, Red, LimeGreen, LightSkyBlue, "", false, 5, f_wBars(tim6, TimeCurrent()))))) && myHour() > 1))) || (tst3=(OrderSelect(ticket, SELECT_BY_TICKET) && floor(OrderOpenTime() / 60) >= tim_mn_b && floor(OrderOpenTime() / 60) <= tim_min_ && tim_min_ - tim_mn_b < 5)))) ------------------------------------- (Sell_=(Sell_? Sell_: (Sell(Manual Trade Cashpower) && ! OrdersTotal() && myHour() > 2 && (m3_RSI(0,2) < 46 || m3_RSI(0,2) > 54))) t_H4_M5 =/* Period() >= 30 &&*/ (t_Sent || ticket2) && ((Bull && (GlobalVariableGet("t-"+ Symbol() + "_M5_Sell") || (! GlobalVariableGet("t-"+ Symbol() + "_M5_Buy") && (tst6 || Bid < iCustom(NULL, 0, "Parabolic.ex4", 0, 1) || iCustom(NULL, 0, "Parabolic.ex4", 0, 1) < sup_trend) && (! Buy_ || floor((TimeCurrent() - tim4) / (Period() * 60)) > 7)))) || (! Bull && (GlobalVariableGet("t-"+ Symbol() + "_M5_Buy") || (! GlobalVariableGet("t-"+ Symbol() + "_M5_Sell") && (tst6 || Ask > iCustom(NULL, 0, "Parabolic.ex4", 0, 1) || iCustom(NULL, 0, "Parabolic.ex4", 0, 1) > sup_trend) && (! Sell_ || floor((TimeCurrent() - tim4) / (Period() * 60)) > 7))))); bool tst2, tst3; if (! tst3 && tst && t_O240 && GlobalVariableGet("t-"+ Symbol() + "_H4_Buy") && (st_bull || GlobalVariableGet("t-"+ Symbol() + "_M5_Buy"))) { ticket = OrderSend(Symbol(), 0, 0.01, Ask, 15, 0.99 * Ask, 0.0, NULL, Period() == 30? 5555541: Period() == 60? 5555542: 5555543, 0, clrNONE); if (ticket > 0) { tim1 = TimeCurrent(); t_Sent = true; Bull = true; tst = false; tst4 = true; ------------------------------------- #2: si premier Tick() fini ET trade Sell en cours ET ((((((#1) OU pas de signal 240) ET (10 premières secondes par M5 quelque soit Period() OU not précédent "Trade Cashpower" Sell) ET signal Entry_Points_Pro Buy) OU signal X(EPP) downtrend OU (contre signal M5 en cours ET précédent signal Buy > 7 barres) OU trade inverse actif suite signal X(EPP)) ET trade en cours ET not closed ET (heure > 3 OU SuperTrend Buy OU (((signal Entry_Points_Pro Buy ET RSI élévé) OU (heure > 4 ET dernier signal Entry_Points_Pro Sell annulé)) ET heure > 1))) OU (ouverture dernier trade après l'avant-dernier changement de sens de st_bull et avant le dernier changement de sens de st_bull ET moins de 5 mn d'écart entre les deux)) -> rem. : && ((TimeCurrent() % 300 < 10 || ! Sell_) && tst2)) <-> && (TimeCurrent() % 300 < 10 || ! Sell_) && tst2) et (((t_Wt3 || ! t_O240) && (TimeCurrent() % 300 < 10 || ! Sell_) && tst2)) <-> ((t_Wt3 || ! t_O240) && (TimeCurrent() % 300 < 10 || ! Sell_) && tst2) #3: if ((! Sell && (t_BS != 2 || floor((TimeCurrent() - tim4) / (Period() * 60)) > 7) && (! tst || (! Buy_ && ! Sell_)) && (! tst4 || floor((TimeCurrent() - tim1) / (Period() * 60)) > 7 || GlobalVariableGet("t-"+ Symbol() + "_M5_Buy") || ! GlobalVariableGet("t-"+ Symbol() + "_M5_Sell"))) || (floor((TimeCurrent() - tim4) / (Period() * 60)) > 7 && TimeCurrent() % 300 < 10 && t_Wt3) || (tst4 && st_bull && Ask < iMA(NULL, 0, 100, 0, MODE_EMA, PRICE_CLOSE, 0) && OrderOpenPrice() > iMA(NULL, 0, 100, 0, MODE_EMA, PRICE_CLOSE, 0)) || tst3) { t_Wt3 = false; #3: (not signal "Trade Cashpower" Sell ET (not dernier "Trade Cashpower" Sell (actif ou pas) OU barre de dernier "Trade Cashpower" > 7) ET (pas de signal X OU jamais eu de "Trade Cashpower") ET (not trade inverse suite signal X(EPP) OU barre dernier trade ouvert > 7 OU signal M5 Buy OU not signal M5 Sell)) OU (barre de dernier "Trade Cashpower" > 7 ET 10 premières secondes par M5 quelque soit Period() ET (#1)) OU (trade inverse actif suite signal X(EPP) ET SuperTrend Buy ET Ask < iMA(100) ET prix du dernier trade > iMA(100)) OU (ouverture dernier trade après l'avant-dernier changement de sens de st_bull et avant le dernier changement de sens de st_bull ET moins de 5 mn d'écart entre les deux) Alert((temp="*** SELL Closed! - " + IntegerToString(ticket) + " - " + Symbol() + " - " + Bull + " - " + tst + " - " + t_H4_M5 + " - " + TimeToStr(tim1, TIME_MINUTES) + " - " + GlobalVariableGet("t-"+ Symbol() + "_M5_Buy") + " - " + (f_wBars(tim1, TimeCurrent())) + " ***")); copy_file(temp, 1); // floor(TimeCurrent()/(60*Period())) - floor(tim1/(60*Period())) temp = "* SELL Closed! | " + t_Sent + " | " + Bull + " | " + t_O240 + " | " + tst4 + " | " + OrderSelect(ticket, SELECT_BY_TICKET) + " | " + GlobalVariableGet("t-"+ Symbol() + "_M5_Buy") + " | " + GlobalVariableGet("t-"+ Symbol() + "_M5_Sell") + " | " + DoubleToStr(Bid, 2) + " | " + DoubleToStr(OrderOpenPrice(), 2) + " | " + DoubleToStr(iMA(NULL, 0, 100, 0, MODE_EMA, PRICE_CLOSE, 0), 2) + " | " + DoubleToStr(iCustom(NULL, 0, "Entry_Points_Pro.ex4", "", maxcand, "", 0, 0, 500, "", 0, "", "01:00", "23:00", "", 1, 90, 3, 0), 2) + " | " + Buy + " | " + IntegerToString(t_BS) + " | " + tst + " | " + Buy_ + " | " + Sell_ + " | " + TimeToStr(tim4,TIME_MINUTES) + " | " + IntegerToString(floor((TimeCurrent()-tim4)/(Period()*60))) + " | " + t_Wt2 + " | " + t_Wt3 + " | " + tst2 + " | " + (floor((TimeCurrent() - tim4) / (Period() * 60)) > 7 && t_Wt2) + " | " + IntegerToString(TimeCurrent() % 300) + " *"; copy_file(temp, 3); } }