Tak It Pro Advance
Tak It Pro Advance
SetChartOptions(0,chartShowArrows|chartShowDates);
_N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close
%g (%.1f%%) Vol " +WriteVal( V, 1.0 ) +" {{VALUES}}", O, H, L, C,
SelectedValue( ROC( C, 1 )) ));
Plot( C, "Close", ParamColor("Color", colorDefault ), styleNoTitle |
ParamStyle("Style") | GetPriceStyle() );
_SECTION_END();
_SECTION_BEGIN("Price Interpretation");
movshort = ParamField("Short Time MA", 8 );
movmed = ParamField("Mid Time MA", 9 );
movlong = ParamField("Long Time MA", 10 );
btop = ParamField("BBTop", 11 );
bbot = ParamField("BBBottom", 12 );
if( Status("action") == actionCommentary )
{
width = btop - bbot;
lslop = LinRegSlope( C, 30 ) + 100;
lslo = LLV( lslop, 90 );
lshi = HHV( lslop, 90 );
lswidth = lshi - lslo;
trend = 100*( lslop - lslo )/lswidth;
printf("\nShort time moving average is currently " + WriteIf( movshort > movmed,
"above", "below") + " mid-time, AND " + WriteIf( movshort > movlong, "above",
"below" ) + " long time moving averages.");
printf("\n\nBollinger Bands:\n");
printf(tname+ " has closed " +
WriteIf( C < bbot, "below the lower band by " +
WriteVal( 100 *( bbot-C )/ width, 1.1 ) + "%%. " +
WriteIf( trend < 30, " This combined with the steep downtrend can suggest that the
downward trend in prices has a good chance of continuing. However, a short-term
pull-back inside the bands is likely.",
WriteIf( trend > 30 AND trend < 70, "Although prices have broken the lower band and
a downside breakout is possible, the most likely scenario for "+tname+" is to
continue within current trading range.", "" ) ), "" ) +
printf("\n"+
WriteIf( ( trend > 30 AND trend < 70 AND ( C > btop OR C < bbot ) ) AND
abs(relwidth) > 40,
"This picture becomes somewhat unclear due to the fact that Bollinger
Bands are currently",
"Bollinger Bands are " )+
WriteVal( abs( relwidth ), 1.1 ) + "%% " +
WriteIf( relwidth > 0, "wider" , "narrower" ) +
" than normal.");
printf("\n");
printf(
WriteIf( abs( relwidth ) < 40, "The current width of the bands (alone) does not
suggest anything conclusive about the future volatility or movement of prices.","")
+
WriteIf( relwidth < -40, "The narrow width of the bands suggests low volatility as
compared to " + tname + "'s normal range. Therefore, the probability of volatility
increasing with a sharp price move has increased for the near-term. "+
"The bands have been in this narrow range for " + WriteVal(BarsSince(Cross(-
40,relwidth)),1.0) + " bars. The probability of a significant price move increases
the longer the bands remain in this narrow range." ,"")+
WriteIf( relwidth > 40, "The large width of the bands suggest high volatility as
compared to " + tname + "'s normal range. Therefore, the probability of volatility
decreasing and prices entering (or remaining in) a trading range has increased for
the near-term. "+
"The bands have been in this wide range for " +
WriteVal(BarsSince(Cross(relwidth,40)),1.0) + " bars.The probability of prices
consolidating into a less volatile trading range increases the longer the bands
remain in this wide range." ,""));
TrendLinesFunc1();
SupportResistanceFunc1();
CandleChartTakitProAdvanced1();
TAKITProAdvancedVolume1();
Plot( Volume, _DEFAULT_NAME(), VolumeColour, styleNoTitle | ParamStyle( "Style",
styleHistogram | styleOwnScale | styleThick | styleNoLabel, maskHistogram ), 2 );
TAKITProBuySellFunction1();
function GetSecondNum()
{
Time = Now( 4 );
Seconds = int( Time % 100 );
Minutes = int( Time / 100 % 100 );
Hours = int( Time / 10000 % 100 );
SecondNum = int( Hours * 60 * 60 + Minutes * 60 + Seconds );
return SecondNum; // return SecondNum
}
RequestTimedRefresh( 1 );
TimeFrame = Interval();
SecNumber = GetSecondNum();
Newperiod = SecNumber % TimeFrame == 0;
SecsLeft = SecNumber - int( SecNumber / TimeFrame ) * TimeFrame;
SecsToGo = TimeFrame - SecsLeft; //return SecsToGo
_SECTION_BEGIN("Buy Sell");
PlotShapes( IIf( Buy, shapeSquare, shapeNone ), colorGreen, 0, L, Offset = -20 );
PlotShapes( IIf( Buy, shapeSquare, shapeNone ), colorLime, 0, L, Offset = -30 );
PlotShapes( IIf( Buy, shapeUpArrow, shapeNone ), colorWhite, 0, L, Offset = -25 );
PlotShapes( IIf( Sell, shapeSquare, shapeNone ), colorRed, 0, H, Offset = 20 );
PlotShapes( IIf( Sell, shapeSquare, shapeNone ), colorOrange, 0, H, Offset = 30 );
PlotShapes( IIf( Sell, shapeDownArrow, shapeNone ), colorWhite, 0, H, Offset =
-25 );
BuyAlert = Buy;
SellAlert = Sell;
_SECTION_END();
_SECTION_BEGIN("Message Board");
MessageBoardTAKITProFunc1(SecsToGo);