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

STRATEGY BUILDER ERROR PROBLEM ... ''input string not in correct format'' ?

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

    STRATEGY BUILDER ERROR PROBLEM ... ''input string not in correct format'' ?

    the following NT8 compile error pops up in the strategy builder.
    Click image for larger version

Name:	Jan30 for NT Forum1.JPG
Views:	1
Size:	18.9 KB
ID:	906994


    i'm guessing it doesn't like something on the inputs and variables page shown here.
    Click image for larger version

Name:	Jan30 for NT Forum2.JPG
Views:	1
Size:	159.4 KB
ID:	906995

    thoughts and suggestions about how to resolve the issue will be appreciated.

    #2
    Hello joemiller, and thank you for your question. Please attach a copy of your (My) Documents\NinjaTrader 8\bin\Custom\Strategies\<yourstrategyname>.cs file to an e-mail to platformsupport[at]ninjatrader[dot]com, referencing Attn:NinjaTrader_JessicaP and 1652738 in the subject line. I look forward to assisting further.
    Jessica P.NinjaTrader Customer Service

    Comment


      #3
      email sent to platform support.
      thanks jessica

      Comment


        #4
        Thank you joemiller, your reply was received and I have had a chance to review your logic. If you call EnterLong on the short side of the market, rather than returning you to a flat position, your short positions will be closed, and you will enter trades on the long side of the market. This behavior is documented here for more information.



        So, briefly,

        * If you would like to return to a flat position, use an Exit method
        * If you would like to move to the other side of the market, use an Enter method
        * Trades with Exit and Enter should not be used together on the same bar, unless they contain the same side of the market in their name. For example, EnterLong and ExitLongMIT can be used together. Please review the Internal Order Handling Rules at the bottom of the page I linked for more information.

        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 mattbsea, Today, 05:44 PM
        0 responses
        4 views
        0 likes
        Last Post mattbsea  
        Started by RideMe, 04-07-2024, 04:54 PM
        6 responses
        31 views
        0 likes
        Last Post RideMe
        by RideMe
         
        Started by tkaboris, Today, 05:13 PM
        0 responses
        2 views
        0 likes
        Last Post tkaboris  
        Started by GussJ, 03-04-2020, 03:11 PM
        16 responses
        3,282 views
        0 likes
        Last Post Leafcutter  
        Started by WHICKED, Today, 12:45 PM
        2 responses
        20 views
        0 likes
        Last Post WHICKED
        by WHICKED
         
        Working...
        X