Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Xaverage on Multicharts translated to NT

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

    Xaverage on Multicharts translated to NT

    Does anyone know of an approximation (or ideally an exact match) for the Mutlicharts Xaverage in NT?

    Regards and thanks to all.


    #2
    Hi elliot5, thanks for posting. I have not heard of a conversion. You would need to get the source code of the Xaverage in Multicharts to be able to convert it to NinjaTrader.

    Comment


      #3
      Ok found the source code - just in case anyone else was looking for it.


      inputs:

      PriceValue( numericseries ),
      Len( numericsimple ) ;

      variables:
      var0( 2 / ( Len + 1 ) ) ;

      if CurrentBar = 1 then
      XAverage = PriceValue
      else
      XAverage = XAverage[1] + var0 * ( PriceValue - XAverage[1] ) ;
      Last edited by elliot5; 09-05-2022, 06:15 AM.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Mindset, 04-21-2026, 06:46 AM
      0 responses
      91 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      137 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      68 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by cmoran13, 04-16-2026, 01:02 PM
      0 responses
      121 views
      0 likes
      Last Post cmoran13  
      Started by PaulMohn, 04-10-2026, 11:11 AM
      0 responses
      72 views
      0 likes
      Last Post PaulMohn  
      Working...
      X