Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Trade Entry not following Strategy Conditions and Actions

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

    Trade Entry not following Strategy Conditions and Actions

    i have a strategy builder condition as part of an IF ALL condition set that i understand will do the following: Enter when the swing low is higher than the previous swing low.

    I am describing the condition here: when the Swing Low with a (5) strength 10 Bars Back is LESS THAN the Current Swing Low with a (5) Strength.....see attached

    Attached is the chart markup. showing an entry entering into swing low weakness. see attached.

    Please advise.

    Note:
    Fastswing is a setting 5
    Painted Bars are setting 5 where Green is a Swing Low
    Attached Files
    Last edited by hdge4u; 06-26-2023, 04:58 PM.

    #2
    im running this strategy in playback and its also entering on lower lows instead of lower highs. the attached is using a Swing Strength 2 to highlight the undesired behaviour. Those trades should not have happened. please advise.
    Attached Files

    Comment


      #3
      No, the logic "Swing Low[10] < Swing Low[0]" is not the same as "Swing Low[0] > Swing Low[10]". They represent opposite conditions.

      The logic "Swing Low[10] < Swing Low[0]" checks if the swing low that occurred 10 bars ago is lower than the current swing low. This condition is evaluating whether the price has made a lower low over the specified period.

      On the other hand, the logic "Swing Low[0] > Swing Low[10]" checks if the current swing low is higher than the swing low that occurred 10 bars ago. This condition is evaluating whether the price has made a higher low over the specified period.

      Last edited by hdge4u; 06-27-2023, 10:40 AM.

      Comment


        #4
        so i corrected the logic: then why is it still entering on lower lows. its not even using 10 bars back.

        Swing Low[0] > Swing Low [10]
        Attached Files
        Last edited by hdge4u; 06-27-2023, 10:42 AM.

        Comment


          #5
          Hello hdge4u,

          Swing Low[10] < Swing Low[0] would mean that the current bar swing is greater than the swing from 10 bars ago.
          Swing Low[0] > Swing Low[10] would mean that the current bar swing is greater than the swing from 10 bars ago.

          These would mean the same thing.

          Debug using prints to understand the behavior.

          Print the time of the bar, print all values being compared in the condition along with labels.

          Attach the output saved to a text file with your next post.

          Below is a link to a forum post on using Print() and TraceOrders to understand behavior.


          Note, the swing indicator changes its historical values. A bar in realtime may not have a swing on it, then if you check it 10 bars later the value 10 bars ago may have changed.
          Printing the values would make this clear as well.
          Chelsea B.NinjaTrader Customer Service

          Comment


            #6
            i figured as such. thank you thank you for your response! it is good to know the logic is flexible like that. i will work on getting it debugged to ultimately understand why it does what it does.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by NullPointStrategies, Today, 05:17 AM
            0 responses
            20 views
            0 likes
            Last Post NullPointStrategies  
            Started by argusthome, 03-08-2026, 10:06 AM
            0 responses
            120 views
            0 likes
            Last Post argusthome  
            Started by NabilKhattabi, 03-06-2026, 11:18 AM
            0 responses
            63 views
            0 likes
            Last Post NabilKhattabi  
            Started by Deep42, 03-06-2026, 12:28 AM
            0 responses
            41 views
            0 likes
            Last Post Deep42
            by Deep42
             
            Started by TheRealMorford, 03-05-2026, 06:15 PM
            0 responses
            45 views
            0 likes
            Last Post TheRealMorford  
            Working...
            X