Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Premarket condition in Strategy Builder

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

    Premarket condition in Strategy Builder

    If I have a chart including premarket data. Is there a condition in Strategy Builder that can refer to an event that occurred during premarket hours or in an earlier specific time?
    Say I want to enter when price crosses above moving average (during regular market hours) and price was above moving average during premarket time today. Any advise welcomed.
    Thank you.

    #2
    Hello designer01,

    There is not a specific property which would let you know its premarket vs normal hours. To the strategy it just sees that there is data to process during that time. The easiest way to do what you are asking would be to make a time condition with the pre market hours as the time range, you could add that to any set where you wanted it to only work during pre market hours.

    Comment


      #3
      Hi Jesse,
      Thank you. Would something like this work. I guess I have to add it to the code script manually unless there is a way in Strategy Builder.

      Code:
      if Time > 929 and Time <= 930
      {
      PreMarketCriteria = true;
      }

      Comment


        #4
        Hello designer01,

        Yes that would be the concept. To do that in the builder you would need to add two conditions to the set, the first checking that the Time Series is greater than Time Value of 929 and then the same for the second condition checking that the time series is less than or equal to time value of 930.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by NullPointStrategies, Yesterday, 05:17 AM
        0 responses
        66 views
        0 likes
        Last Post NullPointStrategies  
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        141 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        75 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        46 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        51 views
        0 likes
        Last Post TheRealMorford  
        Working...
        X