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

[amibroker] help me on a problem of afl



PureBytes Links

Trading Reference Links

dear friends, I will write a function that write a trend with the 
points of the graph (peak or trough) of the same level. I read the 
book of Demark "market timing". help me becouse this function is wrong

numzigzags =0;
yy = 0;

function daicoord(Livpic)
	
		{
			do
				{		
					risult = 1;
					numzigzags++;
					y = LastValue(PeakBars
(H,1,numzigzags));
						for (Cont2 = 1; Cont2 
== Livpic; Cont2++)
						{
							if  
((LastValue(Ref(H,-y)) > LastValue(Ref(H, -y+Cont2))) AND (LastValue
(Ref(H,-y)) > LastValue(Ref(H, -y-Cont2))))
							
	{risult++;
								 if 
(risult == Livpic)
								
	yy = y;
								}
						}
				} while (y != 0);
	return yy;
	}

// Principale routine del programma
z1 = daicoord(3);

WriteVal(z1);

thank you.






------------------------ Yahoo! Groups Sponsor --------------------~--> 
Try Online Currency Trading with GFT. Free 50K Demo. Trade 
24 Hours. Commission-Free. 
http://us.click.yahoo.com/RvFikB/9M2KAA/U1CZAA/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/