Help me om deze ???horizontale lijngeluidswaarschuwing??? voor Metatrader 5 . te hercoderen
Results 1 to 5 of 5

Thread: Help me om deze ???horizontale lijngeluidswaarschuwing??? voor Metatrader 5 . te hercoderen

  1. #1
    4 Bijlage(n) Er zijn enkele horizontale lijngeluidswaarschuwingen die ik in Metatrader 4 heb gebruikt. Wie kan mij helpen om ze te hercoderen voor Metatrader 5???
    Of zijn er betere interieurs zoals deze?
    bij voorbaat bedankt!!!!

    https://www.aforexa.com/attachments/...6962368537.mq4

    https://www.aforexa.com/attachments/...8826065680.mq4

    https://www.aforexa.com/attachments/...0888003856.mq4

    https://www.aforexa.com/attachments/...1715915945.mq4

  2. #2
    Ik heb het geprobeerd, het werkt. Maar ik kan de lijn niet naar een ander prijsniveau slepen. Ik dubbelklikte op de regel, deze is niet geselecteerd.

  3. #3
    Eerste: Code ingevoegd/iHLine_Alert.mq5/#property indior_chart_window invoerreeks LineName=MyLine1; invoerkleur LineColor=AliceBlue; invoer int LineStyle=STYLE_SOLID; invoer int AlertPipRange=5; invoertekenreeks AlertWav=alert.wav; MqlTik vinkje; dubbel bijvoeglijk naamwoord = 1; int OnInit() { SymbolInfoTick(_Symbol, vink); ObjectCreate(0, LineName, OBJ_HLINE, 0, 0, tick.bid); ObjectSetInteger (0, LineName, OBJPROP_STYLE, LineStyle); ObjectSetInteger (0, LineName, OBJPROP_COLOR, LineColor); if (_Cijfers == 5 || _Cijfers == 3) adj = 10; retourneer 0; } int OnCalculate(const int rates_total, const int prev_calculated, const int begin, const dubbele prijs#91;#93 { SymbolInfoTick(_Symbol, tick); dubbele val = ObjectGetDouble (0, LineName, OBJPROP_PRICE); if (tick.bid-AlertPipRange*_Point*adj lt;= val tick.bid AlertPipRange*_Point*adj gt;= val) PlaySound(AlertWav); retourneer 0; } void OnDeinit (const int reden) { ObjectDelete (0, LineName); }

  4. #4
    Alleen de eerste is genoeg voor mij... Heel erg bedankt... Laat me het proberen.

  5. #5
    Sorry daarvoor! Probeer het vervolgens (vervang gewoon de code): Code ingevoegd/iHLine_Alert.mq5 door astro/#property indior_chart_window input string LineName=MyLine1; invoerkleur LineColor=AliceBlue; invoer int LineStyle=STYLE_SOLID; invoer int AlertPipRange=1; invoertekenreeks AlertWav=alert.wav; MqlTik vinkje; dubbel bijvoeglijk naamwoord = 1; tekenreeks obj_naam; int OnInit() { obj_name = LineName GetTickCount(); SymbolInfoTick(_Symbol, vink); ObjectCreate (0, obj_name, OBJ_HLINE, 0, 0, tick.bid); ObjectSetInteger (0, obj_name, OBJPROP_STYLE, LineStyle); ObjectSetInteger (0, obj_name, OBJPROP_COLOR, LineColor); ObjectSetInteger(0, obj_name, OBJPROP_SELECTABLE, true); if (_Cijfers == 5 || _Cijfers == 3) adj = 10; retourneer 0; } int OnCalculate(const int rates_total, const int prev_calculated, const int begin, const dubbele prijs#91;#93 { SymbolInfoTick(_Symbol, tick); dubbele val = ObjectGetDouble (0, obj_name, OBJPROP_PRICE); if (tick.bid-AlertPipRange*_Point*adj lt;= val tick.bid AlertPipRange*_Point*adj gt;= val) PlaySound(AlertWav); retourneer 0; } void OnDeinit (const int reden) { ObjectDelete (0, obj_name); }

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
This website uses cookies
We use cookies to store session information to facilitate remembering your login information, to allow you to save website preferences, to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners.