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 Mindset, 04-21-2026, 06:46 AM
        0 responses
        101 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        144 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        71 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by cmoran13, 04-16-2026, 01:02 PM
        0 responses
        125 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        79 views
        0 likes
        Last Post PaulMohn  
        Working...
        X