Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Conditon Builder Set order execution

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

    Conditon Builder Set order execution

    I have a strategy that has a profit target. In the condition builder, I have the conditions of Set 1 and they execute fine, but when I hit the profit target I want condition builder set 2 to execute, but I cannot figure a way to keep Conditon set 1 from executing orders. I set the parameter for Conditon Builder set 2 to Market Position=flat, but that does not keep set 1 from executing since the set 1 continues to execute after the profit target since the profit target gets me flat.

    I am thinking that Conditon Builder cannot handle this scenario and I guess I have to get a programmer to program the code to go to Set 2 after the profit target is reached and not execute Set 1 until the profit target on Set 2 is reached and visa versa. Is there some way that Condiiton Builder can accomplish this?

    Thanks in advance.

    #2
    Hello Sircher,

    The difficulty with your scenario is that there is no way to use the condition builder to monitor exactly for the "profit target filled event". It's true that you will get more flexibility with code. It is possible to create some sequencing in the condition builder, using user variables. This sample can help with a basic example of this:


    If you always wanted to enforce the sequence: Set 1, Set 2, continuously, you can do it with user variables, and the sample is a good starting point for this.
    Ryan M.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by cmv727, Today, 10:38 AM
    1 response
    5 views
    0 likes
    Last Post NinjaTrader_LuisH  
    Started by Adrian1028, Today, 10:52 AM
    1 response
    2 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by trilliantrader, 04-10-2024, 09:33 PM
    4 responses
    18 views
    0 likes
    Last Post trilliantrader  
    Started by sidlercom80, 10-28-2023, 08:49 AM
    158 responses
    2,138 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by michi08, Today, 08:53 AM
    5 responses
    17 views
    0 likes
    Last Post NinjaTrader_ChristopherJ  
    Working...
    X