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 CaptainJack, 05-29-2026, 05:09 AM
      0 responses
      249 views
      0 likes
      Last Post CaptainJack  
      Started by CaptainJack, 05-29-2026, 12:02 AM
      0 responses
      161 views
      0 likes
      Last Post CaptainJack  
      Started by charlesugo_1, 05-26-2026, 05:03 PM
      0 responses
      165 views
      1 like
      Last Post charlesugo_1  
      Started by DannyP96, 05-18-2026, 02:38 PM
      1 response
      250 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 05-11-2026, 05:56 AM
      0 responses
      203 views
      0 likes
      Last Post CarlTrading  
      Working...
      X