fxDreema

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

    Negative Volume Index (NVI) indicator with MQ4 and fxDreema

    Questions & Answers
    2
    2
    871
    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.
    • N
      nmbruno last edited by

      Hello,
      @fxDreema
      I am trying to code an indicator in MQL4, then use fxdreema's "custom MQL Code" to view it on the chart. Ideally, I would like to use buffers to develop a strategy based on the indicator.

      The negative volume indicator is explained (here) quite well.

      I have no experience coding MQL4, which is why I use fxdreema, however, I have experience with other coding languages. I'm not a programmer or computer scientist (I'm a mechanical engineer), but do have experience with C++, little bit of visual basic, and MATLAB coding languages.

      I took the Custom Moving Average Code in MT4 and tried to modify it in MetaEditor and implement it on the chart. However, even though I get the code to compile in MetaEditor, it doesnt show me anything on the chart. There is a bug somewhere in the code and I was wondering if someone could help me fix it? Part of the strategy requires to take the moving average (period 255 ) of the NVI indicator, but I saw in another forum post that this is not possible with fxdreema. I was hoping to add on to the NVI script to automatically compute MA(255) of the first indicator's data like that shown below.

      In the script, I deleted all different types of moving averages and only use the exponential (EMA). Attached is the .mq4

      Really the "juice" of the code is as follows:
      {... if ( volume[i]- volume[i-1] < 0)
      ExtLineBuffer[i]=ExtLineBuffer[i-1]+((close[i]- close[i-1])/ close[i]);
      else if(volume[i]- volume[i-1]>=0)
      ExtLineBuffer[i]=ExtLineBuffer[i-1];
      }
      NVI_indicator_draft1.mq4
      The NVI is similar to Accumulation/Distribution which is what is shown in the figure, below, but a little different.

      ![no image](0_1585321421446_Picture1.png image url)

      1 Reply Last reply Reply Quote 0
      • l'andorrà
        l'andorrà last edited by

        Wow! That real coding stuff! This is a task for roar or trader.philipps. Any help for this buddy, guys? 🙂

        (English) I will try to help everyone in these fxDreema forums. But if you want to learn how to use the platform in depth or more quickly, I can help you with my introductory fxDreema course in English at https://www.theandorraninvestor.eu.

        (Català) Miraré d’ajudar tothom en aquests fòrums d’fxDreema. Tanmateix, si vols aprendre a fer servir la plataforma amb més profunditat o més de pressa, t’hi puc ajudar amb el meu curs d’introducció a fxDeema en català a https://www.theandorraninvestor.eu/ca.

        (Español) Intentaré ayudar a todo el mundo en estos foros de fxDreema. Sin embargo, si quieres aprender a usar la plataforma en profundidad o más deprisa, te puedo ayudar con mi curso de introducción a fxDreema en español en https://www.theandorraninvestor.eu/es.

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

        Online Users

        B
        T
        S
        O

        14
        Online

        146.7k
        Users

        22.4k
        Topics

        122.6k
        Posts

        Powered by NodeBB Forums | Contributors