# Break your losing streak

**bunti_k23:**i have got an idea

**bunti_k23:**consecutive losses, then we will skip two trades after first losing trade.- Possible, of course, per № 2. After you have your losses, you'll need to make your code trade virtually and count wins before going back to real.
**bunti_k23:**can anyone help me to figure out the code.**Show**us your attempt (using the CODE button) and**state**the nature of your problem.

No free help 2017.04.21Or pay someone. Top of

**every**page is the link Freelance.

Hiring to write script - General - MQL5 programming forum 2018.05.12

**William Roeder:**

- It's called Gambler's Fallacy
- Makes no sense. If you skip after the first loosing trade, you have one consecutive loss. Unless you can write your conditions concretely, it can't be coded.
- Possible, of course, per № 2. After you have your losses, you'll need to make your code trade virtually and count wins before going back to real.
- Help you with what? You haven't stated a problem, you stated a want.
**Show**us your attempt (using the CODE button) and**state**the nature of your problem.

No free help 2017.04.21Or pay someone. Top of

**every**page is the link Freelance.

Hiring to write script - General - MQL5 programming forum 2018.05.12

Hi william thank you for your response,

Instruement – CFD forex pairs

Broker – <Deleted>

Timeframe – 1 minute expiry

Money management – 1 step martingale

Losing streak – 4 consecutive losses i.e 8 dollars loss

here s my idea for cutting loosing streak. lill correction

scenario -1

iam using 1 step martingale here. so far by visual backtesting i have got 4 consecutive losing signal. iam using 1$ per trade so if 4 consecutive losing trade that means 8$ loss.

scenario -2

my idea here is to skip the next trade when you get a losing trade. so here in this scenario we ve got 1st losing trade which gives us $2 loss.

second trade skip third trade again $2loss 4th trade skip 5th trade profit.

so in first scenario we ve got $8 loss and in second scenario we ve got $4 loss.

BUY CONDITION = lets say we have a buy signal (trade amount $1)which we have a loss, iam going to place again a buy trade on immediate next candle to recover the loss martingale step 2 (trade amount $2) if we get a loss in martingale step 2 (total loss $2) we are going to skip the next signal

vice versa for Sell condition

below image attached for reference

continued after loosing streak of $4 as per condition, we have 5 consecutive wins which recovered $4 loss

after last 5 wins again we have 4 more wins. so 9 consecutive wins so far,

we ve got a loss trade here finally which made to skip next trade coincidentally it was a loosing trade again

**bunti_k23:**

Hi guys,

i have got an idea to break losing streak of a trading system. lets say we have a 4 consecutive losses, then we will skip two trades after first losing trade.

is it possible to code such thing? only disadvantage iam seeing here is you miss two profit trades if you dont have a streak after 1 loss...can anyone help me to figure out the code.

thank in advance....

Hi

this makes no sense - if a trading system is effective then it must take every trade it is offered within the rules otherwise you skew the results and will never know if it works.

but if you wish to pursue the issue then:

in the scenario that you paint, you can assume that your system is not working with the current conditions (say a trend system trading in a consolidation period) and you would be better to have a rule that skips all trading until the next day and thereby avoid the incorrect conditions.

I think the idea of trading after a high number of losses is exactly what is described in the Gambler's fallacy

but does this rule apply if there is a winning rate higher than 50% ? for example if we test the strategy over 10 years on 28 pairs and the max number of consecutive losses is 3, then we can assume with a high probability that the trade after 3 losses will be a winner ?

i'm not sure

Jeff

**Jean Francois Le Bas:**

I think the idea of trading after a high number of losses is exactly what is described in the Gambler's fallacy

but does this rule apply if there is a winning rate higher than 50% ? for example if we test the strategy over 10 years on 28 pairs and the max number of consecutive losses is 3, then we can assume with a high probability that the trade after 3 losses will be a winner ?

i'm not sure

Jeff

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets

You agree to website policy and terms of use

Hi guys,

i have got an idea to break losing streak of a trading system. lets say we have a 4 consecutive losses, then we will skip two trades after first losing trade.

is it possible to code such thing? only disadvantage iam seeing here is you miss two profit trades if you dont have a streak after 1 loss...can anyone help me to figure out the code.

thank in advance....