PureBytes Links
Trading Reference Links
|
After making adjustments to code, these phantom dots have appeared, I
feel they have something to do with the adjustment. What do you Think.
Anthony
/*Custom Directional Movement Indicator*/
/*with Bullish and Bearish Alerts */
/*Afl Code by Anthony Faragasso */
MaxGraph=12;
/* You can change these variables */
pds=14;
smooth=5;
L1=PDI(pds) - MDI(pds);
L2=0;
L3=MA(L1,smooth);
Graph0=L1;
Graph1=L2;
Graph2=L3;
Graph2Style=Graph0Style=1+4;
Graph1Style=4+8;
/* BANDS */
PDS2=14;
SHIFT=2;
High=BBandTop(L1,PDS2,SHIFT);
Low=BBandBot(L1,PDS2,SHIFT);
Graph4=High;
Graph5=Low;
Graph4Style =Graph5Style=128;
Graph4Color=Graph5Color=3;
Graph3=High;
Graph6=Low;
Graph3Style=Graph6Style=1+4;
Graph3Color=Graph6Color=6;
Attachment:
Description: "Title=Name()+ " CUSTOM DIRECTIONAL MOVEMENT = "+"("+WriteVal(L1,FORMAT=1.2)+") " +" SIGNAL LINE = "+"("+WriteVal(L3,FORMAT=1.2)+")"+ WriteIf(Cross( L1 , L2), " BULLISH CROSS ","")+WriteIf(Cross(L2 , L1)," BEARISH CROSS","")+WriteIf(Cross(L1,L3)," BULLISH ALERT ","")+WriteIf(Cross(L3 , L1), " BEARISH ALERT","")+WriteIf(L1 <L3, " INDICATOR CURRENTLY BEARISH","")+WriteIf(L1 > L3," INDICATOR CURRENTLY BULLISH ","")+WriteIf(L1 < Ref(L1,-1)," AND FALLING","")+WriteIf(L1>Ref(L1,-1)," AND RISING","");"
|