Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Trigger outside Trading Times set

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

    Trigger outside Trading Times set

    I have an issue trying to figure out Why or what I need to do so solve this issue. I have a trading start time and a trading stop time. My conditions are meet prior to the trading time window. The orders are held until the trading time window is reached and then sent.

    How do i keep the evalutions of the condtions from even being looked at until after the trading time window opens

    #2
    Hello DTSSTS,

    Thank you for your note.

    You could check the times before processing other items and if it's not within that time period, return so nothing else is processed until you're in that window. So, something like:

    if (Time[0] > MyStartTime && Time[0] < MyEndTime)
    {
    //your logic goes here
    }
    else
    {
    return;
    }

    This would keep other conditions in your logic from being checked unless the time is within your defined period.

    Please let us know if we may be of further assistance to you.

    Comment


      #3
      that is what i am doing on the conditions area that is checked to send orders, but i am not doing that in the areas that some of rules (other conditions) are checked to see if there respective logic is true.
      SO YOU ARE SAYING i need the time code on every area rules or logic is being considered/checked

      thanks

      Comment


        #4
        Hello DTSSTS,

        Thank you for your note.

        Yes, if you don't want the other conditions checked within that period you'd want to put them inside that check for the time.

        Please let us know if we may be of further assistance to you.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Mindset, 04-21-2026, 06:46 AM
        0 responses
        88 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        134 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        68 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by cmoran13, 04-16-2026, 01:02 PM
        0 responses
        119 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        69 views
        0 likes
        Last Post PaulMohn  
        Working...
        X