Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Old Strategy Opening and Closing Trade Instantly

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

    Old Strategy Opening and Closing Trade Instantly

    I have attached a photo of an issue I was having from the base of my old strategy I originally paid someone a lot of money to code over from think or swim to Ninja trader. I paid someone else to recode all of it a different way and I have still been testing the new one for months. I never understood how the first guy coded it since I am by no means a code language expert. The new code I have is very simple for me to understand now but I can't comprehend everything from the original code. I am unable to share the code but am curious if anyone knows if there's something I need to look at in this old code that could be causing a bunch of trades opening and closing repeatedly. These types of issues never have happened with my very different version. Is there is a simple way for me to build a failsafe so I can quickly test something with this old code?

    #2
    Hello durdcash,

    Thank you for your note.

    Typically when a script was written by another developer, we suggest reaching out to them directly for assistance. If that is not an option and you have access to the source code, you could try adding debugging prints to better understand the actions the strategy is taking, or you could even enable Trace Orders from within the script when State == State.SetDefaults to get additional information to the NinjaScript Output window while the strategy is running. For more information about using prints to debug as well as Trace Orders, please see the following links:



    You can also contact a professional NinjaScript Consultant who would be eager to create or modify this script at your request or assist you with your script. The NinjaTrader Ecosystem has affiliate contacts who provide educational as well as consulting services. Please let me know if you would like our NinjaTrader Ecosystem team to follow up with you with a list of affiliate consultants who would be happy to create this script or any others at your request or provide one on one educational services.

    Please let me know if I may be of further assistance.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    90 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    137 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    68 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    120 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    71 views
    0 likes
    Last Post PaulMohn  
    Working...
    X