Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to reduce the margin on reversal orders?

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

    How to reduce the margin on reversal orders?

    Greetings,

    Imagine I have entered long with 1 lot via EnterLong function. After some time I decided to reverse the position and called EnterShort function. However, my margin is tripled during this operation.

    Is there any way to avoid that, except for splitting the latter EnterShort into a flattening order and the reversal order (I believe this is what NT does behind the scene hence a tripled margin requirement), waiting for the flattening order to fill and then submitting the short entry?

    May be it is possible to create some kind of link between the original entry and the reversal so NT risk module knows they are linked and does not impose an additional margin requirement?

    Thank you.

    #2
    Hello alex.nt,
    Unfortunately there is nothing native to calculate the risk module. You have to further customize your code to do it.

    You can use the Exit() codes to exit your order and then place an Enter() order from the OnExecution event when the exit order is filled.

    Also you can use the Unmanaged approach to place the orders. This way you have totoal control over how the orders are being sent.
    JoydeepNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    648 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    369 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    108 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    572 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    573 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X