fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search

    Custom Indicator - Value Inputs Shifted

    Bug Reports
    2
    3
    1402
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • drayzen
      drayzen last edited by drayzen

      I was pulling my hair out trying to work out why trades weren't opening until I ran this (https://fxdreema.com/shared/PnTkbrvic) in visual mode with my indicators manually added to the chart and noticed once testing completed a small section of indicator out of place. Upon inspection it's input values have been shifted.

      MT4 Testing in Visual Mode w/2x Indicators added manually
      0_1524596884125_Indicator Crossover - Value Inputs Shifted.png

      This is the indicator I'm using: https://www.forexfactory.com/showthread.php?t=204858
      Download File: McGinley Dynamic Indicator.ex4

      0_1524597304040_Custom Indicators.png

      Given the indicator was only drawn once automatically (the one with shifted values) in MT4, I'm wondering if maybe I need to have it loaded twice in fxDreema custom indicators so it can use it twice?
      Note that I'm also pulling the Periods values for the two indicators from Constants.
      I also noticed that this ran very slow during MT4 testing, even on a Ryzen 1800X, seemed like it was doing a lot of work for some reason...

      Hoping I can get this working as I'd like to add a 3rd one for trade closes... 😉
      Thanks guys! 😄

      ..the alien does not concern itself with the opinions of humans..

      1 Reply Last reply Reply Quote 0
      • fxDreema
        fxDreema last edited by

        I downloaded the .mq4 file from the first link, I added it to "My Indicators" and I got 4 input parameters, not only 3

        0_1524678986915_b5c9a4ce-e762-443f-add5-9ba94e7ee10c-image.png

        Then I checked the indicator with Trace and I think it works well. It's not the fastest indicator, but the pink line from Trace matches the indicator line exactly:

        0_1524679058784_50dbf741-948f-4ff5-8e10-190a00bd02eb-image.png

        1 Reply Last reply Reply Quote 0
        • drayzen
          drayzen last edited by drayzen

          I just tried deleting and reloading the custom indicator again, and now it's loading the same as for you.
          I don't know why it was like that, I previously tried re-adding it a few times but it was always the same.
          I notice I've also got a colour for the Output Buffer while it was blank before.

          Just ran in in MT4 and worked perfectly, matching exactly against manually inserted indicators.
          While still a bit slow, much faster than before. 😉

          btw, my optimised backtesting so far gives Periods 16 & 48 as good for EUR/USD H1 (Though 48 was the maximum).
          I'm going to add a 3rd McGinley and optimise with wider parameters...

          • I was thinking some more about the custom indicator issue and it could be that I was using Firefox before and have now switched to Chrome as recommended.

          ..the alien does not concern itself with the opinions of humans..

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post

          Online Users

          J
          E

          15
          Online

          146.8k
          Users

          22.4k
          Topics

          122.6k
          Posts

          Powered by NodeBB Forums | Contributors