Quit and Comeback of the automated strategy

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #152579 quote
    pierrevogt
    Participant
    Junior

    Hi all,

     

    I’d like to create a code, that has an additional condition for opening positions, workin like this:

    If the last two trades, the system generated, have been lose trades, the next trade shall not be opened.

    But for the next trade to be opened, the test above shall include even those trades, that have been identified but not been traded.

     

    Example: My strategy brings the following results –> but shall bring these results:

    Won –> won

    won –> won

    won –> won

    lost –> lost

    won –> won

    lost –> lost

    won –> won

    won –> won

    lost –> lost

    lost –> lost

    won –> no trading activity

    lost –> lost

    won –> won

    lost –> lost

    lost –> lost

    lost –> no trading activity

    lost –> no trading activity

    lost –> no trading activity

    lost –> no trading activity

    won –> no trading activity

    lost –> lost

    won –> won

    won –> won

    won –> won

    lost –> lost

    won –> won

    lost –> lost

    lost –> lost

    won –> no trading activity

     

     

    Thanks for your helpful tips.

    #152621 quote
    Vonasi
    Moderator
    Master
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

Quit and Comeback of the automated strategy


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
pierrevogt @pierrevogt Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by Vonasi
5 years, 2 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 12/04/2020
Status: Active
Attachments: No files
Logo Logo
Loading...