Bug Alert Bitte helfen
Ergebnis 1 bis 6 von 6

Thema: Bug Alert Bitte helfen

  1. #1
    1 Anhang (e) Hallo Leute.

    Ich arbeite den ganzen Tag daran, kann aber nicht finden, warum ich ständig Alarm bekomme und auch beides

    Ich kann wirklich nicht finden, was die f ... los ist, weil es zwei hauptsächliche unterschiedliche if-Bedingungen gibt, aber der Code löst beide aus ...
    Jede Hilfe wird großartige Jungs sein !!

    Vielen Dank

    Eingefügter Code externer String symbol1 = EURUSDm; externer String symbol2 = EURAUDm; externer String symbol3 = EURJPYm; externer String symbol4 = EURGBPm; externer String symbol5 = GBPUSDm; int LastAlert = 3;/ ------------------------------------------- ------------------- int start () {if ((iVolume (Symbol1, mTF, 1) lt; (iVolume (Symbol1, mTF, iLowest (Symbol1, mTF , MODE_VOLUME, 4, 2)))) (iClose (Symbol1, mTF, 1) gt; iOpen (Symbol1, mTF, 1))) {mPair1Bear = 1; symbol11Bear = symbol1;} {if ((iVolume (symbol2, mTF, 1) lt; (iVolume (symbol2, mTF, iLowest (symbol2, mTF, MODE_VOLUME, 4, 2)))) (iClose (symbol2, mTF, 1) gt; iOpen (Symbol2, mTF, 1))) {mPair2Bear = 1; symbol22Bear = symbol2;} if ((iVolume (symbol3, mTF, 1) lt; (iVolume (symbol3, mTF, iLowest (symbol3, mTF, MODE_VOLUME, 4, 2))) (iClose (symbol3, mTF, 1) gt iOpen (Symbol3, mTF, 1))) {mPair3Bear = 1; symbol33Bear = symbol3;} if ((iVolume (symbol4, mTF, 1) lt; (iVolume (symbol4, mTF, iLowest (symbol4, mTF, MODE_VOLUME, 4, 2))) (iClose (symbol4, mTF, 1) gt iOpen (Symbol4, mTF, 1))) {mPair4Bear = 1; symbol44Bear = symbol4;} if ((iVolume (symbol5, mTF, 1) lt; (iVolume (symbol5, mTF, iLowest (symbol5, mTF, MODE_VOLUME, 4, 2))) (iClose (symbol5, mTF, 1) gt iOpen (Symbol5, mTF, 1))) {mPair5Bear = 1; symbol55Bear = symbol5;} {if ((mPair1Bear mPair2Bear mPair3Bear mPair4Bear mPair5Bear) gt; = 2) {if (LastAlert! = 1) {LastAlert = 1; mStoredMinVolumeTimeBear = iTime (NULL, mTF, 1); DrawLine (Rot, mStoredMinVolumeTimeBear); Warnung (Symbol () Periode () M LowVoluem Kerze bärisch auf Paaren = Symbol22Bear Symbol33Bear Symbol44Bear Symbol55Bear); }}}} if ((iVolume (Symbol1, mTF, 1) lt; (iVolume (Symbol1, mTF, iLowest (Symbol1, mTF, MODE_VOLUME, 4, 2)))) (iClose (Symbol1, mTF, 1) lt; iOpen (Symbol1, mTF, 1))) {mPair1Bull = 1; symbol1Bull = symbol1;} {if ((iVolume (symbol2, mTF, 1) lt; (iVolume (symbol2, mTF, iLowest (symbol2, mTF, MODE_VOLUME, 4, 2)))) (iClose (symbol2, mTF, 1) lt; iOpen (Symbol2, mTF, 1))) {mPair2Bull = 1; symbol22Bull = symbol2;} if ((iVolume (symbol3, mTF, 1) lt; (iVolume (symbol3, mTF, iLowest (symbol3, mTF, MODE_VOLUME, 4, 2))) (iClose (symbol3, mTF, 1) lt iOpen (Symbol3, mTF, 1))) {mPair3Bull = 1; symbol33Bull = symbol3;} if ((iVolume (symbol4, mTF, 1) lt; (iVolume (symbol4, mTF, iLowest (symbol4, mTF, MODE_VOLUME, 4, 2))) (iClose (symbol4, mTF, 1) lt iOpen (Symbol4, mTF, 1))) {mPair4Bull = 1; symbol44Bull = symbol4;} if ((iVolume (symbol5, mTF, 1) lt; (iVolume (symbol5, mTF, iLowest (symbol5, mTF, MODE_VOLUME, 4, 2))) (iClose (symbol5, mTF, 1) lt iOpen (Symbol5, mTF, 1))) {mPair5Bull = 1; symbol55Bull = symbol5;} {if ((mPair1Bull mPair2Bull mPair3Bull mPair4Bull mPair5Bull) gt; = 2) {if (LastAlert! = 2) {LastAlert = 2;mStoredMinVolumeTimeBull = iTime (NULL, mTF, 1); DrawLine (Lime, mStoredMinVolumeTimeBull); Warnung (Symbol () Periode () M LowVoluem Kerze bullish bei Paaren = Symbol22Bull Symbol33Bull Symbol44Bull Symbol55Bull); }}}} return (0); }

  2. #2
    Vielleicht hilft es, den Code besser zu formatieren, um den Ablauf und die Struktur des Programms besser verfolgen zu können. Es wird auch andere dazu veranlassen, Ihnen zu helfen, da sie den Code viel einfacher machen können.
    https://en.wikipedia.org/wiki/Indent_style
    Zitat Zitat von ;
    Die meisten Programmiersprachen benötigen keine Einrückung, wenn sie als verwendet wird
    https://en.wikipedia.org/wiki/Secondary_notation. Vielmehr wollen Programmierer die Struktur ihrer Programme besser den Lesern vermitteln. Insbesondere wird die Einrückung verwendet, um die Beziehung zwischen darzustellen
    https://en.wikipedia.org/wiki/Control_flowKonstrukte wie Bedingungen oder Schleifen und Code innerhalb und außerhalb von ihnen enthalten.
    Zitat Zitat von ;
    Die meisten Programmiersprachen benötigen keine Einrückung, wenn sie als verwendet wird
    https://en.wikipedia.org/wiki/Secondary_notation. Vielmehr wollen Programmierer die Struktur ihrer Programme besser den Lesern vermitteln. Insbesondere wird die Einrückung verwendet, um die Beziehung zwischen darzustellen
    https://en.wikipedia.org/wiki/Control_flowKonstrukte wie Bedingungen oder Schleifen und Code innerhalb und außerhalb von ihnen enthalten.

  3. #3
    2 Anhang (e) Ich füge ganzen Code mit Informationen dazu bei, was jede Zeile macht. Nochmals vielen Dank für jede Hilfe. Weil ich nicht verloren bin. Kann nicht finden, warum es nicht funktioniert

    https://www.tradingintuitive.com/att...0343833526.mq4

  4. #4
    Sie könnten feststellen, dass Ihre if -Anweisungen vor jedem neuen Test einer Bedingung zurückgesetzt werden müssen. So wie Ihr Code derzeit ist, werden alte Werte beibehalten und somit in neue Warnmeldungen mit falschen Warnmeldungen gebracht. vorschlagen Sie hinzufügen: mPair1Bear = 0; (plus eine simlar-Anweisung für jede Variable) am Anfang der Startroutine. Prost Fred

  5. #5

    Zitat Zitat von ;
    Sie könnten feststellen, dass Ihre if -Anweisungen vor jedem neuen Test einer Bedingung zurückgesetzt werden müssen. So wie Ihr Code derzeit ist, werden alte Werte beibehalten und somit in neue Warnmeldungen mit falschen Warnmeldungen gebracht. schlagen Sie vor, hinzufügen: (plus eine simlar-Anweisung für jede Variable) am Anfang der Startroutine. Prost Fred
    etwas wie das? Eingefügter Code int start () {mPair1Bear = 0; mPair2Bear = 0; mPair3Bear = 0; mPair4Bear = 0; mPair5Bear = 0; if ((iVolume (Symbol1, mTF, 1) lt; (iVolume (Symbol1, mTF, iLowest (Symbol1, mTF, MODE_VOLUME, 4, 2)))) mTF, 1))) {mPair1Bear = 1; symbol11Bear = symbol1;} {if ((iVolume (symbol2, mTF, 1) lt; (iVolume (symbol2, mTF, iLowest (symbol2, mTF, MODE_VOLUME, 4, 2)))) (iClose (symbol2, mTF, 1) gt; iOpen (Symbol2, mTF, 1))) {mPair2Bear = 1; symbol22Bear = symbol2;} if ((iVolume (symbol3, mTF, 1) lt; (iVolume (symbol3, mTF, iLowest (symbol3, mTF, MODE_VOLUME, 4, 2))) (iClose (symbol3, mTF, 1) gt iOpen (Symbol3, mTF, 1))) {mPair3Bear = 1; symbol33Bear = symbol3;} if ((iVolume (symbol4, mTF, 1) lt; (iVolume (symbol4, mTF, iLowest (symbol4, mTF, MODE_VOLUME, 4, 2))) (iClose (symbol4, mTF, 1) gt iOpen (Symbol4, mTF, 1))) {mPair4Bear = 1; symbol44Bear = symbol4;} if ((iVolume (symbol5, mTF, 1) lt; (iVolume (symbol5, mTF, iLowest (symbol5, mTF, MODE_VOLUME, 4, 2))) (iClose (symbol5, mTF, 1) gt iOpen (Symbol5, mTF, 1))) {mPair5Bear = 1; symbol55Bear = symbol5;} {if ((mPair1Bear mPair2Bear mPair3Bear mPair4Bear mPair5Bear) gt; = 2)

  6. #6
    Ja, aber vergessen Sie nicht, alle Variablen zu verwenden, einschließlich der mPairxxxBulls

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