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

Mkt order w/ attached stop

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

    #16
    Josh,

    Were getting closer, the message I get from log:

    Error on calling 'OnBarUpdate' method for strategy 'FirstTry': Stop price must not be 0

    Comment


      #17
      That would do it. You need to ensure you are submitting at a valid stop price. Stop prices cannot be 0.
      Josh P.NinjaTrader Customer Service

      Comment


        #18
        Josh,

        I understand that would do it, and I promise that I spend a sufficient amount of time searching this site to figure out how to correct it. I'm trying not to waste your time here, however my time is valuable as well. If you cannot fix my simple problem, which is based on pre-built indicators within NT can you please put me in touch with the president of your company.

        Thanks

        Comment


          #19
          rightcoast,

          Unfortunately we do not have the bandwidth to debug your code for you. We have already helped you isolate the problem. It is up to you to address it.

          You need to find when you receive 0s and just not submit at that price. For instance, you will for sure receive 0s when there is no prior day on the chart. If it is the first day on your chart of course you will get 0s when trying to access prior day information. Now, if this is actually the case you are hitting I would have no clue. It is up to you to debug and determine what is the scenario you are hitting. Then you will need to decide how you want to proceed. These are the steps you will want to take to resolve your issue.
          Josh P.NinjaTrader Customer Service

          Comment


            #20
            Josh,

            Thanks for the straight answer, I knew it was something simple. Min. bars required= Default=20, upped it to 75 wham...done.

            Best of luck

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by samish18, Today, 01:01 PM
            1 response
            6 views
            0 likes
            Last Post NinjaTrader_LuisH  
            Started by WHICKED, Today, 12:56 PM
            1 response
            8 views
            0 likes
            Last Post NinjaTrader_Gaby  
            Started by cre8able, Today, 01:16 PM
            0 responses
            2 views
            0 likes
            Last Post cre8able  
            Started by chbruno, 04-24-2024, 04:10 PM
            2 responses
            47 views
            0 likes
            Last Post chbruno
            by chbruno
             
            Started by WHICKED, Today, 12:45 PM
            1 response
            11 views
            0 likes
            Last Post NinjaTrader_Gaby  
            Working...
            X