Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Advanced Order Handling with Market Orders

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

    #16
    I discovered the problem. It was my lack of understanding of how an order object is processed during high-volume environments.
    The error was mine in that the logic was wrong due to my ignorance.

    My script was working in backtesting and pretty much any other time than 9:30 am at the open. Due to increased volume at the open, the logic used, and the script being set to calculate OnPriceChange, the increased volume was causing my logic to process faster than NT could acknowledge that a variable has been assigned a new value that was needed to set my exit levels.

    The script has 3 separate steps that need to be completed in order, and each of them must be complete before the logic progresses to the next step.
    At the open, the price is changing so quickly that based on how the script was written the 2nd and 3rd steps were occurring almost simultaneously before a value could be assigned and then referenced to set the exits.

    I separated the 2nd and 3rd step with an additional 1 second and the script is working beautifully.


    Thank you for your help!

    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
    135 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
    69 views
    0 likes
    Last Post PaulMohn  
    Working...
    X