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 realblubb, Today, 09:28 AM
      0 responses
      1 view
      0 likes
      Last Post realblubb  
      Started by AaronKoRn, Yesterday, 09:49 PM
      1 response
      18 views
      0 likes
      Last Post Rikazkhan007  
      Started by ageeholdings, Today, 07:43 AM
      0 responses
      12 views
      0 likes
      Last Post ageeholdings  
      Started by pibrew, Today, 06:37 AM
      0 responses
      4 views
      0 likes
      Last Post pibrew
      by pibrew
       
      Started by rbeckmann05, Yesterday, 06:48 PM
      1 response
      14 views
      0 likes
      Last Post bltdavid  
      Working...
      X