Quit and Comeback of the automated strategy

Forums ProRealTime English forum ProOrder support Quit and Comeback of the automated strategy

Viewing 2 posts - 1 through 2 (of 2 total)
  • #152579

    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
Viewing 2 posts - 1 through 2 (of 2 total)

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