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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    81 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    42 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    64 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    66 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    54 views
    0 likes
    Last Post CarlTrading  
    Working...
    X