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.