one trade an hour on minute bar system

Forums ProRealTime English forum ProOrder support one trade an hour on minute bar system

  • This topic has 8 replies, 3 voices, and was last updated 1 year ago by avatarJS.
Viewing 9 posts - 1 through 9 (of 9 total)
  • #212477

    Hi, fellow traders.

    I’ve made a breakout system on a minute bar chart.

    However, I want at max one trade on each hour frame.

    For example, when an order is executed at 16:05, and the stoploss/ gain is hit before 17:00, I don’t want the system to start a new trade ( if the variables are met) before 17:00.

    On the other hand, if the stoploss is not hit before 17:00 it should stay open.

    The reason I try to work with a minute bar system is because that way the ystem reacts faster on a  break-out ( with hour bars, you have to wait until the next hour).

    Is there a way to do this?

    kind regards,

    #212506
    JS

    Hi,

    Do you really want a maximum of 1 transaction per hour or do you want a maximum of 1 transaction every hour…

    1. Transaction closed at 16:15 then the next transaction can take place after 17:15… (no transaction for a whole hour)

    1. Transaction closed at 16:15 then the next transaction can take place after 17:00… (part of an hour no transaction)
    #212510

    Hi JS,

     

    Thanks for the reply. I’m looking for a solution like your second option ( number 2).

     

    Kind regards,

     

    #212519
    JS

    Hi,

    Try this one…

    #212520

    Thank you JS,

     

    I’ll try the code this evening at home and I’ll keep you posted!

     

    regards,

    #212587

    Unfortunate, it didn’t work out.

    The system kept generating orders during the same hour ( after the stoploss or stopgain was hit).

    regards,

     

    #212609
    JS

    Hi,

    That’s strange because it works for me…

    Maybe the cause is in another part of your code…?

    #212638

    No, I just forgot to adjust the part in line nr. 9.

    It works great!

    thanks

    1 user thanked author for this post.
    avatar JS
    #212640
    JS

    After I thanked you (thanks) your “topic count” went from 1 to zero…

    And your replies went from 3 to 1…

    I better not thank you… 😉

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

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