Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Ma Envelop indicator

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

    Ma Envelop indicator

    In the indicator sharing section , there is a Ma Envelop indicator . By Rollins.
    I'd like to edit it so that the upper band is a moving average of the high and the lower band is a moving average of the Low . I would need to be shown
    how and where to make the changes . Thanks in advance for anyone willing
    to do that .

    #2
    Hi T2020,

    Thanks for your post.

    1. You need to declare two variables for the MA's in the Variables() section, I used 'ma1' and 'ma2' here.

    2. Next in the Initialize() you start those with your High and Low values as Input to the SMA's.

    3. In the OnBarUpdate() you then change the Upper and Lowerband Sets to your new two 'ma1' and 'ma2' variables that store the SMA of the High and Low.

    I attached you the changed code, if you go through those steps above you can follow the changes I did.
    Attached Files
    BertrandNinjaTrader Customer Service

    Comment


      #3
      Thank you very much for taking the time on this Bertrand . I will go over your
      steps . Thanks again !

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by r68cervera, Today, 05:29 AM
      0 responses
      3 views
      0 likes
      Last Post r68cervera  
      Started by geddyisodin, Today, 05:20 AM
      0 responses
      6 views
      0 likes
      Last Post geddyisodin  
      Started by JonesJoker, 04-22-2024, 12:23 PM
      6 responses
      35 views
      0 likes
      Last Post JonesJoker  
      Started by GussJ, 03-04-2020, 03:11 PM
      12 responses
      3,241 views
      0 likes
      Last Post Leafcutter  
      Started by AveryFlynn, Today, 04:57 AM
      0 responses
      7 views
      0 likes
      Last Post AveryFlynn  
      Working...
      X