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 Haiasi, 04-25-2024, 06:53 PM
        2 responses
        16 views
        0 likes
        Last Post Massinisa  
        Started by Creamers, Today, 05:32 AM
        0 responses
        4 views
        0 likes
        Last Post Creamers  
        Started by Segwin, 05-07-2018, 02:15 PM
        12 responses
        1,785 views
        0 likes
        Last Post Leafcutter  
        Started by poplagelu, Today, 05:00 AM
        0 responses
        3 views
        0 likes
        Last Post poplagelu  
        Started by fx.practic, 10-15-2013, 12:53 AM
        5 responses
        5,407 views
        0 likes
        Last Post Bidder
        by Bidder
         
        Working...
        X