Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Continuous email alerts

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

    #16
    This last part says cannot implicitly convert double to int.

    lastIndicatorValue = MyCustomIndicator()[0];

    Comment


      #17
      The example we provided was meant as an educational example. If you are attempting to copy and paste the example into your own code, you will need to have lastIndicatorValue be a double instead of an integer, e.g.

      Code:
      [FONT=Courier New]private double lastIndicatorValue = 0;[/FONT]
      I would like to recommend becoming more familiar with the On... methods documented here as well.



      Please let us know if there are any other ways we can help.
      Jessica P.NinjaTrader Customer Service

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by giulyko00, Today, 11:49 AM
      1 response
      2 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by marksingh87, 02-13-2024, 04:55 PM
      6 responses
      209 views
      1 like
      Last Post mshrstv
      by mshrstv
       
      Started by SnailHorn, Today, 08:38 AM
      2 responses
      4 views
      0 likes
      Last Post SnailHorn  
      Started by Skifree, Yesterday, 11:38 PM
      1 response
      15 views
      0 likes
      Last Post NinjaTrader_LuisH  
      Started by Mathias79, Today, 10:38 AM
      6 responses
      21 views
      0 likes
      Last Post NinjaTrader_Clayton  
      Working...
      X