Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Custom Fill Type

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

    Custom Fill Type

    Hi,

    I am creating a custon fill type.

    My cuestion is, what kind of order is the SetProfitarget? and the SetStopLoss?

    I guess there are 2 Posibilities:

    - order.OrderType == OrderType.Limit

    or

    - order.OrderType == OrderType.Stop


    Thanks in advanced





    #2
    Hello "CJS",
    Yes, you are right. SetProfitTarget generates a Limit order while the SetStopLoss generates a Stop order. You can monitor the OrderType in the OnExectuon event of strategy. Please refer to this sample code for further reference
    JoydeepNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Radano, 06-10-2021, 01:40 AM
    20 responses
    615 views
    0 likes
    Last Post NinjaTrader_BrandonH  
    Started by Mizzouman1, Today, 07:35 AM
    0 responses
    4 views
    0 likes
    Last Post Mizzouman1  
    Started by i019945nj, 12-14-2023, 06:41 AM
    6 responses
    66 views
    0 likes
    Last Post i019945nj  
    Started by aa731, Today, 02:54 AM
    1 response
    8 views
    0 likes
    Last Post NinjaTrader_BrandonH  
    Started by BarzTrading, Today, 07:25 AM
    0 responses
    3 views
    0 likes
    Last Post BarzTrading  
    Working...
    X