Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

HELP with error mesage

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

    HELP with error mesage

    In setting up trading strategy, once I finish I get an error message CS0266. Says that I cannot implicitly convert 'DOUBLE' to 'INT'. Are you missing a CAST?

    Can some help me?

    #2
    Please double click the error and you should be directed to the location of the error. You can debug from there.

    Comment


      #3
      Jason:

      Thanks so much for response. Yes, it provides me with line and column reference but I have no idea what is wrong. I simply set up variables in beginning: Here are lines of code that are referenced:

      privateint rSI_Period = 9; // Default setting for RSI_Period
      privateint rSI_Smoothing = 9; // Default setting for RSI_Smoothing
      EnterShort(DefaultQuantity, "STOP LOSS Exit");
      publicint EMA_Period
      {

      Comment


        #4
        Somewhere you are assigning a value of double type to an integer.

        Are you only using the Strategy Wizard or are you self coding this?
        RayNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by DannyP96, 05-18-2026, 02:38 PM
        1 response
        27 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 05-11-2026, 05:56 AM
        0 responses
        117 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 05-10-2026, 08:12 PM
        0 responses
        69 views
        0 likes
        Last Post CarlTrading  
        Started by Hwop38, 05-04-2026, 07:02 PM
        0 responses
        226 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Started by CaptainJack, 04-24-2026, 11:07 PM
        0 responses
        413 views
        0 likes
        Last Post CaptainJack  
        Working...
        X