Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Candle strategy High/Low

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

    Candle strategy High/Low

    I hope someone could help I want to test a strategy where the system goes long once a 5pt candle move has been detected. I dont want the system to go long on the next candle but once high/low equal 5 pts or 20 ticks. How would I write this code in the wizard. please advise. I have attached a photo to help.
    Attached Files

    #2
    Hello wallsteetking,

    If you want to work with High - Low, this is available in the wizard as Range, under the Indicator category.

    If you want to create a rule based on a specific Range value:
    On the left expand Indicators, then select Range
    In the middle select the comparison operator you want to use.
    On the right expand Misc and choose Numeric value to specify the value you want to check for.

    Additional help working with the strategy wizard and the condition builder is available here:
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      Help needed

      First of all thank you for getting me 1 step closer to finding ou,t how to make this strategy work. However, my main issue is ninjatrader goes long on the second candle (see picture) I want it to go long ON the candle that made the first 5pt range. Again thank you for your help
      Attached Files

      Comment


        #4
        This is the way the backtesting order placement works. Conditions are evaluated at bar close. If true, orders are submitted to the next bar after the condition. To backtest with intrabar granularity requires adding an additional series and submitting to that secondary series. This type of strategy cannot be created in the strategy wizard.

        To have conditions evaluated and orders submitted on the same bar requires a real time strategy with CalculateOnBarClose = false.
        Ryan M.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by wzgy0920, 04-20-2024, 06:09 PM
        2 responses
        26 views
        0 likes
        Last Post wzgy0920  
        Started by wzgy0920, 02-22-2024, 01:11 AM
        5 responses
        32 views
        0 likes
        Last Post wzgy0920  
        Started by wzgy0920, Yesterday, 09:53 PM
        2 responses
        49 views
        0 likes
        Last Post wzgy0920  
        Started by Kensonprib, 04-28-2021, 10:11 AM
        5 responses
        191 views
        0 likes
        Last Post Hasadafa  
        Started by GussJ, 03-04-2020, 03:11 PM
        11 responses
        3,230 views
        0 likes
        Last Post xiinteractive  
        Working...
        X