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.
    JasonNinjaTrader Customer Service

    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 usazencort, Today, 01:16 AM
        0 responses
        1 view
        0 likes
        Last Post usazencort  
        Started by kaywai, 09-01-2023, 08:44 PM
        5 responses
        603 views
        0 likes
        Last Post NinjaTrader_Jason  
        Started by xiinteractive, 04-09-2024, 08:08 AM
        6 responses
        22 views
        0 likes
        Last Post xiinteractive  
        Started by Pattontje, Yesterday, 02:10 PM
        2 responses
        21 views
        0 likes
        Last Post Pattontje  
        Started by flybuzz, 04-21-2024, 04:07 PM
        17 responses
        230 views
        0 likes
        Last Post TradingLoss  
        Working...
        X