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 NullPointStrategies, Today, 05:17 AM
    0 responses
    50 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    126 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    69 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    42 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    46 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X