OPEN-SOURCE SCRIPT

TMA All in One

Triangular Moving Averages
TMA formula is prepared on the Tradingview so that everyone can easly access.

First, calculate the simple moving average ( SMA ):
SMA = (P1 + P2 + P3 + P4 + ... + PN ) / N
Then, take the average of all the SMA values to get TMA values.
TMA = (SMA1 + SMA2 + SMA3 + SMA4 + ... SMAN) / N
The TMA can also be expressed
Source : Close

if the prices are upper than moving averages price bar color will be green, if lower than moving average it will be red color.
İf the trend is bullish , TMA will work as support
İf the trend is bear, TMA will work as resistance..
snapshot

We used SMA5 ( Simple Moving Average5)
İf short period average(Green), cross up Longterm average (brown) that means BUY ( Green area)
İf opposite SELL ( Red area)
snapshot
My idea, weekly period gives very good results to middleterm and long term invesment..That can help us from which prices we can buy the stock which we think that financial results are positive..

The other topic;
At the end, everytime prices return back to average values, and prices can move away until some distance. We can buy or sell with mixed prices, that can provide us better buy or sell average cost.
in Default Settings;
SELL 2.Area = 20% over than Longterm average, if the prices go upper that means prices are increased so much
SELL 1.Area = 13% over than Longterm average, if the prices go upper that means prices are incresed a bit.
BUY 1.Area = 3% lower than Longterm average, if the prices go upper that means prices are decreased a bit.
BUY 2.Area = 10% lower than Longterm average, f the prices go upper that means prices are decreased so much
snapshot
You can use this indicator in your interested stock market.. With checking historical behaviour of the related stock market, you can make balance on the indicator setting.

According to averages, below BUY-SELL strategy is important,
Powerful SELL
1- Previosly İncrease
2- Price cross down the long average line
3- Short average,crossdown the long average
4- Price approach to long average, but close the bar under this average

Powerful BUY
1. Previosly Decrease
2. Price cross up the long average line
3. Short average crossup the long average line
4. Price approach to long average, but close the bar over this average
hareketliMoving AveragesortalamastrategyTMATrend Analysis

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?


Also on:

Disclaimer