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 rajendrasubedi2023, Today, 09:50 AM
    0 responses
    3 views
    0 likes
    Last Post rajendrasubedi2023  
    Started by ender_wiggum, Today, 09:50 AM
    0 responses
    1 view
    0 likes
    Last Post ender_wiggum  
    Started by bmartz, Today, 09:30 AM
    1 response
    7 views
    0 likes
    Last Post NinjaTrader_Erick  
    Started by geddyisodin, Today, 05:20 AM
    3 responses
    23 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by lorem, Today, 09:18 AM
    1 response
    5 views
    0 likes
    Last Post lorem
    by lorem
     
    Working...
    X