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

    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 argusthome, 03-08-2026, 10:06 AM
      0 responses
      95 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      50 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      31 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      36 views
      0 likes
      Last Post TheRealMorford  
      Started by Mindset, 02-28-2026, 06:16 AM
      0 responses
      72 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Working...
      X