Indicator Text For MetaStock
A:= Input("SampleLength",1,200,20);
B:= Input("DevLength",5,200,60);
ROC( CLOSE , A ,% );
BBandTop(ROC( CLOSE , A ,% ) ,B,S ,2 );
BBandTop(ROC( CLOSE , A ,% ) ,B ,S ,1 );
BBandBot(ROC( CLOSE , A ,% ) ,B ,S ,1 );
BBandBot(ROC( CLOSE , A ,% ) ,B ,S ,2 );
THIS IS A TRADINGVIEW AND METASTOCK INDICATOR
The has a few components.
The first is the “Rolling” line.
THIS IS ROC(C,10)
It just shows percent rise or fall in stock price over 10 days
This shows us the rolling returns of a
stock for whatever timeframe we want.
The default setting is a period of 10 trading days, which is the
equivalent of 2 weeks.
So, for an example, if a stock is a reading of 4.7%, that means
it has rallied 4.7% over 10 trading days.
The rest of the lines are volatility bands, using a 60-day
sample. 60 days is about 3 calendar months.
The indicator looks back at all of the rolling returns data, and
calculates the standard deviations.
hope dsome body can code an afl.
this is best used in option trading.
IWO Turning Point Indicator thinkorswim code
declare lower;input length = 10;
input stdLength = 60;
plot rolling = (close - close[length])*100/close[length];
plot updev = StDev(rolling, stdLength);
plot twoupdev = 2*StDev(rolling, stdLength)
;plot downdev = -StDev(rolling, stdLength);
plot twodowndev = -2*StDev(rolling, stdLength);
A:= Input("SampleLength",1,200,20);
B:= Input("DevLength",5,200,60);
ROC( CLOSE , A ,% );
BBandTop(ROC( CLOSE , A ,% ) ,B,S ,2 );
BBandTop(ROC( CLOSE , A ,% ) ,B ,S ,1 );
BBandBot(ROC( CLOSE , A ,% ) ,B ,S ,1 );
BBandBot(ROC( CLOSE , A ,% ) ,B ,S ,2 );
THIS IS A TRADINGVIEW AND METASTOCK INDICATOR
The has a few components.
The first is the “Rolling” line.
THIS IS ROC(C,10)
It just shows percent rise or fall in stock price over 10 days
This shows us the rolling returns of a
stock for whatever timeframe we want.
The default setting is a period of 10 trading days, which is the
equivalent of 2 weeks.
So, for an example, if a stock is a reading of 4.7%, that means
it has rallied 4.7% over 10 trading days.
The rest of the lines are volatility bands, using a 60-day
sample. 60 days is about 3 calendar months.
The indicator looks back at all of the rolling returns data, and
calculates the standard deviations.
hope dsome body can code an afl.
this is best used in option trading.
IWO Turning Point Indicator thinkorswim code
declare lower;input length = 10;
input stdLength = 60;
plot rolling = (close - close[length])*100/close[length];
plot updev = StDev(rolling, stdLength);
plot twoupdev = 2*StDev(rolling, stdLength)
;plot downdev = -StDev(rolling, stdLength);
plot twodowndev = -2*StDev(rolling, stdLength);
Last edited: