Buy execution on system trigger not next bar??

Forums ProRealTime English forum ProOrder support Buy execution on system trigger not next bar??

Viewing 5 posts - 1 through 5 (of 5 total)
  • #67326

    Hi there, im new to the system so apologies if im missing something here.. i am trying some backtesting and i can’t seem but notice that there is no option to execute a BUY/SELL order immediately other than on the NEXT time period OPEN once a system has triggered a signal, which negates any potential profits once a system triggers in that same time period, so for daily and longer timeframes it kind of seems useless to me, is that correct or am i missing something? it kind of defeats the whole purpose of backtesting doesn’t it? has anyone found a way to get around this please? do i need to break charts into 1Hr and recalculate all daily indicator references x24 maybe, is that the best workaround?

    much appreciated if anyone has any basic wisdom to share!

    #67327

    Orders AT MARKET are executed IMMEDIATELY as conditions are met (triggered)!

    Evaluation of conditions take place when each bar closes and any order you palce is immediately executed if you need.

    If you mean that there’s a MA crossing on a, say, Daily TF you won’t be able to detect it before the candle closes! Well… that’s the normal, correct behaviour, will you consider a crossing valid while still in the works?

    You may use a 1-hour TF, but then you’ll have to wait for the crossing to be cerified by the closing of that candle; in this case, though, you are not talking about Daily charts anymore because before the end of the day that crossing could even reverse!

    #67333

    Grazie mille Maestro,

    I understand your point re crossing confirmation sure, thank you. My test was more specifically relating to vol. breakouts in terms of a given % under/over a 3-day ATR, which in most cases exceeded past that percentage in that same timeframe and basically didn’t seem to give me any option to buy the moment that specific % was hit, regardless of whether i wanted a confirmation or not basically, purely to assess what percentage would yield the best trades, but i may have entered conditions incorrectly then if you say “at market” happens immediately? In the programming window is still says only ever “At Market” while in the simplified it says “Next Bar Open” how can that be? In reference to MA crossing, it still feels like a flawed backtest (as per screenshot example attached) where the crossing happens between 2 TF’s and yet the buy still gets executed 2 daily charts later basically.. i guess i will have some fine tuning to do maybe 4hr intervals are worth investigating then also?

     

     

    #67336

    NEXTBAROPEN is an obsolete keyword, still present for compatibility with older code, but now it has no effect.

    Anyway, the new Multi Time Frame (MTF) feature, just in beta test for developpers, expected before the end of this year, will address your issues, for you’ll be able to design your strategy on a Daily TF, still making checks even every 1 second!

    You may want to read https://www.prorealcode.com/topic/betatesting-multitimeframe-support-automatic-trading/.

    #67339

    Mitico, thank you once again:)

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

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