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 mmiterli, 07-10-2023, 03:48 AM
    7 responses
    135 views
    0 likes
    Last Post SergeyFXJ  
    Started by affilife, 02-17-2024, 09:53 AM
    4 responses
    116 views
    0 likes
    Last Post rjm1903
    by rjm1903
     
    Started by AdamDJ8, Today, 08:29 PM
    0 responses
    4 views
    0 likes
    Last Post AdamDJ8
    by AdamDJ8
     
    Started by AdamDJ8, 05-07-2024, 09:18 PM
    3 responses
    41 views
    0 likes
    Last Post AdamDJ8
    by AdamDJ8
     
    Started by Jorge Mendieta, Today, 07:35 PM
    1 response
    9 views
    0 likes
    Last Post Jorge Mendieta  
    Working...
    X