hulp nodig voor gekleurd gebied tussen fibo-niveaus
Results 1 to 2 of 2

Thread: hulp nodig voor gekleurd gebied tussen fibo-niveaus

  1. #1
    2 bijlage(n) Hier weer :-)

    Ik gebruik deze ind...

    Ingevoegde code/ --------------------------------------------- --------------------- /| testFibo.mq4 |/| Copyright � 2007, MetaQuotes Software Corp. |/| http://www.metaquotes.net |/ ------------------------------------------------------------ ------------------- #property copyright Copyright � 2007, MetaQuotes Software Corp. #property link http://www.metaquotes.net #property indior_chart_window #property indior_width1 3 #property indior_style1 STYLE_SOLID #property indior_width1 3 #property indior_width2 3 #property indior_width3 3 #property indior_width4 3 #property indior_width5 3 #property indior_width6 3 #property indior_width7 3 bool b_firstTimeFlag = true;/ ------------------------------------------------------------ ------------------- /| Aangepaste interne initialisatiefunctie |/ ------------------------------------------------------------ ------------------- int init() {/---- indiors/---- return(0); }/ --------------------------------------------- -------------------- /| Aangepaste interne deinitialisatiefunctie |/ ------------------------------------------------------------ ------------------- int deinit() { return(0); }/ --------------------------------------------- -------------------- /| Aangepaste interne iteratiefunctie |/ ------------------------------------------------------------ ------------------- int start() { if(b_firstTimeFlag) { double high = High#91;3#93;; dubbel laag = Laag#91;3#93;; datumtijd tijd = Tijd#91;3#93;; bool resultaat = createFib(fibdagelijks, tijd, laag - 0,01, hoog 0,01, Zwart, waar); if(resultaat == false) Print(fout bij het maken van fib: , GetLastError()); b_firstTimeFlag = onwaar; }//end als eerste keer terugkeren(0); }/ --------------------------------------------- ---------------------------------- / ----------------------------------------- ---------------------------------------- /| functie setFib |/ ------------------------------------------------------------ ------------------- bool createFib(tekenreeksnaam, datum/tijd datum, dubbele prijs1, dubbele prijs2, kleur fibColor, bool bRayFlag) { bool ret = false; bool resultaat = onwaar; resultaat = ObjectCreate(naam, OBJ_FIBO, 0, datum, prijs1, datum, prijs2); Print(createFib: resultaat =, resultaat); if(result == true) {/stel het aantal fib-niveaus in ObjectSet (name, OBJPROP_FIBOLEVELS, 13);/stel de waarde in van elk fib-niveau ObjectSet (naam, OBJPROP_FIRSTLEVEL 1, 0.000); ObjectSet(naam, OBJPROP_LEVELWIDTH, 3); ObjectSet(naam, OBJPROP_FIRSTLEVEL 3, 0.382); ObjectSet(naam, OBJPROP_FIRSTLEVEL 4, 0.500); ObjectSet(naam, OBJPROP_FIRSTLEVEL 5, 0.618); ObjectSet(naam, OBJPROP_FIRSTLEVEL 8, 1.000); ObjectSet(naam, OBJPROP_FIRSTLEVEL 9, 1.38100);ObjectSet(naam, OBJPROP_FIRSTLEVEL 10, -0.381);/stel de beschrijving in van elk fib-niveau ObjectSetFiboDescription (naam, 1, Resistenza W); ObjectSetFiboDescription(naam, 3, lang wekelijks); ObjectSetFiboDescription(name, 4, Pivot wekelijks); ObjectSetFiboDescription(name, 5, Short wekelijks); ObjectSetFiboDescription(naam, 8, Supporto W); ObjectSetFiboDescription(naam, 9, Doel W); ObjectSetFiboDescription(naam, 10, Doel W);/stel de straalvlag in ret = ObjectSet (naam, OBJPROP_RAY, bRayFlag);/stel de kleur van de vezel in ret = ObjectSet (naam, OBJPROP_COLOR, fibColor);///////////////////////////////////////////////////////////////////////////////////////////////////////////IK HEB DIT TOEGEVOEGD, DIT IS WAT JE MOET SPELEN OM DE KLEUR IN TE STELLEN///////////////////////////////////////////////////////////////////////////////////////////////////////////////////stel de kleur van de fib-niveaus in ret = ObjectSet (naam, OBJPROP_LEVELCOLOR, fibColor);/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////debug code Print(kleurenset: , ret, : color = , fibColor); if(ret == 0) { Print(error: , GetLastError());}/end debug code }//end if the fib object is created with no errors ret = result; terugkeer (ret); }//end function setFib Het tekent een aangepaste fibo op mijn kaarten.

    Dit is de fibo verschijning op mijn kaart...



    en dit is wat ik zou willen tekenen.

    Ik zou graag een gekleurde zone willen tekenen (ik denk een rechthoek) tussen 382 en 618 niveau... is het mogelijk ??

    Alvast bedankt.

    https://www.aforexa.com/general-fore...rts-ascii.html

    https://www.aforexa.com/general-fore...l-traders.html

  2. #2
    hallo Montecristo_ heb je mq4?

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.