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 CarlTrading, 03-31-2026, 09:41 PM
      1 response
      127 views
      1 like
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      73 views
      1 like
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      115 views
      2 likes
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      109 views
      1 like
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      88 views
      0 likes
      Last Post CarlTrading  
      Working...
      X