Habe das gemacht. Wenn ich nur für die Benachrichtigung ”true” festlege, erhalte ich die Warnung, aber wenn ich ”true” für die Benachrichtigung und ”true” für das Popup einstelle, erhalte ich die Benachrichtigung nicht
Habe das gemacht. Wenn ich nur für die Benachrichtigung ”true” festlege, erhalte ich die Warnung, aber wenn ich ”true” für die Benachrichtigung und ”true” für das Popup einstelle, erhalte ich die Benachrichtigung nicht
Kein Fehler. Aber wenn ich auf dem tatsächlichen Diagramm teste, wird es keine Benachrichtigung geben, wenn ich für beide wahr bin. Wenn ich nur für eines davon true, werde ich die Benachrichtigung erhalten
Hallo Sir FerruFX, ich versuche Alarm zu geben. aber nur entweder Benachrichtigung oder das Popup funktioniert gleichzeitig. Es kann nicht gleichzeitig funktionieren Eingegebener Code-Eingang bool NOTIFICATION = false;/HANDHÖRER-BENACHRICHTIGUNG input bool POPUP = false;/POPUP-BENACHRICHTIGUNG Eingelegter Code datetime TIME = 0; Eingefügter Code if (iMA (_Symbol, PERIOD_M15,50,0, MODE_EMA, PRICE_CLOSE, iBarShift (_Symbol, PERIOD_M15, Zeit # 91; i # 93) gt; iMA (_Symbol, PERIOD_M15,100,0, MODE_EMA, PRICE_CLOSE, iBarShift (_Symbol, PERIOD_M15, Zeit # 91; i # 93
) iMA (_Symbol, PERIOD_M15,100,0, MODE_EMA, PRICE_CLOSE, iBarShift (_Symbol, PERIOD_M15, Zeit # 91; i # 93
) gt; iMA ( _Symbol, PERIOD_M15,200,0, MODE_EMA, PRICE_CLOSE, iBarShift (_Symbol, PERIOD_M15, Zeit # 91; i # 93
) iMACD (_Symbol, PERIOD_M15,12,26,1, PRICE_CLOSE, MODE_MAIN, iBarShift (_Symbol, PERIOD_M15, Zeit # 91; i # 93
) gt; 0.0 iStochastic (_Symbol, PERIOD_M15,3,1,3, MODE_EMA, (int) sto_price, MODE_MAIN, iBarShift (_Symbol, PERIOD_M15, Zeit # 91; i # 93
) lt; sto_dn_levelM15 iStochastic (_Symbol, PERIOD_M15,3,1,3, MODE_EMA, (int) sto_price, MODE_SIGNAL, iBarShift (_Symbol, PERIOD_M15, Zeit # 91; i # 93
) lt; sto_dn_levelM15 iStochastic (_Symbol, PERIOD_M1,3 , 1,3, MODE_EMA, (int) sto_preis, MODE_MAIN, i) lt; sto_dn_levelM1 iStochastisch (_Symbol, PERIOD_M1,3,1,3, MODE_EMA, (int) sto_pric e, MODE_SIGNAL, i) lt; sto_dn_levelM1) {if (BENACHRICHTIGUNG) {SendNotifiion (Symbol () BUY DATUM: TimeToStr (TimeLocal (), TIME_DATE) ZEIT: TimeToStr (TimeLocal () , TIME_MINUTES)); } if (POPUP) {Alert (Symbol () SELL DATUM: TimeToStr (TimeLocal (), TIME_DATE) ZEIT: TimeToStr (TimeLocal (), TIME_MINUTES)); } TIME = Zeit # 91; 0 # 93 ;; }
Ja, sicher. Überprüfen Sie einfach den Abstand zwischen den beiden MAs und validieren Sie Ihr Signal entsprechend. if (ma1 - ma2 gt; = GAP * _Punkt) ... BUY erlaubt if (ma2 - ma1 gt; = GAP * _Point) ... SELL erlaubtZitat von ;
Hallo Ferru, ist es möglich, Wege zu finden, um eine minimale Lücke Abstand zwischen 1 MA und einem anderen MA zu haben?
Hi ... es funktioniert .. Vielen Dank für die Anleitung ... habe über iBarShift gelesen, brauche aber Anleitung, wie man es benutzt ... danke
Denken Sie daran, dass Ihr Code korrekt funktioniert, wenn Sie davon ausgehen, dass das aktuelle Diagramm M1 ist. Eingefügter Code int shift = 0; für (i = limit-2; igt; = 0; i--) {shift = iBarShift (_Symbol, PERIOD_M15, Zeit # 91; i # 93Zitat von ;
; if (PFEIL iMA (_Symbol, PERIOD_M15,50,0, MODE_EMA, PRICE_CLOSE, shift) gt; iMA (_Symbol, PERIOD_M15,100,0, MODE_EMA, PRICE_CLOSE, shift) iMA (_Symbol, PERIOD_M15,100,0, MODE_EMA, PRICE_CLOSE , shift) gt; iMA (_Symbol, PERIOD_M15,200,0, MODE_EMA, PRICE_CLOSE, shift) iMACD (_Symbol, PERIOD_M15,12,26,1, PRICE_CLOSE, MODE_MAIN, shift) gt; 0.0 iStochastic (_Symbol, PERIOD_M15,3, 1,3, MODE_EMA, (int) sto_price, MODE_MAIN, shift) lt; = sto_dn_level iStochastic (_Symbol, PERIOD_M15,3,1,3, MODE_EMA, (int) sto_price, MODE_SIGNAL, shift) lt; = sto_dn_level iStochastic (_Symbol, PERIOD_M1,3,1,3, MODE_EMA, (int) sto_price, MODE_MAIN, i) lt; = sto_dn_level iStochastic (_Symbol, PERIOD_M1,3,1,3, MODE_EMA, (int) sto_price, MODE_SIGNAL, i) lt; = sto_dn_level ) {ArrUpBuffer # 91; i # 93; = iLow (_Symbol, PERIOD_M1, i) -10 * pix_y ();} if (PFEIL iMA (_Symbol, PERIOD_M15,50,0, MODE_EMA, PRICE_CLOSE, shift) lt; iMA ( _Symbol, PERIOD_M15,100,0, MODE_EMA, PRICE_CLOSE, shift) iMA (_Symbol, P ERIOD_M15,100,0, MODE_EMA, PRICE_CLOSE, shift) lt; iMA (_Symbol, PERIOD_M15,200,0, MODE_EMA, PRICE_CLOSE, shift) iMACD (_Symbol, PERIOD_M15,12,26,1, PRICE_CLOSE, MODE_MAIN, shift) lt; 0.0 iStochastic (_Symbol, PERIOD_M15,3,1,3, MODE_EMA, (int) sto_price, MODE_MAIN, shift) gt; = sto_up_level iStochastic (_Symbol, PERIOD_M15,3,1,3, MODE_EMA, (int) sto_price, MODE_SIGNAL, shift ) gt; = sto_up_level iStochastic (_Symbol, PERIOD_M1,3,1,3, MODE_EMA, (int) sto_price, MODE_MAIN, i) gt; = sto_up_level iStochastic (_Symbol, PERIOD_M1,3,1,3, MODE_EMA, (int) sto_price , MODE_SIGNAL, i) gt; = sto_up_level) {ArrDnBuffer # 91; i # 93; = iHigh (_Symbol, PERIOD_M1, i) 10 * pix_y ();}}