Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to code SMA(SMA(NQ 03-25(15 Minutes),14),14)

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

    How to code SMA(SMA(NQ 03-25(15 Minutes),14),14)

    Hello
    I m on NQ 03-25, TF : 15 minutes and i would like plot a SMA(SMA(NQ 03-25(15 Minutes),14),14).
    Should I do a first SMA and then an SMA of the first SMA (if yes how to do it) or can I do this in one go and how?
    Thanks for your help​

    #2
    Hello bicou,

    Thank you for your post.

    You could do so as below:

    Code:
    //at the class level
    private SMA SMA1;
    private SMA SMA2;
    
    //in State.DataLoaded;
    SMA1 = SMA(14);
    SMA2 = SMA(SMA1, 14);
    Please let us know if you have any further questions.

    Comment


      #3
      Thank you, it's perfect

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      557 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      324 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      101 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      545 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      547 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X