[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [amibroker] phantom dots



PureBytes Links

Trading Reference Links

The "phantom dots" come from open/close ticks that are plotted
with bars.
Usually traditional bar style is used to plot prices not envelopes
so these "ticks" are useful.

To visually remove them you would need to overwrite close and
open arrays because this style uses them indirectly.

In order to do so replace the following lines:
High=BBandTop(L1,PDS2,SHIFT);
Low=BBandBot(L1,PDS2,SHIFT);

With
Close=High=BBandTop(L1,PDS2,SHIFT);
Open=Low=BBandBot(L1,PDS2,SHIFT);

Caveat: all calculations using O,H,L,C prices should be
included BEFORE these arrays are overwritten.

Best regards,
Tomasz Janeczko
===============
AmiBroker - the comprehensive share manager.
http://www.amibroker.com


----- Original Message -----
From: "Anthony Faragasso" <ajf1111@xxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Monday, November 12, 2001 8:51 PM
Subject: [amibroker] phantom dots


> Tomasz;
>
> 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
>
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>


--------------------------------------------------------------------------------






--------------------------------------------------------------------------------


> /*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;
>
>
> 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","");