System ends in the last bar

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #23945 quote
    quo
    Participant
    Average

    Hi all, i don´t know why but since last time i run PRT my systems ends in the last bar. In the backtest options i am sure option “from first date” “to last availabe day” is checked but it still ends like i had put until today´s bar.

    I have been using PRT for years and when you check as a final date “last available date” if you are in a trade, the sistem keeps you in. However now system suposse the trade finish in the last bar.

    It has to be easy to solve it but i can´t.

    This happen with all the systems, so has nothing to do with the code of the system.

    Can anyone tell what i am doing wrong?. This happen since last time i run PRT..thanks

    LEGRAND.png LEGRAND.png legrandop.png legrandop.png
    #23949 quote
    quo
    Participant
    Average

    i copy again the graph because the comment is cut.

     

    thanks

    LEGRAND-1.png LEGRAND-1.png
    #24071 quote
    Nicolas
    Keymaster
    Master

    Do you think it has nothing to deal with “end of day” only capabilities? Do you have live data subscription for “LEGRAND” ticker?

    #24273 quote
    quo
    Participant
    Average

    Hi Nicolas,

    i have  end of date data but i had also end of date data one month ago and the back test didn´t end in the last bar. Was everything ok until mid january aprox.

    Maybe the software have been update automatically and in a new version things have chage?

    I want that if the system says you have to be still in dont exit the position in the last bar!!

     

    thanks

    #24284 quote
    Nicolas
    Keymaster
    Master

    I can’t reproduce this problem on my own platform with a little simple strategy on the same share .. , if you think this is PRT related, you can send them a console report. They will certainly point you in the right direction to understand how and why you have this issue.

    Or, you can share your code here and I’ll try again to understand this backtest behaviour.

    #24551 quote
    quo
    Participant
    Average

    Thanks Nicolas, this problem happens to me anywhere, it doesn´t matter the system or with stoke i choose. Thanks

    #24554 quote
    Nicolas
    Keymaster
    Master

    Could you please test this code?

    defparam cumulateorders=false
    
    if close crosses over supertrend[1,10] then 
    buy 1 share at market 
    endif 
    
    set target pprofit 50

    Do you have same result as me? (trade is not stopped at end backtest date = good behaviour)

    proorder-mensuel.png proorder-mensuel.png
    #24557 quote
    quo
    Participant
    Average

    you see? trade is closed automatically in the last bar. One month ago i got the same result than you (i mean i would be in).

    From first to last available date is selected.

    i sent an email 2 weeks ago (before ask here) to soporte@prorealtime.com but they did not answered me yet.

    i´ll keep trying

    LEGRAND-2.png LEGRAND-2.png
    #24561 quote
    quo
    Participant
    Average

    another system and another stoke.

    you see in all of them the vertical black line at the end of the liquidity chart telling us the backtest is tested until the last bar. Strange.

    PEUGEOT.png PEUGEOT.png
    #24602 quote
    Nicolas
    Keymaster
    Master

    Seems that the problem is known at PRT: End Of Day backtests have this behaviour since the last update. This gonna be changed/fix in the next build, this should be in the next days to come.

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.

System ends in the last bar


Platform Support: Charts, Data & Broker Setup

New Reply
Author
author-avatar
quo @quo Participant
Summary

This topic contains 9 replies,
has 2 voices, and was last updated by Nicolas
9 years ago.

Topic Details
Forum: Platform Support: Charts, Data & Broker Setup
Language: English
Started: 02/04/2017
Status: Active
Attachments: No files
Logo Logo
Loading...