Strategy is stopped when logging out from PRT

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #35681 quote
    Despair
    Blocked
    Master

    Hi,

    I have a problem. When i shut down PRT my strategy is always stopped. When i restart PRT there is a yellow sign infront of the strategy and it is not running. When i click on the sign it says that it was stopped because it could load an indicator because of insufficient historical data and that is should use defparam to preload bars. But i have preloaded 2000 bars with should be plenty.

    Any suggestions?

    #35684 quote
    victormork
    Participant
    Veteran

    Not an expert on this but you could try a smaller amount of preloaded bars. If your indicator needs 200 bars, try to preload 400 bars. It should be enough.

    #35694 quote
    Despair
    Blocked
    Master

    Thanks for the suggestion. I now logged out again (without any changes) and  restarted PRT and it did NOT shutdown the strategy. I think i must try out this a little more and will then return with a new question. LOL

    #36255 quote
    Despair
    Blocked
    Master

    I can not get rid of this problem. I have a strategy that has been running fine on demo 2-3 days but now it always stops itself after just a few minutes. It always comes the error that an indicator couldnt be calculated because of too few preloaded bars like i described above.

    But i do not understand it. I am not aware of usind any indicator that needs so much preloaded bars and i now already increased preloaded bars to 3000 but the problem persists.

    Any ideas?

    #36281 quote
    GraHal
    Participant
    Master

    Don’t Despair Mr Despair … sorry I couldn’t resist that! 🙂 🙂 🙂  It’s usually me who these ‘weird issues’!

    Easiest would be to  add your code on here using the <> icon above and then we can test your code on our Platforms to see if we get the same problem. Also somebody may spot what the problem is anyway?

    GraHal

    #36282 quote
    StantonR
    Participant
    Senior

    Hi Despair

    As GraHal said we cant really help without seeing the code.

    #36287 quote
    Despair
    Blocked
    Master

    It is not that i dont want to post the code but the strategy has about 500 lines and posting the whole would be a little bit unspecific. I now contact PRT support. Let’s see what they reply.

    #36381 quote
    Despair
    Blocked
    Master

    Today the strategy is working fine (on demo) but yesterday it wasnt possible to run it. It always stopped after one bar. So i assume again that the problem is a “monday-problem”.

    I am using data from friday on mondays so obviously this is “too long ago”. But anyway this seems very strange. I am preloading 3000 bars and this is a 5min strategy. So this is data for more than 10 days! This should be more than enough.

    I am still all ears for suggestions…

    #36400 quote
    GraHal
    Participant
    Master

    What does this mean … I am using data from friday on mondays ??

    #36467 quote
    Despair
    Blocked
    Master

    Sorry my bad formulation. I meant i use for example fridays high/low on monday. But it is obviously another “monday only” issue. Yesterday the strategy would not start. Or more precise it always stopped after just 1 bar.

    Today it has been running all day without problems. It must be something like with this hidden sunday candles that caused problems for me before.

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

Strategy is stopped when logging out from PRT


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
Despair @despair Blocked
Summary

This topic contains 9 replies,
has 4 voices, and was last updated by Despair
8 years, 9 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 05/16/2017
Status: Active
Attachments: No files
Logo Logo
Loading...