fxDreema

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

    Implementing an indicator in a formula

    Questions & Answers
    ma angle
    2
    5
    151
    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.
    • R
      rezazadeh_mr last edited by

      Hi
      Could you please help me with the following question?
      I need to define a formula that is using MA indicator as an input.
      I want to calculate the angle of MA line to determine the trendline type (uptrend, downtrend, or range) as below:
      Angle=Arc Tan((MA(n) - MA(n-1))/T.F)
      T.F= 5 minutes for example.
      Would you please guide me on how I can do it in blocks??

      1 Reply Last reply Reply Quote 0
      • S
        sktsec last edited by

        x axis is time. y axis is price. Is the concept of angle valid in this way?

        It is like a children growing taller day after day. How do you measure the angle?

        1 Reply Last reply Reply Quote 0
        • R
          rezazadeh_mr last edited by

          Angle could be calculated by above mentioned formula.
          Where MA(n) and MA(n-1) are two consecutive candles MA. You can calculate the angle of candle MA number n.

          S 1 Reply Last reply Reply Quote 0
          • S
            sktsec @rezazadeh_mr last edited by

            @rezazadeh_mr
            So, for 45 degree, how much has the price increased?

            1 Reply Last reply Reply Quote 0
            • R
              rezazadeh_mr last edited by

              Tan(45)=1 in fact MA value is increasing 1

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

              Online Users

              S
              T
              A
              Y
              H
              B
              K

              15
              Online

              146.7k
              Users

              22.4k
              Topics

              122.6k
              Posts

              Powered by NodeBB Forums | Contributors