Entry before close

Forums ProRealTime English forum ProBuilder support Entry before close

Viewing 4 posts - 1 through 4 (of 4 total)
  • #236171

    Hi there

    I am trying to create a new algorithm that enters into the market as soon as the conditions are triggered rather than after the close. Is this possible?

    I know there has been a few big updates so I was wondering if this is now allowed.

     

    Many thanks for your help

    #236172
    JS

    Hi,

    In PRT, the code is read after the Close of the bar, so conditions that are triggered during the formation of the bar will (still) be executed after the Close of the bar… (for buy/sell on the Open of the next bar

    Short answer: unfortunately not possible

     

    #236177

    JS is right in general, but since the Multi Time Frame support was added, a few years ago, it’s indeed possible to achieve your goal.

    Coding with multiple timeframes is not so complicated, but it requires a few additional skills that you can learn reading the hundreds of examples, posts and blogs on the subject.

    Search this forum for the MTF word and you will be returned dozens of links to tons of lines of code and info.

     

     

    #236735

    Another way is to use stop/limit orders.

    Tho the stratergy have to be made acordingly (place the order to sett a buy limit earlyer), but for a brakeout strategy is one way to do it.

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

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