Académique Documents
Professionnel Documents
Culture Documents
_SECTION_BEGIN("The_Beast_2");
SetBarsRequired(10000,10000); /* this ensures that the charts include all bars
AND NOT just those on screen */
Prd1=Param("ATR Period 1-20",4,1,20,1);//{Default = 4 Because most traders use 5}
Prd2=Param("LookBack Period 1-20",7,1,20,1);//{Default = 11 Because most traders
use 10}
//{Green} {Start Long position when Close>Green}
Green=HHV(LLV(L,Prd1)+ATR(Prd1),Prd2);
//{Red} {Stop loss when Close<Red}
RED=LLV(HHV(H,Prd1)-ATR(Prd1),Prd2);
HaClose =EMA((O+H+L+C)/4,3);
HaOpen = AMA( Ref( HaClose, -1 ), 0.5 );
HaHigh = Max( H, Max( HaClose, HaOpen ) );
HaLow = Min( L, Min( HaClose, HaOpen ) );
Color = IIf(C>Green ,colorBrightGreen,IIf(C < RED,colorRed,colorWhite));
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 )) ));
_SECTION_END();
_SECTION_BEGIN("OsSetting");
if(Ovos)
_SECTION_END( );
_SECTION_BEGIN("TSKPPIVOT");
CHiPr = 0;
CLoPr = 9999999;
blsLong = 0;
PrevCOBar = 0;
NumBars = 0;
PrePP = 0;
PrevLowVal = 9999999;
BuySig = 0;
blsShort = 0;
PrevHiVal = 0;
blsNewCO = 0;
BarDif = 0;
KPA900Val = E_TSKPA900(Close) ;
KPAutoStopVal = E_TSKPAUTOSTOP( High,Low, Close);
if ( curBar == 0 )
CHiPr = haHigh[curBar] ;
CHiBar = curBar;
CLoPr = haLow[curBar] ;
CLoBar = curBar;
blsLong = 0;
blsShort = 0;
blsNewCO = 0;
PrePP = 0;
PrevCOBar = 0;
PrevHiVal = haHigh[curBar] ;
PrevLowVal = haLow[curBar] ;
BuySig = 0;
SellSig = 0;
blsLL = 0;
CHiPr = haHigh[CurBar] ;
ChiBar = CurBar;
CLoPr = haLow[CurBar] ;
CLoBar = CurBar;
blsLong = 1;
blsShort = 0;
blsNewCO = 1;
PrevCOBar = CurBar;
blsLong = 0;
blsShort = 1;
blsNewCO = 1;
PrevCOBar = CurBar;
if (j >=0) {
aLPivs[j] = 1;
aLoVal[j] = CLoPr;
}
PrePP = -1;
blsNewCO = 0;
CHiPr = haHigh[CurBar] ;
CHiBar = CurBar;
CLoPr = haLow[Curbar] ;
CLoBar = CurBar;
if (j >=0) {
aHPivs[j] = 1;
aHiVal[j] = CHiPr;
}
PrePP = 1;
blsNewCO = 0;
CHiPr = haHigh[CurBar] ;
CHiBar = CurBar;
CLoPr = haLow[Curbar] ;
CLoBar = CurBar;
_SECTION_END( );
_SECTION_BEGIN("TSKPMoMo");
blsLong = 0;
//tskp_fast2val1, tskp_fast2val2
dummy = E_TSKPFAST2( Open,High, Low,Close, Volume);
KPMediumUP = tskp_mediumup;
KPMediumDwn = tskp_mediumdown;
KPMediumMA = tskp_mediumma;
aHPivs = H - H;
aLPivs = L - L;
aHiVal = H - H;
aLoVal = L - L;
blsLong = 1;
aLPivs[CurBar] = 1;
aLoVal[CurBar] = Low[CurBar];
blsLong = -1;
aHPivs[Curbar] = 1;
aHiVal[Curbar] = High[Curbar] ;
blsLong= 0;
blsLong = 0;
_SECTION_END( );
_SECTION_BEGIN("Pivot");
bDraw = True;
bUseLastVis = 1;
} else {
bDraw = False;
bUseLastVis = False;
bTrace = 1;
nExploreDate = Status("rangetodate");
nCurDateNum = DN[i];
if (nCurDateNum == nExploreDate) {
nExploreBarIdx = i;
if (bDraw) {
}
aHPivs = HaHigh - HaHigh;
nHPivs = 0;
nLPivs = 0;
lastHPIdx = 0;
lastLPIdx = 0;
lastHPH = 0;
lastLPL = 0;
curPivBarIdx = 0;
nLastVisBar = LastValue(
LastValue(BarIndex( ))));
curTrend = "";
curTrend = "D";
else
curTrend = "U";
nlastVisBar- i,
nExploreBarIdx- i,
LastValue(BarIndex( ))-i));
if (curTrend == "U") {
curTrend = "D";
aLPivs[curPivBarIdx ] = 1;
aLPivLows[nLPivs] = HaLow[curPivBarIdx] ;
aLPivIdxs[nLPivs] = curPivBarIdx;
nLPivs++;
} else {
if (curTrend == "D") {
curTrend = "U";
aHPivs[curPivBarIdx ] = 1;
aHPivHighs[nHPivs] = HaHigh[curPivBarIdx ];
aHPivIdxs[nHPivs] = curPivBarIdx;
nHPivs++;
}
curBar =
nlastVisBar,
nExploreBarIdx,
LastValue(BarIndex( )))
);
lastLPIdx = aLPivIdxs[0] ;
lastLPL = aLPivLows[0] ;
lastHPIdx = aHPivIdxs[0] ;
lastHPH = aHPivHighs[0] ;
aLPivs[nLLVIdxAfterLastPiv] = 1;
aAddedLPivs[ nLLVIdxAfterLastPiv] = 1;
aLPivLows[0] = nLLVAfterLastPiv;
aLPivIdxs[0] = nLLVIdxAfterLastPiv ;
nLPivs++;
} else {
aLPivs[nLLVIdxAfterLastPiv] = 1;
aAddedLPivs[ nLLVIdxAfterLastPiv] = 1;
aLPivLows[0] = nLLVAfterLastPiv;
aLPivIdxs[0] = nLLVIdxAfterLastPiv ;
nLPivs++;
// OR lower highs
Still finding missed pivot(s). Here, the last piv is a low piv.
} else {
// -- First case, lower highs
aHPivs[nHHVIdxAfterLastPiv] = 1;
aAddedHPivs[ nHHVIdxAfterLastPiv] = 1;
aHPivHighs[0] = nHHVAfterLastPiv;
aHPivIdxs[0] = nHHVIdxAfterLastPiv ;
nHPivs++;
} else {
aHPivs[nHHVIdxAfterLastPiv] = 1;
aAddedHPivs[ nHHVIdxAfterLastPiv] = 1;
aHPivHighs[0] = nHHVAfterLastPiv;
aHPivIdxs[0] = nHHVIdxAfterLastPiv ;
nHPivs++;
}
// -- If there are at least two of each
if (bDraw) {
risk = 0;
profInc = 0;
nLeg0Pts = 0;
nLeg0Bars = 0;
nLeg0Vol = 0;
nLeg1Pts = 0;
nLeg1Bars = 0;
nLeg1Vol = 0;
nLegBarsDiff = 0;
nRtrc0Pts = 0;
nRtrc0Bars = 0;
nRtrc0Vol = 0;
nRtrc1Pts = 0;
nRtrc1Bars = 0;
nRtrc1Vol = 0;
minRtrc = 0;
maxRtrc = 0;
minLine = 0;
maxLine = 0;
triggerLine = 0;
firstProfitLine = 0;
triggerInc = 0;
triggerPrc = 0;
firstProfitPrc = 0;
retrcPrc = 0;
retrcBar = 0;
retrcBarIdx = 0;
retrcRng = 0;
aRetrcPrc = HaHigh-HaHigh;
aRetrcPrcBars = HaHigh-HaHigh;
aRetrcClose = HaClose;
retrcClose = 0;
// -- Do TCZ calcs. Arrangement of pivs very specific
tcz500 =
(aHPivHighs[ 0] -
tcz618 =
(aHPivHighs[ 0] -
tcz786 =
(aHPivHighs[ 0] -
retrcPrc = aRetrcPrc[curBar] ;
// -- bTCZLong setup?
bTCZLong = (
// -- Are retracement levels arranged in
// tcz order?
AND
AND
AND
);
//risk = 0;
tcz500 =
(aHPivHighs[ 1] -
(aHPivHighs[ 0] -
tcz786 =
(aHPivHighs[ 0] -
retrcPrc = aRetrcPrc[curBar] ;
bTCZShort = (
// tcz order?
AND
AND
AND
);
//risk = 0;
if (bTCZShort OR bTCZLong) {
if (bTCZShort) {
} else {
} else { // bLongSetup
} else {
if (bShowTCZ) {
Plot(
Plot(
Plot(
// -- if (bShowTCZ)
_SECTION_END( );
W52_High=WriteVal( HHV(H,260) ,1.2);
_SECTION_BEGIN("Fundamental data");
declara=GetFnData("LastSplitDate" );
declara1=GetFnData("DividendPayDate" ); // yahoo.format
/// Please replace "00DSEGEN" with your market index ticker and activate the codes
Cg = Foreign("00DSEGEN", "C");
Cgo= Ref(Cg,-1);
Bearg= Cg <WMA(Cg,200);
mBullg = Cg >WMA(Cg,50);
mBearg= Cg <WMA(Cg,50);
//Shortterm Bullish or Bearish
sBullg = Cg >WMA(Cg,15);
sBearg= Cg <WMA(Cg,15);
xChange1=Cg - Ref(Cg,-1);
barche1= xChange1>=0;
Comche1= xChange1<0;
xperchange1 = xChange1/100;
positivechange1 = xperchange1>0;
negativechange1 = xperchange1<0;
#include <T3_Include.afl>;
Bear= C <WMA(C,200);
//Midterm Bullish or Bearish
mBull = C >WMA(C,50);
mBear= C <WMA(C,50);
sBull = C >WMA(C,15);
sBear= C <WMA(C,15);
rc= C > EMA (C,50) AND C < EMA(C,200) AND EMA(C,50) < EMA(C,200);
ac= C > EMA (C,50) AND C > EMA(C,200) AND EMA(C,50) < EMA(C,200);
bl= C > EMA (C,50) AND C > EMA(C,200) AND EMA(C,50) > EMA(C,200);
wr= C < EMA (C,50) AND C > EMA(C,200) AND EMA(C,50) > EMA(C,200);
ds= C < EMA (C,50) AND C < EMA(C,200) AND EMA(C,50) > EMA(C,200);
br= C < EMA (C,50) AND C < EMA(C,200) AND EMA(C,50) < EMA(C,200);
//Trend Strength
_SECTION_BEGIN("JSB_Pic_DMX_ 3");
JSB_InitLib( );
_SECTION_END( );
_SECTION_BEGIN("Breakout Setting");
Buyperiods=Param("Breakout periods",5,1,100,1,1) ;
BuyBreakout= C>Ref(HHV(H,Buyperiods),-1);
_SECTION_END( );
/*
pds=5;
exitpds=5;
a1=H>=DonchianUpper;
a2=C<=DonchianLower;
pds2=15;
exitpds2=15;
d1=H>=DonchianUpper2;
d2=C<=DonchianLower2;
//PlotShapes( IIf( a1, shapeHollowSmallCir cle, shapeNone ), 11, layer = 0,
yposition = Hahigh, offset = 6);
*/
//Price Volume Breakout: close greater than last close and volume at least twice as
much 50-day MA
TB = t3(RSI(9),3)> t3(RSI(9),5) ;
TS = t3(RSI(9),3)< t3(RSI(9),5) ;
P = ParamField("Price field",-1);
EMA1=EMA(P,Periods) ;
EMA2=EMA(EMA1, Periods);
Difference=EMA1- EMA2;
ZerolagEMA=EMA1+ Difference;
//Stochastics Part
//StBuy=StochK( 9,3)>StochD(9,3,3) ;
//StSell=StochK( 9,3)<StochD(9,3,3) ;
//Stochastics Part
StochKval = StochK(10,5) ;
MB = ExRem(MB, MS);
MS = ExRem(MS, MB);
//HI=H>HIV1;
//LI=L<LIV1;
//Wad: Larry Williams Acc/Distribution Status
ad = IIf(C > Ref(C, -1), C - TRL, IIf(C < Ref(C, -1), C - TRH, 0));
WAD = Cum(ad);
pdyear1=pdyear/ 260;
//HI=H>HIV1;
//LI=L<LIV1;
//_SECTION_BEGIN("ZL W%R");
MaxGraph=10;
Period= 10;
EMA1= EMA(R,Period) ;
EMA2= EMA(EMA1,5);
Difference= EMA1 - EMA2;
PR=100-abs(ZeroLagEMA);
MoveAvg=MA(PR, 5);
_SECTION_END( );
// Find Short Term Reversals - Closing Price, Hook, Island, Key, Open-Close
by Larry Lovrencic*/
by Larry Lovrencic*/
by Larry Lovrencic*/
by Larry Lovrencic*/
by Larry Lovrencic*/
by Larry Lovrencic*/
MAp=T3(C,p);
MAk=T3(C,k);
AscCrossPrediction= Cross(C,tClose) ;
Filter=tClose<Lcoeff*C OR tClose>Ucoeff*C;
AddColumn(MAp,"MAp");
AddColumn(MAk,"MAk");
//Plot(MAp,"",7,1); //Red Line - The No. '4' designates the red color & No. '1'
//Plot(MAk,"",2,1); //Green Line - - The No. '4' designates the red color & No. '1'
expect=NOT(Filter) ;
orBuy=AscCrossPrediction;
orSell=DescCrossPrediction;
orBuy1=(C>tClose);
orSell1=(tClose>C);
_SECTION_END( );
//ROC(V,1);
Vol=(ROC(V,1) );
CP=(ROC(C,1) );
C1 = Ref(C, -1);
ud = C > O; dd = C <= O;
VType = IIf(ud,
IIf(dd,
moving averages */
parmameter window */
}
CompareBearVolume = Param("Show Bear Level", 1, 0, 1, 1);
}
if(bearvolume AND !OscillatorOnly) {
forces) */
if(convergenceOscillator OR OscillatorOnly) {
if(riseFallShadows) {
_SECTION_END( );
_SECTION_BEGIN("Haiken-Ashi");
//LISTING 1
{
TMA1 = TEMA( array, period );
TMSell1=ZLHa> ZLTyp ;
_SECTION_END( );
SetChartOptions( 0,chartShowArrows|chartShowDates );
Vrg=MA(V,Vlp) ;
St = StDev(Vrg,Vlp) ;
rg=(H-L);
arg=Wilders( rg,30);
wrb=rg>(wbf*arg);
nrb=rg<(nbf*arg);
upbar=C>Ref(C,-1);
dnbar=C<Ref(C,-1);
Cloc=C-L;
x=rg/Cloc;
x1=IIf(Cloc= 0,arg,x);
Vb=V>Vrg OR V>Ref(V,-1);
ucls=x1<2;
dcls=x1>2;
Vlcls=x1>4;
Vhcls=x1<1.35;
j=MA(C,5);
TLL=LinRegSlope( j,40) ;
Tlm=LinRegSlope( j,15) ;
tls=LinRegSlope( j,5);
mp=(H+L)/2;
_SECTION_END( );
trbar=Ref(V, -1)>Vrg AND Ref(upbar,-1) AND Ref(wrb,-1) AND dnbar AND dcls AND wrb
AND tll>0 AND H==HHV(H,10) ;
Hutbar=Ref(upbar, -1) AND Ref(V,-1)>1.5*Vrg AND dnbar AND dcls AND NOT wrb AND NOT
utbar;
tcbar=Ref(upbar, -1) AND H==HHV(H,5)AND dnbar AND (dcls OR mcls) AND V>vrg AND NOT
wrb AND NOT Hutbar ;
Scond2=Ref(scond1, -1)==0;
stdn0= tll<0 AND V>Ref(V,-1) AND Ref(dnbar,-1) AND upbar AND (ucls OR mcls) AND
tls<0 AND tlm<0;
stdn= V>Ref(V,-1) AND Ref(dnbar,-1) AND upbar AND (ucls OR mcls) AND tls<0 AND
tlm<0;
stdn1= tll<0 AND V>(vrg*1.5) AND Ref(dnbar,-1) AND upbar AND (ucls OR mcls)AND
tls<0 AND tlm<0;
lvtbar1= V<Vrg AND L<Ref(L,-1) AND ucls AND tll>0 AND tlm>0 AND wrb;
dbar= V>2*Vrg AND dcls AND upbar AND tls>0 AND tlm>0 AND NOT Scond1 AND NOT utbar;
_SECTION_END( );
_SECTION_BEGIN("Commentary");
printf ( Name() + " - " +Interval(2) + " - " + Date() +" - "
+"\n"+"High-"+H+"\n"+"Low-"+L+"\n"+"Open-"+O+"\n"+
They are normally seen after there has been weakness in the background. The market
makers know that the
down-bar that appears immediately after any up-thrust, tends to confirm the
weakness (the market makers are
certainly be paying attention to your trade AND your stops. On many upthrusts you
will find that the market will
This confirms weakness. The Smart Money is locking in Traders into poor
positions","");
WriteIf(utcond2 , "Also here the volume is high( Above Average).This is a sure sign
of weakness. The Smart Money is
with higher Volume closing near the High is a sign of strength returning. The
downtrend is likely to reverse soon. ","")+
WriteIf(stdn1,"Here the volume is very much above average. This makes this
indication more stronger. ","")+
WriteIf(bycond,"The previous bar saw strength coming back. This upbar confirms
strength. ","")+
closing down near the Low. But the Volume is normally Lower than average. this is a
sign of weakness.If the Volume is High then weakness
increases. Smart Money is trying to trap the retailers into bad position. ","")+
WriteIf(Lvtbar2,"The previous bar was a successful Test of supply. The current bar
is a upbar with higher volume. This confirms strength","")+
is Selling the stock to the late Comers rushing to Buy the stock NOT to be Left Out
Of a Bullish move. ","")+
WriteIf(Lvtbar2,"The previous bar was a successful Test of supply. The current bar
is a upbar with higher volume. This confirms strength","")+
WriteIf(tcbar,"The stock has been moving up on high volume. The current bar is a
Downbar with high volume. Indicates weakness and probably end of the up move","")+
WriteIf(nsbar,"No Supply. A no supply bar indicates supply has been removed and the
Smart money can markup the price. It is better to wait for confirmation","")+
A stopping Volume normally indicates that smart money is absorbing the supply which
is a Indication that they are Bullishon the MArket.
Brief Description:
Any up bar which closes in the middle OR Low, especially if the Volume has fallen
off,
if the market is still strong, you will normally see signs of strength in the next
few bars,
_SECTION_END( );
_SECTION_BEGIN("Mabiuts-Mr.Karthik");
_SECTION_END( );
//WEEKLY TREND
weeklyprice= C;
Cond1 = IIf(ROCMACD > Ref(ROCMACD, -5) AND Ref(ROCMACD, -5) <= Ref(ROCMACD,
-10),1,0) ;
Cond2 = IIf(ROCMACD < Ref(ROCMACD, -5) AND Ref(ROCMACD, -5) >= Ref(ROCMACD,
-10),1,0) ;
Cond4 = IIf(ROCMACD < Ref(ROCMACD, -5) AND Ref(ROCMACD, -5) <= Ref(ROCMACD,
-10),1,0) ;
_SECTION_END( );
_SECTION_BEGIN("Weekly_trend- mrtq13");
//#include <T3.AFL>;
Prd1=Param("Weekly_Period1",3,1,200,1);
Prd2=Param("Weekly_Period2",5,1,200,1);
TimeFrameSet (inWeekly);
TM = T3 ( Close , Prd1 ) ;
TimeFrameRestore( );
_SECTION_END( );
//Pivot Cal
R1 = (Pp * 2) - Low;
R3 = R1 +(High-Low);
S1 = (Pp * 2) - High;
S3 = S1 - (High-Low);
_SECTION_BEGIN("Spiker_Shadow");
C1 = Ref(C, -1);
ud = C > O; dd = C <= O;
VType = IIf(ud,
IIf(dd,
_SECTION_END( );
_SECTION_BEGIN("VSA by Mr.Karthik");
Pp1=Param("NumberOfDays",30,1,200,1) ;
Pp2=Param("VolOfDays",15,1,200,1) ;
numDays = Pp1;
dwWideSpread = 1.8;
dwNarrowSpread = 0.8;
dwSpreadMiddle = 0.5;
dwHighClose = 0.7;
dwLowClose = 0.3;
volNumDays = Pp2;
dwUltraHighVol = 2;
//
//
spread = H-L;
//
//
//
// Basic patterns...
//
upThrustBar = downClose AND H > Ref(H,-1) AND (C == L) AND downClose AND (NOT
narrowRange) ;
//noDemandBar = narrowRange AND LowVolume AND upBar AND (V < Ref(V,-1)) AND (V <
Ref(V,-2));
noSupplyBar = narrowRange AND LowVolume AND downBar AND (V < Ref(V,-1)) AND (V <
Ref(V,-2));
support = Ref(downBar, -1) AND (NOT Ref(downClose, -1)) AND Ref(highVolume, -1) AND
upBar;
//
//
_SECTION_END( );
_SECTION_BEGIN("Resistance");
supres=ParamToggle("Sup_Res","No|Yes", 0);
if(supres)
Prd1=Param("Res_Period1",2,0,200,1);
_SECTION_END( );
_SECTION_BEGIN("Support");
Prd2=Param("Sup_Period1",2,0,200,1);
Plot(SD,"Support1", colorPlum,ParamStyle("SupportLine1",styleLine|
styleNoTitle,maskAll) );
Plot(SD2,"Support2", colorPlum,ParamStyle("SupportLine2",styleLine|
styleNoTitle,maskAll) );
Plot(SD3,"Support3", colorPlum,ParamStyle("SupportLine3",styleLine|
styleNoTitle,maskAll) );
Plot(SD4,"Support4", colorPlum,ParamStyle("SupportLine4",styleLine|
styleNoTitle,maskAll) );
MSPV5 = ValueWhen(Ref( MSP,-1) == 0 AND MSP == 1, SPV1,5);
Plot(SD5,"Support5", colorPlum,ParamStyle("SupportLine5",styleLine|
styleNoTitle,maskAll) );
Plot(SD6,"Support6", colorPlum,ParamStyle("SupportLine6",styleLine|stylehidden|
styleNoTitle ,maskAll) );
_SECTION_END( );
_SECTION_BEGIN("Pivot Box");
Hi=Param("High_Period",7,1,50,1);
Lo=Param("Low_Period",7,1,50,1);
A3=Cross(A1, 0.9);
A4=Cross(A2, 0.9);
TOP=Ref(haHigh, -BarsSince( A3));
YY1=TOP;
XX1=bot;
//////////// /////
mp = Param("Multiplier",2,0.25,5,0.25);
Sumdifml=(Sumdif* 1);
Sumdifml2=(Sumdif* 1.5);
Sumdifml3=(Sumdif* mp);
_SECTION_END( );
LIVg=Ref(LLV( Low,33),1) ;
Hchg=(C-HIVg) /HIVg*100;
Lchg=(C-LIVg) /LIVg*100;
Echg=(HIVg-C) /C*100;
_SECTION_END( );
//x=Foreign("00DSEGEN","C");
//Cor=Correlation( C,x,14);
//Plot(Cor,"correlation index",colorWhite, styleLine) ;
_SECTION_END( );
// Trend Detection
MAD = DEMA(Pd,perd) ;
R[0] = C[0]>(H[0]+L[0])/ 2;
for(i=1;i<BarCount;i++ )
if( CondR[i] )
R[i] = 1;
else
if( CondF[i] )
R[i] = 0;
else
{
R[i] = R[i-1];
return R;
PrD = C;
PrL = H/2+L/2;
permax = Max(prdd,prdl) ;
Confirm = MA(C,prdm);
B[0] = 0;
for(i=1;i<BarCount;i++ )
B[i] = 1;
}
else
B[i] = 1;
else
B[i] = B[i-1] + 1;
return B;
Bs = DirBar( Rs, Fs );
_SECTION_END( );
Chg=Ref(C,-1) ;
Title = EncodeColor( colorWhite) + Title = Name() +
EncodeColor( colorYellow) +" � "+ Date() + EncodeColor( colorWhite) + " " +
EncodeColor( 55)+ "� Open= "+ EncodeColor( colorWhite) + WriteVal(O,format= 1.2) +
EncodeColor( 55)+ " � High= "+ EncodeColor( colorWhite) + WriteVal(H,format= 1.2) +
EncodeColor( 55)+ " � Low= "+ EncodeColor( colorWhite) + WriteVal(L,format= 1.2) +
EncodeColor( 55)+ " � Close= "+ WriteIf(C>
Chg,EncodeColor( colorBrightGreen ),EncodeColor( colorRed) )+ WriteVal(C,format=
1.2)+
EncodeColor( 55)+ " � Change= "+ WriteIf(C>
Chg,EncodeColor( colorBrightGreen ),EncodeColor( colorRed) )+
WriteVal(ROC( C,1),format= 1.2)+ "%"+
EncodeColor( 55)+ " � Volume: "+ EncodeColor( colorWhite) + WriteVal( V/1, 1.0 )
+"\n"+EncodeColor( 11)+"� R1="+StrFormat("%1.0f",R1)+" �
R2="+StrFormat("%1.0f",R2)+" � R3="+StrFormat("%1.0f",R3)
+EncodeColor( 02)+" � PivotPoint = "+StrFormat("%1.0f",Pp)
+EncodeColor( colorCustom11) +" � S1="+StrFormat("%1.0f",S1)+" �
S2="+StrFormat("%1.0f",S2)+" � S3="+StrFormat("%1.0f",S3)
+EncodeColor( colorOrange) +" � EMA100= "+MA(C, 100)
+EncodeColor( colorCustom12) +" � EMA200= "+MA(C, 200)
+"\n"+EncodeColor( 2)+"� WeeklyTrend: " +WriteIf(wup, EncodeColor( colorBrightGreen
)+"Up ", WriteIf(wdown, EncodeColor( colorRed) +"Down", WriteIf(wflat, EncodeColor(
colorWhite) +"Flat ","")))
+EncodeColor( colorWhite)
//+"\n"+EncodeColor( 25)+"WeeklyTrend:" + WriteIf(up,EncodeCo lor(colorBrightG
reen)+"UP",WriteIf(down, EncodeColor( colorRed) +"Down",WriteIf(flat,
EncodeColor( colorYellow) +"Flat","")))
+" "+EncodeColor( 2)+"� ShortTerm: " + WriteIf(sBull, EncodeColor( colorBrightGreen
)+"UP",WriteIf(sBear, EncodeColor( colorRed) +"Down","Neutral"))
+EncodeColor( colorWhite) + " | "
//+WriteIf(tls>0,EncodeColor( colorLime) +"UP",EncodeColor( colorRed) +"Down")
+WriteIf(Rs, EncodeColor( colorBrightGreen )+"UP",WriteIf(Fs,
EncodeColor( colorRed) +"Down","Neutral"))
+" "+EncodeColor( 2)+"� MidTerm: " + WriteIf(mBull, EncodeColor( colorBrightGreen )
+"UP",WriteIf(mBear, EncodeColor( colorRed) +"Down","Neutral"))
+EncodeColor( colorWhite) + " | "
+WriteIf(tlm>0,EncodeColor( colorLime) +"UP",EncodeColor( colorRed) +"Down")
+" "+EncodeColor( 2)+"� LongTerm: " + WriteIf(Bull, EncodeColor( colorBrightGreen )
+"UP",WriteIf(Bear, EncodeColor( colorRed) +"Down","Neutral"))
+EncodeColor( colorWhite) + " | "
+WriteIf(tll>0,EncodeColor( colorLime) +"Up",EncodeColor( colorRed) +"Down")
+"\n"+EncodeColor( colorCustom11) +"� AlligatorJaw = " +
Ref(Wilders( (H+L)/2,13) ,-8)
+" "+EncodeColor( colorRed) +"� AlligatorTeeth = "+ Ref(Wilders( (H+L)/2,8) , -5)
+" "+EncodeColor( colorBrightGreen )+"� AlligatorLips = "+
Ref(Wilders( (H+L)/2,5) , -3)
+"\n"+EncodeColor( colorRose) +"� � � � � � � � � � � � � � � � � �"
+"\n"+
EncodeColor( colorYellow) + "� Status : " +
+"\n"+ EncodeColor( 49) +"� RSI: " +WriteIf(RSI( 15)>30 AND RSI(15)<70,EncodeColor(
08),WriteIf( RSI(15)<30 ,EncodeColor( 07),EncodeColor( 04))) +
WriteVal(RSI( 15),format= 1.2)
_SECTION_END( );
_SECTION_BEGIN("BW Fractal");
UpFractal= ValueWhen(
DownFractal= ValueWhen(
_SECTION_END( );
_SECTION_BEGIN("BW Alligator");
if (P=="Close")
A = C;
else
if (P=="(H+C+L)/3")
A = (H+C+L)/3;
else
A = (H+L)/2;
percentChange = 5;
ZZ = Zig(C,LastValue( PercentChange) ) ;
_SECTION_END( );
_SECTION_BEGIN("Exploration");
/*
Buy: Scan stocks only breakout..maxbreako ut (1~30%, default) and Trend is bullish
Sell: Scan stocks only breakout..maxbreako ut (1~30%, default) and Trend is bearish
*/
Inc = 0.1;
_SECTION_END( );
_SECTION_BEGIN("Name");
GfxSetOverlayMode(0);
GfxSelectFont("Tahoma", Status("pxheight")/8 );
GfxSetTextAlign( 6 );
GfxSetTextColor( ColorHSB( 42, 42, 42 ) );
GfxSetBkMode(0);
GfxTextOut( Name(), Status("pxwidth")/2, Status("pxheight")/12 );
GfxSelectFont("Tahoma", Status("pxheight")/18 );
GfxTextOut( IndustryID(1), Status("pxwidth")/2, Status("pxheight")/4 );
GfxSelectFont("Tahoma", Status("pxheight")/18 );
GfxSelectFont("Tahoma", Status("pxheight")/36 );
GfxTextOut( "Chart by TonMoy", Status("pxwidth")/2, Status("pxheight")/3 );
_SECTION_END();
_SECTION_BEGIN("Graphics");
GrpPrm=Param("Graphic Space",2,-5,10);
GraphXSpace=GrpPrm;
_SECTION_END();