OPEN-SOURCE SCRIPT

TEMA Cross with Renko Boxes

This is a pretty simple microprofit strategy with a couple twists:

Renko boxes plot fixed price changes over variable amounts of time, rather than plotting varying price changes over fixed amounts of time like conventional candlesticks. This makes price trends much simpler to identify, and that's what we ultimately care about.

Triple exponential moving average is a moving average that has considerably less lag compared to a regular EMA.

Buying and selling is simple, buy when TEMA crosses above a short-term SMA, and sell when TEMA crosses below the short-term SMA. The use of Renko candles makes these crosses more reliable, and TEMA gives us more optimal entries and exits.

We also avoid buying if the price is above a longer-term smoothed moving average. This is an attempt to avoid bags but it means we might miss a few trades right after a pump.

Also included are
avg_protection -- if > 0 we only buy if it will reduce our average bought price
gain_protection -- if >0 only sell once we have met our min_gain


I prefer to use a fixed price increment (traditional Renko) rather than ATR. I start with an increment roughly 0.1% of the current price level and see how the chart looks. It's better if the chart has a lot of big zig-zags. Larger price increments will be less noisy and more reliable, and is more suited for longer-term swing trading.


This strat needs to be used with tiny tiny order sizes and can definitely be improved upon. It does not maximize gains on very rapid pumps.

It basically accumulates a long position with many small buys over and over when the price is below average, until there is an opportunity to sell for a profit. In a pump there is not a lot of time to re-accumulate a position after the first sell.

Moving AveragesTrend Analysis

Скрипт с открытым кодом

В истинном духе TradingView автор этого скрипта опубликовал его с открытым исходным кодом, чтобы трейдеры могли понять, как он работает, и проверить на практике. Вы можете воспользоваться им бесплатно, но повторное использование этого кода в публикации регулируется Правилами поведения. Вы можете добавить этот скрипт в избранное и использовать его на графике.

Хотите использовать этот скрипт на графике?

Отказ от ответственности