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

RE: [amibroker] Buy and Sell arrows



PureBytes Links

Trading Reference Links


 I use 
alerts in such a manner:
<FONT color=#0000ff 
size=2> 
<FONT face="Courier New" color=#008000 
size=1>/* Short Term Reversal Signals with alerts by Larry 
Lovrencic */
<FONT face="Courier New" color=#008000 
size=1>
/*Closing Price Reversals*/
CPRbuy=O<(L+<FONT 
face="Courier New">0.2<FONT 
size=1>*(H-L)) AND C>(H-<FONT 
color=#ff00ff size=1>0.2*(H-L)) AND 
H<Ref<FONT 
size=1>(H,-1) 
AND L<Ref<FONT 
size=1>(L,-1) 
AND C>Ref<FONT 
size=1>(C,-1<FONT 
size=1>);
CPRsell=O>(L+<FONT 
face="Courier New">0.8<FONT 
size=1>*(H-L)) AND C<(H-<FONT 
color=#ff00ff size=1>0.8*(H-L)) AND 
H>Ref<FONT 
size=1>(H,-1) 
AND L>Ref<FONT 
size=1>(L,-1) 
AND C<Ref<FONT 
size=1>(C,-1<FONT 
size=1>);
/*Hook Reversals*/
HRbuy=O<(L+<FONT 
face="Courier New">0.2<FONT 
size=1>*(H-L)) AND C>(H-<FONT 
color=#ff00ff size=1>0.2*(H-L)) AND 
H<Ref<FONT 
size=1>(H,-1) 
AND L>Ref<FONT 
size=1>(L,-1<FONT 
size=1>);
HRsell=O>(L+<FONT 
face="Courier New">0.8<FONT 
size=1>*(H-L)) AND C<(H-<FONT 
color=#ff00ff size=1>0.8*(H-L)) AND 
H<Ref<FONT 
size=1>(H,-1) 
AND L>Ref<FONT 
size=1>(L,-1<FONT 
size=1>);
/*Island Reversals*/
IRbuy=<FONT 
color=#0000ff size=1>Ref(L,-<FONT 
color=#ff00ff size=1>2)><FONT color=#0000ff 
size=1>Ref(H,-<FONT color=#ff00ff 
size=1>1) AND L><FONT color=#0000ff 
size=1>Ref(H,-<FONT color=#ff00ff 
size=1>1); 
IRsell=<FONT 
color=#0000ff size=1>Ref(H,-<FONT 
color=#ff00ff size=1>2)<<FONT color=#0000ff 
size=1>Ref(L,-<FONT color=#ff00ff 
size=1>1) AND H<<FONT color=#0000ff 
size=1>Ref(L,-<FONT color=#ff00ff 
size=1>1);<FONT face="Courier New" 
color=#008000 size=1>
/*Key Reversals*/
KRbuy=O<<FONT 
face="Courier New">Ref<FONT 
size=1>(C,-1) 
AND L<Ref<FONT 
size=1>(L,-1) 
AND C>Ref<FONT 
size=1>(H,-1<FONT 
size=1>);
KRsell=O><FONT 
face="Courier New">Ref<FONT 
size=1>(C,-1) 
AND H>Ref<FONT 
size=1>(H,-1) 
AND C<Ref<FONT 
size=1>(L,-1<FONT 
size=1>);
/*Open Close Reversals*/
OCRbuy=O<(L+<FONT 
face="Courier New">0.2<FONT 
size=1>*(H-L)) AND C>(H-<FONT 
color=#ff00ff size=1>0.2*(H-L)) AND 
H<Ref<FONT 
size=1>(H,-1) 
AND L<Ref<FONT 
size=1>(L,-1) 
AND C<Ref<FONT 
size=1>(C,-1<FONT 
size=1>);
OCRsell=O>(L+<FONT 
face="Courier New">0.8<FONT 
size=1>*(H-L)) AND C<(H-<FONT 
color=#ff00ff size=1>0.8*(H-L)) AND 
H>Ref<FONT 
size=1>(H,-1) 
AND L>Ref<FONT 
size=1>(L,-1) 
AND C>Ref<FONT 
size=1>(C,-1<FONT 
size=1>);
/*Pivot Point Reversals*/
PPRbuy=<FONT 
color=#0000ff size=1>Ref(L,-<FONT 
color=#ff00ff size=1>1)<<FONT color=#0000ff 
size=1>Ref(L,-<FONT color=#ff00ff 
size=1>2) AND <FONT color=#0000ff 
size=1>Ref(L,-<FONT color=#ff00ff 
size=1>1)<L AND C><FONT 
color=#0000ff size=1>Ref(H,-<FONT 
color=#ff00ff size=1>1<FONT 
face="Courier New">);
PPRsell=<FONT 
color=#0000ff size=1>Ref(H,-<FONT 
color=#ff00ff size=1>1)><FONT color=#0000ff 
size=1>Ref(H,-<FONT color=#ff00ff 
size=1>2) AND <FONT color=#0000ff 
size=1>Ref(H,-<FONT color=#ff00ff 
size=1>1)>H AND C<<FONT 
color=#0000ff size=1>Ref(L,-<FONT 
color=#ff00ff size=1>1<FONT face="Courier New" 
size=1>);
MaxGraph<FONT 
face="Courier New">=5<FONT 
face="Courier New">;
Graph0<FONT face="Courier New" 
size=1> = Close;
Graph0Style<FONT 
face="Courier New"> = <FONT face="Courier New" 
color=#ff00ff>128;
Graph0Color<FONT 
face="Courier New">=1<FONT 
face="Courier New">;
Graph3<FONT 
face="Courier New">=H*<FONT face="Courier New" 
color=#ff00ff>1.005;<SPAN 
class=210103622-25112001> /* Alerts 
*/
Graph3Style<FONT 
face="Courier New">=4<FONT 
size=1>+8+<FONT 
size=1>16+512<FONT 
face="Courier New">; <FONT 
color=#008000>/* Alerts */
graphxspace=<FONT 
size=1>5;<SPAN 
class=210103622-25112001> 
<FONT 
face="Courier New">Graph0BarColor<FONT 
size=1> = IIf( CPRbuy, <FONT 
size=1>8, IIf( 
CPRsell,4, <FONT 
size=1>IIf( HRbuy,10<FONT 
size=1>, IIf( HRsell,<FONT 
size=1>11, IIf( 
IRbuy,3, <FONT 
size=1>IIf( IRsell,15<FONT 
size=1>, IIf( KRbuy,<FONT 
size=1>6, IIf( 
KRsell,7, <FONT 
size=1>IIf( OCRbuy,9<FONT 
size=1>, IIf( OCRsell,<FONT 
size=1>13, IIf( 
PPRbuy,16, <FONT 
size=1>IIf( PPRsell,12<FONT 
size=1>, 1<FONT 
size=1> ) ) ) ) ) ) ) ) ) ) ) ) ; <FONT 
color=#008000>/* The colors should be changed depending on your background color 
*/
<SPAN 
class=210103622-25112001><FONT face="Courier New" 
size=1>Graph3BarColor = 
IIf(CPRbuy, 
8, IIf<FONT 
size=1>( CPRsell,4, <FONT 
size=1>IIf( HRbuy,10<FONT 
size=1>, IIf( HRsell,<FONT 
size=1>11, IIf( 
IRbuy,3, <FONT 
size=1>IIf( IRsell,15<FONT 
size=1>, IIf( KRbuy,<FONT 
size=1>6, IIf( 
KRsell,7, <FONT 
size=1>IIf( OCRbuy,9<FONT 
size=1>, IIf( OCRsell,<FONT 
size=1>13, IIf( 
PPRbuy,16, <FONT 
size=1>IIf( PPRsell,12<FONT 
size=1>, 2 ) ) 
) ) ) ) ) ) ) ) ) ) ; <FONT 
color=#008000>/* Alerts - The last color (2) should be the same as your 
background*/
ch= (Close-(<FONT face="Courier New" color=#0000ff 
size=1>Ref(Close,-<FONT 
face="Courier New" color=#ff00ff size=1>1<FONT face="CourierNew" 
size=1>)));
chpct=ch/Ref<FONT 
face="Courier New" size=1>(C,-<FONT face="Courier New" 
color=#ff00ff size=1>1)*<FONT 
face="Courier New" color=#ff00ff size=1>100<FONT face="Courier New" 
size=1>;
MA5D=MA<FONT 
face="Courier New" size=1>(C,<FONT face="Courier New" 
color=#ff00ff size=1>5);
Graph1=MA5D;
Graph1Style=<FONT face="Courier New" color=#ff00ff 
size=1>1;
Graph1Color=<FONT face="Courier New" color=#ff00ff 
size=1>4;
MA20D=MA<FONT 
face="Courier New" size=1>(C,<FONT face="Courier New" 
color=#ff00ff size=1>20);
Graph2=MA20D;
Graph2Style=<FONT face="Courier New" color=#ff00ff 
size=1>1;
Graph2Color=<FONT face="Courier New" color=#ff00ff 
size=1>5;

Title =<FONT face="Courier New" color=#0000ff 
size=1>Date()+<FONT 
face="Courier New" color=#ff00ff size=1>" "<FONT face="Courier New" 
size=1>+Name<FONT 
face="Courier New" size=1>()+<FONT face="Courier New" color=#ff00ff 
size=1>" Open"+<FONT 
face="Courier New" color=#0000ff size=1>WriteVal<FONT face="Courier New" 
size=1>(O)+" 
High"+<FONT face="Courier New" 
color=#0000ff size=1>WriteVal<FONT face="Courier New" 
size=1>(H)+" 
Low"+<FONT face="Courier New" 
color=#0000ff size=1>WriteVal<FONT face="Courier New" 
size=1>(L)+" 
Close" + <FONT face="Courier New" 
color=#0000ff size=1>WriteVal<FONT face="Courier New" 
size=1>(Graph0) + " 
Previous Close " + <FONT 
face="Courier New" color=#0000ff size=1>WriteVal<FONT face="Courier New" 
size=1>((Ref<FONT 
face="Courier New" size=1>(Graph0,-<FONT face="Courier New" 
color=#ff00ff size=1>1))) + <FONT 
face="Courier New" color=#ff00ff size=1>"Change="<FONT face="Courier New" 
size=1> + <FONT face="Courier New" color=#0000ff 
size=1>WriteVal(ch)+<FONT 
face="Courier New" color=#ff00ff size=1>" ("<FONT face="Courier New" 
size=1>+<FONT face="Courier New" color=#0000ff 
size=1>WriteVal(chpct,format=<FONT 
face="Courier New" color=#ff00ff size=1>1.2<FONT face="Courier New" 
size=1>)+"%)"<FONT 
face="Courier New" size=1>;
<A href="" 
 > <A 
 
 
href="" target=_blank> 
<A 
href="" 
target=_top> 
<BLOCKQUOTE 
>
<FONT face=Tahoma 
size=2>-----Original Message-----From: John Pyle 
[mailto:jmp23834@xxxx]Sent: Sunday, 25 November 2001 
06:01To: amibroker@xxxxxxxxxxxxxxx; Anthony 
FaragassoSubject: RE: [amibroker] Buy and Sell 
arrows
Anthony, 
 
Until Tomasz add the arrows to AFL I have been using the following 
plot.
You should substitute LtGrey with your background color and Red an Green 
with the colors of your choice.
There is nothing magic about the "close*.9", I just didn't want the line 
to go all the way into the Price graph. If you use this on something other 
than a price type indicator you can replace close with whatever your 
plotting.
 

Plot(Close*.90,<FONT color=#ff00ff 
size=1>"BS",<FONT color=#0000ff 
size=1>IIf(Buy,Green,<FONT color=#0000ff 
size=1>IIf(Sell,Red,LtGrey)),2); 
<BLOCKQUOTE 
><FONT 
color=#0000ff size=2>