No more trades for the day after certain performance

Forums ProRealTime English forum ProOrder support No more trades for the day after certain performance

Viewing 3 posts - 1 through 3 (of 3 total)
  • #21589

    Hi all, sorry for the long title but I had a question about automatically stopping and restarting the system based on strategy performance.

    I know that you can code in strategy performance using positionperf and strategyprofit commands but I was wondering if after a system was stopped, if it could automatically restart the next day without?

    For example I have a system that trades on an really fast timeframe (1min and below) and automatically stops after 12pm. What I Because it accumulates orders its wins and losses are very large but if I was to code it to stop trading after daily loss reached £500, could I then code it to automatically start again the next morning without having to do it manually?

    #21608

    You’ll find everything you need in this blog post: max gain and loss in a day, with a nice code snippet Wing has made.

    Should not be too difficult to insert this into your own trading strategy 🙂 Let us know if you meet any problem.

     

    #21612

    Ah this is perfect, thank you Nicolas!

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

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