fxDreema

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

    Posts made by danerius

    • RE: Help with code? Miro?

      Hello Miro

      Awesome πŸ™‚ I'll look into the math ASAP

      Best regards /danerius

      posted in Questions & Answers
      D
      danerius
    • RE: Help with code? Miro?

      Hello Miro and many thanks πŸ™‚

      I think there might be an error. Ive pre-tested this idea on XAGUSD in Excel and it behaves differently. Ive included a screendump where the values are ”200 / HighLowValue ^ 3500.

      Theses numbers are gonna vary between FX Pairs and Time Frames. But this could be a good start

      I can send you the Excel fille if it helps?

      Best regards /danerius

      0_1529962645542_XAGUSD-HLC.png

      posted in Questions & Answers
      D
      danerius
    • Help with code? Miro?

      Hi

      If someone could help me with code for this it would be great. Ive included the code that Miro helped me with earlier.

      The concept is that this indicator is going to adjust to price fluctuations and in turn control other indicators.

      The idea is to:

      1. Divide High Price by Low Price -> (HL)
      2. Have the numbers from 1 (HL) with a set of different moving averages. All adjustable -> (HLMA)
      3. Divide that by an adjustable number. Take that to an adjustable PowerTo -> XXX/((HLMA)^XXX)
      4. Plot in separate window

      If anything is unclear. Please feel free to ask

      Many, many thanks /danerius

      //---

      int i;

      for(i=barsToCalculate();i>=0;i--)
      {
      double priceHigh = iHigh(Symbol(), Period(), i);
      double priceLow = iLow(Symbol(), Period(), i);
      double lowHigh;

        if(priceHigh != 0) 
        { 
           lowHigh = priceLow / priceHigh;
           Buffer0[i] = MathPow(lowHigh, 100);
        }
        else
        {
           Buffer0[i] = 0;
        }
      

      }

      for(i=barsToCalculate2();i>=0;i--)
      {
      Buffer1[i] = iMAOnArray(Buffer0, 0, maPeriod, 0, (ENUM_MA_METHOD)maMode, i);
      }

      //--- return value of prev_calculated for next call
      return(rates_total);
      }
      //+------------------------------------------------------------------+

      posted in Questions & Answers
      D
      danerius
    • RE: Baby Steps

      Hello Miro

      Im considering adding a Simple Moving Average to the same window. Im guessing this is the code for the existing Weighted one?

      Buffer1[i] = iMAOnArray(Buffer0, 0, maPeriod, 0, (ENUM_MA_METHOD)maMode, i);

      How would I modify it for A Simple MA? Also? Im presuming that I need to change other code as well? ”plot buffer”....?

      Thanks and regards /Bo

      posted in Questions & Answers
      D
      danerius
    • RE: Baby Steps

      Yep

      But Im having fun so Im gonna keep going πŸ˜„

      /Bo

      posted in Questions & Answers
      D
      danerius
    • RE: Baby Steps

      Awesome. Thanks Miro

      I got it to work as intended.
      Not quite as I expected but thats why Im testing things πŸ™‚
      Back to the drawing board

      /Bo

      posted in Questions & Answers
      D
      danerius
    • RE: Baby Steps

      Hello Miro

      In Excel - it would look like this. =((A/B)/C)*100

      And then a Weighted Average on that sum

      Thanks πŸ™‚ /Bo

      posted in Questions & Answers
      D
      danerius
    • RE: Baby Steps

      Hello Miro

      This formula didnt go fully to plan. It only worked at the 1 Minute Time Frame. So it needs some additions. I thought Id start with making a High/Low Percentage to Close Price. So essentially High divided by Low. Then the sum of that divided by Close. And then times 100 for a percentage sum.

      What do I need to add to make a formula lie that work?

      Thanks /Bo

      int i;

      for(i=barsToCalculate();i>=0;i--)
      {
      double priceHigh = iHigh(Symbol(), Period(), i);
      double priceLow = iLow(Symbol(), Period(), i);
      double lowHigh;

        if(priceHigh != 0) 
        { 
           lowHigh = priceLow / priceHigh;
           Buffer0[i] = MathPow(lowHigh, 20);
        }
        else
        {
           Buffer0[i] = 0;
        }
      

      }

      for(i=barsToCalculate2();i>=0;i--)
      {
      Buffer1[i] = iMAOnArray(Buffer0, 0, maPeriod, 0, (ENUM_MA_METHOD)maMode, i);
      }

      posted in Questions & Answers
      D
      danerius
    • RE: Baby Steps

      Awesome Miro

      Thanks a million for this. Im hard at work on this now πŸ™‚

      Regards /Bo

      posted in Questions & Answers
      D
      danerius
    • RE: Baby Steps

      Excellent and a big thanks for the code. From what little coding I know - 9t looks really elegant πŸ™‚

      This High/Low comparison is the first block of a four part thing.

      Second part is an Weighted Average of the High/Low results. Third part is a formula for adapting the results to control other indicators. And lastly hooking that up that to the indicators and test wether its working as I intended

      Can I use the regular WMA code with your code?

      Regards /Bo

      posted in Questions & Answers
      D
      danerius
    • RE: Baby Steps

      Duuude... Thats brilliant

      How did you do that?

      /Regards

      posted in Questions & Answers
      D
      danerius
    • RE: Baby Steps

      Thanks Miro

      I understand what youre saying. But I have a slightly different end goal in mind. Im looking to produce a curve that has a high value at consolidation. And a low for the opposite. And then base an EA on that

      The Bollinger Bands are derived from a Close Price Standard Deviation and values can vary a lot. Whereas comparing High and Low Prices seems to be a bit more stable and better for what I had in mind

      Regards /Bo

      posted in Questions & Answers
      D
      danerius
    • RE: Baby Steps

      Hi. Awesome. Thanks so much πŸ™‚

      This is the first part of a strategy/indicator. Theres is one more formula but I thought Id start with this

      The idea is to indicate when there is market is in consolidation. I figured the proportion in Low/High Price would be a good way

      How do I get this in a separate indicator window?

      Regards /Bo

      posted in Questions & Answers
      D
      danerius
    • Baby Steps

      Hi

      So Ive come to realise I need to baby step my way in to fxdreeam and ask for help every step of the way. Ive tested a strategy in Open Office and would like to make an EA

      First of all. It divides Low price by the High Price and then takes that to the power of 20

      How would I go about doing that?

      Thanks and regards /Bo

      posted in Questions & Answers
      D
      danerius
    • RE: Example MA with different settings stops working

      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

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

      Hi guys and Happy Easter

      Ive done some various testing recently with the Buy-Sell-Buy-Sell Strategy and it works fine as is. As soon as change the settings it starts behaving erratically

      Anyone else experiencing this? Any tips or solutions?

      Thanks

      posted in Questions & Answers
      D
      danerius
    • RE: Doodling in Excel

      Ohh... I see. Thanks for the heads up πŸ™‚

      posted in Questions & Answers
      D
      danerius
    • Doodling in Excel

      0_1516779812262_Buy Sell Close.png

      Hi. Ive been doodling with market data in Excel and came up with this. The idea is to produce a filter for market noise and have an indicator line working from that. Ive omitted the Close Price cause it made the graph a bit hard to read. But it roughly follows the two black lines.

      So sell is when the orange line crosses below the lower black line. Buy is when it crosses over the upper line. Close is when Buy/Sell crosses the black line again.

      What do you guys think? Could this work as an EA?

      /Thanks + Regards

      posted in Questions & Answers
      D
      danerius
    • RE: Getting started

      @miro1360

      Thanks

      Wich one of the Blocks is that?

      /Regards

      posted in Questions & Answers
      D
      danerius
    • RE: Getting started

      @fxdreema

      Thanks Radoslav

      I managed to run the EA now with only one error message. As opposed to 15 errors + 5 warnings πŸ˜„

      Wich one of the blocks should i use to get the results in a separate window? Like the RSI in the example below?

      Regards /Bo

      0_1514996334559_separate window.png

      posted in Questions & Answers
      D
      danerius
    • 1
    • 2
    • 3
    • 4
    • 3 / 4