Strategy is stopped when logging out from PRT

Forums ProRealTime English forum ProOrder support Strategy is stopped when logging out from PRT

Viewing 10 posts - 1 through 10 (of 10 total)
  • #35681

    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

    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

    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

    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

    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

    Hi Despair

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

     

    #36287

    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

    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

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

    #36467

    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.

    1 user thanked author for this post.
Viewing 10 posts - 1 through 10 (of 10 total)

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