Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Condition for Strategy

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

    Condition for Strategy

    I want to set a condition, maybe two, for my strategy, and I was wondering if it is possible with the condition builder. I will give an example; My trigger event to enter the trade would be a MACD cross, but for this to be true, condition 1- current price be 10 ticks above the lowest low of the previous 25 bars. condition 2 would be no greater than 15 ticks from same point. Thank you in advance for your assistance.

    #2
    Hello jacklegtrader, and thank you for your question.

    This is indeed possible with the condition builder. We will make use of the offset property and the MIN indicator. I am providing help guide links for both of these.




    In the same condition set as your crossover, you will want to add this condition :

    Code:
    Left hand side:
         Close
        Bars ago 0
        Offset type Ticks
    [B]    Offset -10
    
    [/B]Operation :
           >
    
    Right hand side:
      Indicators -> MIN
        Input series DefaultInput
    [B]    Period 25[/B]
        Offset type Ticks
        Offset 0
        Plot on chart False
    You will also want this condition.

    Code:
    Left hand side:
      Close
        Bars ago 0
        Offset type Ticks
        Offset 0
    
    Operation :
      <=
    
    Right hand side:
      Indicators -> MIN
        Input series DefaultInput
    [B]    Period 25[/B]
        Offset type Ticks
    [B]    Offset +5[/B]
        Plot on chart False
    Please let us know if there is any other way we can help.
    Last edited by NinjaTrader_JessicaP; 05-03-2016, 07:33 AM.
    Jessica P.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, Yesterday, 09:41 PM
    1 response
    14 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    31 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    30 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-25-2026, 09:53 PM
    0 responses
    34 views
    0 likes
    Last Post CaptainJack  
    Started by CaptainJack, 03-25-2026, 09:51 PM
    0 responses
    19 views
    0 likes
    Last Post CaptainJack  
    Working...
    X