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