OPEN-SOURCE SCRIPT

Decent Martingale Strategy [Pinescript v3]

In my experimentation to add some sort of hedging to trades, I stumbled on the Martingale roulette betting strategy.
If it works in the casino, why not here?

The principle is simple:
If you lose a trade, immediately go the opposite direction and double your bet.

In this case, we're just applying a multiplier.

The strategy is a simple EMA crossover - defaulted to my favorite periods 8 and 62.

Enjoy :) I'll make a new one that's contained in a function, so you can simply implement it in your own strategy and have it monitor winning/losing trades automatically.

Cheers,
DasanC
bettingcrossoverfunnymartingaleMoving Averagestrash

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?


Algo Trading Simplified 👉 PaxProfits.com
Discover the easy way to manage Forex trading accounts. Trusted by traders globally.

Forex Trading Coaching 👉 primetimefox.com
Learn consistent currency pair trading from a professional.
Also on:

Disclaimer