fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. danerius
    3. Topics
    D
    • Profile
    • Following 0
    • Followers 0
    • Topics 18
    • Posts 64
    • Best 0
    • Controversial 0
    • Groups 0

    Topics created by danerius

    • D

      Reverse Engineer the math for an Indicator
      Questions & Answers • • danerius

      2
      0
      Votes
      2
      Posts
      918
      Views

      D

      I extracted the code. Here goes:

      //+------------------------------------------------------------------+ //| Renko_v1.mq4 | //| Copyright © 2005, TrendLaboratory Ltd. | //| E-mail: igorad2004@list.ru | //| Many Thanks To Konkop | //+------------------------------------------------------------------+ #property copyright "Copyright © 2005, TrendLaboratory Ltd." #property link "E-mail: igorad2004@list.ru" #property indicator_chart_window #property indicator_buffers 2 #property indicator_color1 Aqua #property indicator_color2 Magenta //---- input parameters extern int PeriodATR=10; extern double Katr=1.00; //---- indicator buffers double UpBuffer[]; double DnBuffer[]; //+------------------------------------------------------------------+ //| Custom indicator initialization function | //+------------------------------------------------------------------+ int init() { string short_name; //---- indicator line SetIndexStyle(0,DRAW_LINE); SetIndexStyle(1,DRAW_LINE); SetIndexBuffer(0,UpBuffer); SetIndexBuffer(1,DnBuffer); IndicatorDigits(MarketInfo(Symbol(),MODE_DIGITS)); //---- name for DataWindow and indicator subwindow label short_name="Renko("+PeriodATR+","+Katr+")"; IndicatorShortName(short_name); SetIndexLabel(0,"Renko"); //---- SetIndexDrawBegin(0,PeriodATR); //---- return(0); } //+------------------------------------------------------------------+ //| Renko_v1 | //+------------------------------------------------------------------+ int start() { int i,shift; double Up,Dn,Brick,AvgRange,dK,ATR,BrickUp,BrickDn; for (shift=Bars-1-PeriodATR;shift>=0;shift--) { AvgRange=0; for (i=PeriodATR-1;i>=0;i--) { dK = 1; AvgRange+=dK*MathAbs(High[i+shift]-Low[i+shift]); } ATR = AvgRange/PeriodATR; if (shift==Bars-1-PeriodATR) { Up=High[shift]; Dn=Low[shift]; Brick=Katr*(High[shift]-Low[shift]); } if (shift<Bars-1-PeriodATR) { if (Close[shift] > Up + Brick) { if (Brick==0) BrickUp=0; else BrickUp=MathRound((Close[shift]-Up)/Brick)*Brick; Up = Up + BrickUp; Brick = Katr*ATR; Dn = Up - Brick; BrickDn = 0; } if (Close[shift] < Dn - Brick) { if (Brick==0) BrickDn=0; else BrickDn=MathRound((Dn-Close[shift])/Brick)*Brick; Dn = Dn - BrickDn; Brick = Katr*ATR; Up = Dn + Brick; BrickUp = 0; } } UpBuffer[shift]=Up; DnBuffer[shift]=Dn; } return(0); }
    • D

      Is this a thing?
      Questions & Answers • • danerius

      8
      0
      Votes
      8
      Posts
      1885
      Views

      D

      Cool. Thanks for the input. Im learning slowly 🙂

      /danerius

    • D

      Example Calculations
      Questions & Answers • • danerius

      6
      0
      Votes
      6
      Posts
      2529
      Views

      D

      Hi rafaelgrecco

      THanks. Thats an excellent start for my experimenting 🙂

      /danerius

    • D

      Random Trades
      Questions & Answers • • danerius

      3
      0
      Votes
      3
      Posts
      597
      Views

      D

      Aha...

      That sounds extremely probable 🙂

      Thanks and Regards /Bo

    • D

      Offline Chart
      Questions & Answers • • danerius

      3
      0
      Votes
      3
      Posts
      728
      Views

      D

      Thanks Miro

      I did some checking and understand the concept now. The ”offline” bit was really, really confounding 🙂

      Regards /danerius

    • D

      Tick Based Charts
      Questions & Answers • • danerius

      2
      0
      Votes
      2
      Posts
      548
      Views

      SATI Autotrading Institute

      you can use renko charts with low blocks, it is a good way to get something similar to tick charts

    • D

      Math in Adjust
      Questions & Answers • • danerius

      3
      0
      Votes
      3
      Posts
      636
      Views

      D

      Hmmm... I gave it a label but no line? Theres a price shown in MT4 🙂

      0_1531941763416_Skärmavbild 2018-07-18 kl. 21.21.09.png 0_1531941771505_Skärmavbild 2018-07-18 kl. 21.21.02.png

    • D

      Found an Indicator just like my High/Low idea
      Questions & Answers • • danerius

      3
      0
      Votes
      3
      Posts
      876
      Views

      D

      Certainly

      Found it in this forum post if youd like to read more. Its a link in post number seven ”price speed and acceleration.mq4”

      Weirdly... The issues Ive been having with MT4 recently also applies to this indicator. When I reinstalled MT4 - it just stopped working. Let me know if you can get it to work!

      /danerius

      https://www.forexfactory.com/showthread.php?t=310606

    • D

      Weird Windows
      Questions & Answers • • danerius

      3
      0
      Votes
      3
      Posts
      635
      Views

      D

      I gave up trying to fix it and just reinstalled MT4. Issues solved

      /danerius

    • D

      More math to Custom Indicator
      Questions & Answers • • danerius

      4
      0
      Votes
      4
      Posts
      1566
      Views

      D

      Thanks for the input Miro

      Checking this asap 🙂 /danerius

    • D

      A bunch of Moving Averages?
      Questions & Answers • • danerius

      8
      0
      Votes
      8
      Posts
      2362
      Views

      fxDreema

      Ahaaa, I was also feeling that this window (Project Options) is not very intuitive. I guess I need to redesign it again

    • D

      Daisy-Chaining Indicators
      Questions & Answers • • danerius

      15
      0
      Votes
      15
      Posts
      3224
      Views

      D

      Hi

      I really did think that I could make an Indicator in fxdreema 😄

      Anyways... I did try and modify the RSI/200MA Expert. No success.

      /danerius

      0_1530742159867_TestX1 2.01.ex4

    • D

      Help with code? Miro?
      Questions & Answers • • danerius

      6
      0
      Votes
      6
      Posts
      1899
      Views

      D

      Hi

      A little update...

      For some reason it worked fine on the second try without me modding anything. Not sure why. Might be that I adjusted the parameters in a different order. Or just Metatrader acting up

      Best regards /Bo

    • D

      Baby Steps
      Questions & Answers • • danerius

      21
      0
      Votes
      21
      Posts
      4741
      Views

      M

      0_1527234024828_miro1360_test_1.1.mq4

      I am not sure what happened but this should be result 😄 ... red is SMA

      0_1527234027129_3530583f-e53d-4a65-922e-acf900c55ee8-image.png

    • D

      Example MA with different settings stops working
      Questions & Answers • • danerius

      3
      0
      Votes
      3
      Posts
      791
      Views

      D

      Hi and thanks for your reply

      How would I go about posting a logic block?

      Also. I tried different setups and double checked with MetaTrader. It was one particular setting that was very off. Whereas most of time it was okay

      /Regards

    • D

      Doodling in Excel
      Questions & Answers • • danerius

      3
      0
      Votes
      3
      Posts
      741
      Views

      D

      Ohh... I see. Thanks for the heads up 🙂

    • D

      Getting started
      Questions & Answers • • danerius

      8
      0
      Votes
      8
      Posts
      2689
      Views

      M

      any from Draw blocks ...

    • D

      Blue Pin...!
      Questions & Answers • • danerius

      3
      0
      Votes
      3
      Posts
      851
      Views

      D

      @roar said in Blue Pin...!:

      It prevents the window from closing - normally it closes when you click update

      Aha. Thanks so much /Bo

    • 1 / 1