Announcement

Collapse
No announcement yet.

MA that is locked to a time frame

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • MA that is locked to a time frame

    Is there a way to lock a MA to a certain time frame?

    For example I i only want to see a 200 daily MA when i change the interval of the chart to the daily time frame.

    Right now i am using the custom MA which works nice for holding to the interval and length but i only want to see certain MA on certain time frames. any help would be great.

    Thank you

  • #2
    Re: MA that is locked to a time frame

    mrdack
    You can do that by using conditional statements that check for the interval of the chart through the getInterval() function and consequently set the length of the moving average to the desired period
    You could do this using either the if…else or the switch statements as shown in the examples in the images enclosed below
    For the complete description of the functions mentioned see the linked articles in the EFS KnowledgeBase
    Alex






    Originally posted by mrdack
    Is there a way to lock a MA to a certain time frame?

    For example I i only want to see a 200 daily MA when i change the interval of the chart to the daily time frame.

    Right now i am using the custom MA which works nice for holding to the interval and length but i only want to see certain MA on certain time frames. any help would be great.

    Thank you

    Comment


    • #3
      I am sorry but i am not sure if i am suppose to do this EFS Editor or Formula Wizard? I am a big newb when it comes to programming. Do you know if there is a code i could download or do i have to customize each MA with its interval in the code its self.

      Thank you

      Comment


      • #4
        mrdack
        You would need to do this using the EFS Editor as the Formula Wizard does not have the required functionality
        Alex


        Originally posted by mrdack
        I am sorry but i am not sure if i am suppose to do this EFS Editor or Formula Wizard? I am a big newb when it comes to programming. Do you know if there is a code i could download or do i have to customize each MA with its interval in the code its self.

        Thank you

        Comment

        Working...
        X