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