Unbekannte Fehler in Indi bekommen
Seite 1 von 572 12 LetzteLetzte
Ergebnis 1 bis 10 von 12

Thema: Unbekannte Fehler in Indi bekommen

  1. #1
    2 Anhang (e) Hallo,

    Ich versuche, einen Stochastik für M1 zu kodieren, der die Daten von M15 nimmt. Irgendwie klappt es nicht. Ich habe versucht herauszufinden. Jeder Senior könnte mir helfen. Danke!!

    Hier ist der M15 (IMG 1_4). Wie Sie auf der Karte sehen können, erscheint der Pfeil hier in M15. Stoch ist in OB und MACD ist unter 0.

    Hier bei M1 (IMG 2_4) ist Stoch bei OB, aber es gibt keinen Pfeil.

    Also werde ich den Indikator in M1-Diagramm setzen.

    Die Anzeige funktioniert auf diese Weise, wenn M15 Stoch bei OB ist und MACD unter 0 ist und M1 Stoch bei OB ist, wird der Pfeil auf dem Diagramm erscheinen (M1)

    Hier ist mein ganzer Code

    Eingefügter Code #Eigenschaft indikator_Grafikfenster #Eigenschaft indikator_Puffer 2 #Eigenschaft indikator_Plots 2/--- Pfeil #Eigenschaft indikator_Label1 ArrUp #Eigenschaft indikator_Label2 ArrDn/--- Eingabeparameter Enum-Preis {s0 = 0,/NIEDRIGHOCH s1 = 1/SCHLIESSENSCHLIESSEN};/------------------------------------------------ ---------------------------------------- Eingabezeichenfolge __________ 1 __________ = xxxxxxxxxxxxxxxxxxxxx; Eingabezeichenfolge __________ 2 __________ == ALERT =;/ALARMPFEIL UND BENACHRICHTIGUNGEN, Eingabezeichenfolge __________ 3 __________ = xxxxxxxxxxxxxxxxxxxxx; Eingabe bool ARROW = true;/Eingabepfeil POWN ZEIGEN __________ 4 __________ = xxxxxxxxxxxxxxxxxxxxx; Eingabezeichenfolge __________ 5 __________ == PFEILCODE =;/ARROW DETAILS Eingabezeichenfolge __________ 6 __________ = xxxxxxxxxxxxxxxxxxxxx; int int ARROWUP = 217;/PFEILCODE input int ARROWDN = 218;/PFEILCODE-Eingabefarbe ARROWUPc = clrWhite;/Pfeil nach oben Farbe der Eingabefarbe ARROWDNc = clrWhite;/Pfeil Dn Eingabestring der Farbe __________ 10 __________ = xxxxxxxxxxxxxxxxxxxxx; Eingabezeichenfolge __________ 11 __________ == M15 OB OS =;/OB OS, Eingabezeichenfolge __________ 12 __________ = xxxxxxxxxxxxxxxxxxxxx; Eingang double sto_dn_level = 20.0;/LEVEL Eingang unten double sto_up_level = 80.0;/LEVEL Eingang oben eprece sto_price = 1;/PREIS FELD/------------------ -------------------------------------------------- --------------------/--- Anzeigepuffer doppelt ArrUpBuffer # 91; # 93 ;; Doppel ArrDnBuffer # 91; # 93 ;;/---/ ------------------------------------------ ------------------------ /| Benutzerdefinierte Indikatorinitialisierungsfunktion |/ ----------------------------------------------- ------------------- int OnInit () {//--- Indikator puffers mapping IndiorBuffers (2); SetIndexBuffer (0, ArrUpBuffer); SetIndexStyle (0, DRAW_ARROW, STYLE_SOLID, 1, ARROWUPc); SetIndexArrow (0, ARROWUP); SetIndexBuffer (1, ArrDnBuffer); SetIndexStyle (1, DRAW_ARROW, STYLE_SOLID, 1, ARROWDNc); SetIndexArrow (1, ARROWDN);/--- return (INIT_SUCCEEDED); }/ ---------------------------------------------- -------------------- int OnCalculate (const int rates_total, const int prev_calculated, const datetime Zeit # 91; # 93 ;, const double open # 91; # 93 ;, const doppelt hoch # 91; # 93 ;, const doppelt niedrig # 91; # 93 ;, const doppelt geschlossen # 91; # 93 ;, const lang tick_volume # 91; # 93 ;, const lang Volumen # 91; # 93; ;, const int spread # 91; # 93;) {//--- int i, limit; limit = rates_total-prev_calculated; if (prev_calculatedgt 0) limit = limit 2; für (i = limit-2; igt; = 0; i--) {if (PFEIL iMA (_Symbol, PERIOD_M15,50,0, MODE_EMA, PRICE_CLOSE, i) gt; iMA (_Symbol, PERIOD_M15,100,0, MODE_EMA , PRICE_CLOSE, i) iMA (_Symbol, PERIOD_M15,100,0, MODE_EMA, PRICE_CLOSE, i) gt; iMA (_Symbol, PERIOD_M15,200,0, MODE_EMA, PRICE_CLOSE, i) iMACD (_Symbol, PERIOD_M15,12,26,1 , PRICE_CLOSE, MODE_MAIN, i) gt; 0.0 iStochastisch (_Symbol, PERIOD_M15,3,1,3, MODE_EMA, (int) sto_price, MODE_MAIN, i) lt; = sto_dn_leveliStochastic (_Symbol, PERIOD_M15,3,1,3, MODE_EMA, (int) sto_price, MODE_SIGNAL, i) 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, i) lt; iMA (_Symbol, PERIOD_M15,100,0, MODE_EMA, PRICE_CLOSE, i) iMA (_Symbol, PERIOD_M15 , 100,0, MODE_EMA, PRICE_CLOSE, i) lt; iMA (_Symbol, PERIOD_M15,200,0, MODE_EMA, PRICE_CLOSE, i) iMACD (_Symbol, PERIOD_M15,12,26,1, PRICE_CLOSE, MODE_MAIN, i) lt; 0,0 iStochastic (_Symbol, PERIOD_M15,3,1,3, MODE_EMA, (int) sto_price, MODE_MAIN, i) gt; = sto_up_level iStochastic (_Symbol, PERIOD_M15,3,1,3, MODE_EMA, (int) sto_price, MODE_SIGNAL, i) gt; = sto_up_level iStochastic (_Symbol, PERIOD_M1,3,1,3, MODE_EMA, (int) sto_preis, MODE_MAIN, i) gt; = sto_u p_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 ();}} return (rates_total); }/ ---------------------------------------------- -------------------- double pix_y () {return ((ChartGetDouble (0, CHART_PRICE_MAX, 0) -ChartGetDouble (0, CHART_PRICE_MIN, 0))ChartGetInteger ( 0, CHART_HEIGHT_IN_PIXELS, 0)); }/ ---------------------------------------------- -------------------- # 91; color = # 666666 # 93; # 91; font = trebuchet ms # 93; # 91;font # 93; # 91;Farbe # 93;




  2. #2
    Sie nehmen die Infos auf dem M15 mit der Verschiebung (i) des aktuellen Charts. Stattdessen sollten Sie das folgende für den M15-Teil verwenden: Eingefügte Codeverschiebung = iBarShift (_Symbol, PERIOD_M15, Zeit # 91; i # 93;

  3. #3
    Wo muss ich diesen Code eingeben?

  4. #4

    Zitat Zitat von ;
    Wo muss ich diesen Code eingeben?
    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 # 93; 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 ();}}

  5. #5
    Hi ... es funktioniert .. Vielen Dank für die Anleitung ... habe über iBarShift gelesen, brauche aber Anleitung, wie man es benutzt ... danke

  6. #6
    Hallo Ferru, ist es möglich, Wege zu finden, um eine minimale Lücke Abstand zwischen 1 MA und einem anderen MA zu haben?

  7. #7

    Zitat Zitat 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?
    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 erlaubt

  8. #8

  9. #9
    Zitat Zitat von ;
    Habe ich, danke!

  10. #10
    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 ;; }

Berechtigungen

  • Neue Themen erstellen: Nein
  • Themen beantworten: Nein
  • Anhänge hochladen: Nein
  • Beiträge bearbeiten: Nein
  •  
Die tradingintuitive Webseite verwendet Cookies
Wir nutzen Cookies, um Ihnen das Webseitenerlebnis bestmöglich anbieten zu können. Durch weitere Nutzung der Webseite erlauben Sie die Nutzung von Cookies. Für weitere Details und wie Sie ggf. diese Einstellungen verändern können, lesen Sie bitte unsere Datenschutzbestimmung. Lesen Sie mehr