Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

time since, in Strategy Wizard

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

    time since, in Strategy Wizard

    With Strategy Wizard, how do I write condition to check "price has not been below whatever(say price level or Pivot) since X time"

    So lets say i was running this on hourly charts,
    at 2am it would check if price has been below whatever since 1am
    at 3am it would check if price has been below whatever since 1am
    at 4am it would check if price has been below whatever since 1am.
    at 5am it would check if price has been below whatever since 1am.

    I can do 'at this time' or 'between these times' easy.

    Its the 'check if still valid since 1am' that i can't do

    #2
    Hello,

    Yes, you can do this using the the Time>Time Value condition and Price data>bid or ask.
    This link may help:


    Also try our development courses (free):
    DenNinjaTrader Customer Service

    Comment


      #3
      Originally posted by loadednrg View Post
      I can do 'at this time' or 'between these times' easy.

      Its the 'check if still valid since 1am' that i can't do
      In the OnBarUpdate() procedure, I would check to see if the price is below a certain value. If yes, set a boolean variable to true. If no, set the boolean variable to false.

      Then, at the designated time (2am, 3am, etc.), you would examine boolean variable. If true, then price did go below. If false, the price did not go below.

      Comment


        #4
        perfect, thanks for help

        thanks so much mgbloomfield, i've been trying to figure that out for like a month so thanks for your time.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by sjsj2732, Yesterday, 04:31 AM
        0 responses
        39 views
        0 likes
        Last Post sjsj2732  
        Started by NullPointStrategies, 03-13-2026, 05:17 AM
        0 responses
        290 views
        0 likes
        Last Post NullPointStrategies  
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        289 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        135 views
        1 like
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        96 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Working...
        X