PureBytes Links
Trading Reference Links
|
Thank you Ronbo !!
Regards
Thomas
www.tradingbasis.com
-----Ursprüngliche Nachricht-----
Von: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] Im Auftrag
von ronbo
Gesendet: Donnerstag, 01. September 2005 17:33
An: amibroker@xxxxxxxxxxxxxxx
Betreff: RE: [amibroker] Zig-zag based on High and low possible ?
i'll suggest this one--more a pivot indicator, but it may work for what you
want.. this one by Stephane:
HP = HHVBars( High, 10 ) == 0;
LP = LLVBars( Low, 10 ) == 0;
endi = -1;
starti = -1;
dir = 0;
Title= "Pivot, "+Name()+" "+Date();
for ( i =0 ;i<BarCount ; i++)
{
VH[i]=Hp[i];
VL[i]=Lp[i];
}
for( i = BarCount-1; i >= 0; i-- )
{
if( dir == 1 && VL[i] )
{
// FillLine(ZigHilo,i, Low, endi, endval);
for( j = i; j <= endi; j++ )
{
HiLo[ j ] = Low[i] + ( j - i) * (endval-Low
[i])/( endi -i );
}
endi = i;
endval = Low[ i ];
dir = -1;
}
else if( dir == -1 && VH[i]/*HiV[ i ]*/ )
{
// FillLine(ZigHilo,i, High, endi, endval );
for( j = i; j <= endi; j++ )
{
HiLo[ j ] = High[i] + ( j - i) * (endval-High
[i])/( endi -i );
}
endi = i;
endval= High[ i ];
dir = 1;
}
else if( dir == 0 && endi == -1 && VL[i] )
{
endi = i;
endval = Low[ i ];
dir = -1;
}
else if( dir == 0 && endi == -1 && VH[i])
{
endi = i;
endval = High[ i ];
dir = 1;
}
}
for(i=0; i<BarCount;i++)
{
if(HiLo[i]<=0)
HiLo[i]= Null;
}
Plot(Hilo,"",2,1);
Plot(C,"",1,64);
GraphXSpace=2;
-----Original Message-----
From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx]On Behalf
Of Thomas Z
Sent: Thursday, September 01, 2005 2:23 AM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] Zig-zag based on High and low possible ?
Hello,
By default the zig chart can only be used by o,h,l or close.
But I want to have it based on Low at a down swing and high on up swing.
So it should change between low and high automatically.
Is there any trick here ?
Graph0 = Zig(Close,5);
Regards
Thomas
www.tradingbasis.com
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
YAHOO! GROUPS LINKS
Visit your group "amibroker" on the web.
To unsubscribe from this group, send an email to:
amibroker-unsubscribe@xxxxxxxxxxxxxxx
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.10.16/83 - Release Date: 8/26/2005
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
Yahoo! Groups Links
------------------------ Yahoo! Groups Sponsor --------------------~-->
Help Sudanese refugees rebuild their lives through GlobalGiving.
http://us.click.yahoo.com/hjNroD/EbOLAA/cosFAA/GHeqlB/TM
--------------------------------------------------------------------~->
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
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
<*> To unsubscribe from this group, send an email to:
amibroker-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|