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 kinfxhk, 07-14-2026, 09:39 AM
      0 responses
      18 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Started by kinfxhk, 07-13-2026, 10:18 AM
      0 responses
      60 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Started by kinfxhk, 07-13-2026, 09:50 AM
      0 responses
      43 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Started by kinfxhk, 07-13-2026, 07:21 AM
      0 responses
      47 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Started by kinfxhk, 07-11-2026, 02:11 AM
      0 responses
      38 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Working...
      X