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

[amibroker] Re: referencing custom indicator



PureBytes Links

Trading Reference Links

There are a few indicators which have been posted regarding Pivots.  should
be close to the same for swings.
One i have used with good success, is in the AB web site/Indicators called
Gordon Rose.  it includes and exploration also.

I have 2 others, which came via email.  here is one by Stephane-- i added
the Title.

hth,
ron


HP = HHVBars( High, 10 ) == 0;
LP = LLVBars( Low, 10 ) == 0;

endi = -1;
starti = -1;
dir = 0;
Title= "Pivot, Stephane  "+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: traderix2003 [mailto:d.adam@xxxxxxx]
Sent: Thursday, April 08, 2004 2:58 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] indicator for swing trading


I try to develop a very simple swing trading strategy: in an up
trend, buy in a dip (downtrend, sell the rally).
When I get my set up and will buy (or sell), which is the best
indicator that could help as confirmation?

Thxs. Traderix

4
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.655 / Virus Database: 420 - Release Date: 4/8/2004



------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com.  Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/GHeqlB/TM
---------------------------------------------------------------------~->

Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.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/