No more trades for the day after certain performance

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #21589 quote
    kg6450kg6450
    Participant
    Average

    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 quote
    NicolasNicolas
    Keymaster
    Legend

    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 quote
    kg6450kg6450
    Participant
    Average

    Ah this is perfect, thank you Nicolas!

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

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTimeā„¢ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

No more trades for the day after certain performance


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
kg6450 @kg6450 Participant
Summary

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

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 01/18/2017
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...