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 NullPointStrategies, Yesterday, 05:17 AM
      0 responses
      64 views
      0 likes
      Last Post NullPointStrategies  
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      139 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      75 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      45 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      50 views
      0 likes
      Last Post TheRealMorford  
      Working...
      X