Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Custom strategy adding a secondary Market Data source

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

    #16
    JUST A FOLLOW-UP. Things are working great; although had to spend some time on my Order Status Callback handling,
    and also "hand-shakes" between Order Submission and callback OrderStates to clean everything up.

    I did have an issue before I realized that the OnOrderUpdate appears to execute on the "Dispatch" or "GUI" thread,
    so I was getting some queueing deadlocks; once I realized that, now the multi-threading works great !!

    I handle dozens to hundreds of "positions" each of which represent an Entry and a matching Exit volume; which I can then use to
    do a LIFO accounting; keeping track of every position's Entry and Exit pricing (like MetaTrader Forex does with "deals")
    so that I can know how much Partial Profit I've taken during a wider "trading frame"; where my open Losses are countered
    by my closed Profits during the entire process.

    I call this "micro incremental scalping" and I need this synthetic LIFO accounting in the Order Manager to keep track of
    progress. So it's really the concept of a "Meta Trade" which consists of many individual brokerage trade positions; which
    eventually becomes "flat", and that process could take half an hour; but is usually much shorter than that.

    AGAIN, NinjaTrader 8 is just Great Engineering; and I've been on a learning curve for just coming up to 1 year now...

    hyperscalper

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by NullPointStrategies, Yesterday, 05:17 AM
    0 responses
    79 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    147 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    79 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    52 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    58 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X