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.
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.
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。