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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    67 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    36 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    60 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    62 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    53 views
    0 likes
    Last Post CarlTrading  
    Working...
    X