Natasha,
Maybe I am the only one,
BUT
Can you not send e-mails
with music attached to it? It does not make for a comfortable way to view
your messages
From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf Of Natasha !!
Sent: Saturday, August 06, 2005
4:27 AM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker]
Targets-sup/res
Simple mathematical formula for calculation of
basic support
and resistance values using zig to identify Tpoints.
Any
improvement upon this is most welcome.Thanks.
+++++++++++++++++++++++++++++++++++++
// Simple Math Targets -Supports/Resistances
- Natasha !!
Sen=Param("Zig",5,1,20,1) ;
PeakVal = Peak( H,
Sen ) ;
TroughVal = Trough( L,
Sen ) ;
Plot(Zig(C,Sen)," Zig " , colorBlue,styleLine)
;
Plot(C," close",colorBlack,64) ;
PivotTop = sqrt (PeakVal);
PivotBottom= sqrt (TroughVal);
ResA = (PivotTop + 1.618) ^ 2 ;
//Fib golden ratio(1.618)
ResB = (PivotBottom + 1.618) ^ 2 ;
SupportA = (PivotTop - 1.618) ^ 2 ;
SupportB = (PivotBottom - 1.618) ^ 2 ;
Plot(ResA,"ResTop",colorRed,1);
Plot(ResB,"ResBottom",colorPink,1);
Plot(SupportA,"SupTop",colorBrightGreen,1);
Plot(SupportB,"SupBottom",colorDarkGreen,1);
Filter=1;
AddColumn(PeakVal,"peak",1.2,colorGreen);
AddColumn(TroughVal,"Trough",1.2,colorRed);
AddColumn(ResA,"ResTop",1.2,colorRed);
AddColumn(ResB,"ResBot",1.2,colorPlum);
AddColumn(SupportA,"SupTop",1.2,colorGreen);
AddColumn(SupportB,"SupBottom",1.2,colorDarkGreen);
++++++++++++++++++++++++++++++++++++++++++++++++++++++
Please note that this group is for discussion between users only.
To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com
For other support material please check also:
http://www.amibroker.com/support.html
SPONSORED LINKS
YAHOO! GROUPS LINKS