Wait 30 seconds within a candle

Forums ProRealTime English forum ProOrder support Wait 30 seconds within a candle

  • This topic has 5 replies, 3 voices, and was last updated 3 years ago by avatargfx.
Viewing 6 posts - 1 through 6 (of 6 total)
  • #183703
    gfx

    hi gents,

    I am struggling with trying to pause my strategy for 30 seconds after signal is triggered.

    my system runs on a 2H minute TF with update on close.

    My first idea was to use a loop for next. But quite difficult to evaluate the loop size to 30 seconds. Also, quite depending on the CPU running loop.

    Does it exist a way to pause 30 seconds after the last candle closed and the ProOrder was triggered  ?

    Thks,

    gfx

    #183707

    You can only achieve your goal with the help of Multi Time Frame support which enables you to use a 30-second TF as default, so that you just need to wait 1 candle after a signal is returned.

     

    #183963

    You could also use a time difference by using TIMESTAMP in any timeframe below the 30 seconds TF.

    #184404
    gfx

    hi all,

    Happy new year to all !

    Thank you for all your answers. They are interesting option.

    On concern on my side, not in my initial post is that all occurs in a while loop …

    In a nutshell …

    x = 1

    While x < 10

    try

    pause …. a few seconds …

    x = x +1

    wend

     

    as part of a while loop I can’t rely on any candle end trigger, of any time frame. All occurs whithin a single candle trigger

    #184424

    This code waits for a condition to be met on a 1-minute TF, but it wants to wait 10 seconds before entering at market. A 1-second default TF must be used to run it:

    #184632
    gfx

    Thks. Still it won’t work in my situation as I am still in a while loop including other conditions than time.

    A good idea though. I’ll give it some thoughts and try to adapt my code.

     

     

Viewing 6 posts - 1 through 6 (of 6 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login