Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Usar logaritmos de cierres

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

    Usar logaritmos de cierres

    En vez de usar los precios de cierre estoy intentando usar los logaritmos asi Math.Log(Close) pero esto produce un fallo CS1502

    #2
    Hi xorcar,
    Close is a data series, not a variable.
    Try using Math.Log[Close[0]).
    NT-Roland

    Comment


      #3


      I want the series of the logarithms of the closures to apply indicators with them, for example the moving average

      Comment


        #4
        Hello xorcar,

        Thanks for your post and welcome to the NinjaTrader forums!

        I would suggest storing the log value of each close value into a custom series. You can then apply the custom series to any indicator as the input series to that indicator.

        Reference: https://ninjatrader.com/support/help...8/?seriest.htm

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        46 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        22 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        31 views
        1 like
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        50 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        42 views
        0 likes
        Last Post CarlTrading  
        Working...
        X