System ends in the last bar
Forums › ProRealTime English forum › ProRealTime platform support › System ends in the last bar
- This topic has 9 replies, 2 voices, and was last updated 7 years ago by Nicolas.
-
-
02/04/2017 at 9:05 PM #23945
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
02/04/2017 at 9:09 PM #2394902/06/2017 at 11:43 AM #2407102/07/2017 at 9:04 PM #24273Hi 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
02/08/2017 at 8:38 AM #24284I 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.
02/09/2017 at 8:20 PM #2455102/09/2017 at 8:33 PM #24554Could you please test this code?
1234567defparam cumulateorders=falseif close crosses over supertrend[1,10] thenbuy 1 share at marketendifset target pprofit 50Do you have same result as me? (trade is not stopped at end backtest date = good behaviour)
02/09/2017 at 8:48 PM #24557you 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
02/09/2017 at 8:56 PM #2456102/10/2017 at 9:19 AM #24602 -
AuthorPosts
Find exclusive trading pro-tools on