Need to program a bot

The block of the bot that I need to program is the block (4).
So I need that when I loss the bot do this:

1º Case
1) stake 0.35 = Win
2) stake 0.35 = loss
3) stake 0.35 = win (after a loss trade, I trade again with the previous stake)
4) stake 0.70 = win (after win trade, I trade the previous stake x 2)
5) I start again with 0.35

2º Case
1) stake 0.35 = Win
2) stake 0.35 = loss
3) stake 0.35 = loss (after a loss trade, I trade again with the previous stake)
4) stake 0.35 = win (after a 2 loss in a row, I trade the previous stake)
5) stake 0.70 = loss (if I win I double the previous stake)
6) stake 0.70 = win (I lose, so I trade again with the previous stake)
7) stake 1.40 = win (I win the previous trade, so I double the previous stake)
8) stake 2.80 = win (I win the previous trade, so I double the previous stake, I lost 3 times, so I have to win 3 trades in a row)
9) I start again with 0.35

And so on...

Need help!! thanks!!!

Sign In or Register to comment.