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 futtrader, 04-21-2024, 01:50 AM
      4 responses
      41 views
      0 likes
      Last Post futtrader  
      Started by Option Whisperer, Today, 09:55 AM
      1 response
      11 views
      0 likes
      Last Post bltdavid  
      Started by port119, Today, 02:43 PM
      0 responses
      7 views
      0 likes
      Last Post port119
      by port119
       
      Started by Philippe56140, Today, 02:35 PM
      0 responses
      7 views
      0 likes
      Last Post Philippe56140  
      Started by 00nevest, Today, 02:27 PM
      0 responses
      7 views
      0 likes
      Last Post 00nevest  
      Working...
      X