some martingale script
I'd like to warn you that martingale is more a method to ensure you lose your money than actually have gains. To keep it short, on a losing streak it gets soon unrealistically expensive to try to recover the loses, instead you lose even (much!) more.
I advise you gamble for fun and only as long as it's fun (and you have money you afford to lose/play with).