Quit and Comeback of the automated strategy

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #152579 quote
    pierrevogtpierrevogt
    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
    VonasiVonasi
    Moderator
    Master
Viewing 2 posts - 1 through 2 (of 2 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

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 VonasiVonasi
5 years, 10 months ago.

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