PureBytes Links
Trading Reference Links
|
this is the one i use... i think u r missing a VFIEMA=
try this,
hth,
ron
//S&C june 2004 TJ
Period = Param("VFI Period", 26, 26, 1300, 1 );
Coef = 0.2;
VCoef = Param("Max. vol. cutoff", 2.5, 2.5, 50, 1 );
inter = log( Avg ) - log( Ref( Avg, -1 ) );
Vinter = StDev(inter, 30 );
Cutoff = Coef * Vinter * Close;
Vave = Ref( MA( V, Period ), -1 );
Vmax = Vave * Vcoef;
Vc = Min( V, VMax );
MF = Avg - Ref( Avg, -1 );
VCP = IIf( MF > Cutoff, VC, IIf ( MF < -Cutoff, -VC, 0 ) );
VFI = Sum( VCP , Period )/Vave;
VFI = EMA( VFI, 3 );
VFIEMA=(EMA(VFI,7));
Plot( VFI, "VFI", colorBlack, styleThick );
Plot( VFIEMA , "EMA7 of VFI", colorBrown );
Plot( 0, "", colorSeaGreen, styleNoLabel );
Plot( V, "Volume", IIf( VCP > 0, colorGreen, IIf( VCP < 0, colorRed,
colorBlue ) ),
styleHistogram | styleOwnScale | styleNoLabel );
Buy=Cross(VFI,VFIEMA);
Sell=Cross(VFIEMA,VFI);
PlotShapes(IIf(Buy,shapeUpArrow,shapeNone) ,colorBrightGreen,0,Graph0,-15);
PlotShapes(IIf(Sell,shapeDownArrow,shapeNone),colorRed,0,Graph1,-15);
AddColumn(Buy, "Buy",1.0);
-----Original Message-----
From: bruiserbbq [mailto:bruiserbbq@xxxxxxxxxxxx]
Sent: Tuesday, August 17, 2004 6:57 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] Exploration Help!
Hi gang, I'm stuck trying to code this exploration. Its a basic
cross above or below the EMA of the Volume Flow Indicator...but Its
not working. Can anyone point me in the right direction please.
Here's what I have so far:
Period = Param("VFI Period", 26, 26, 1300, 1 );
Coef = 0.2;
VCoef = Param("Max. vol. cutoff", 2.5, 2.5, 50, 1 );
inter = log( Avg ) - log( Ref( Avg, -1 ) );
Vinter = StDev(inter, 30 );
Cutoff = Coef * Vinter * Close;
Vave = Ref( MA( V, Period ), -1 );
Vmax = Vave * Vcoef;
Vc = Min( V, VMax );
MF = Avg - Ref( Avg, -1 );
VCP = IIf( MF > Cutoff, VC, IIf ( MF < -Cutoff, -VC, 0 ) );
VFI = Sum( VCP , Period )/Vave;
VFI = EMA( VFI, 3 );
Plot( VFI, "VFI", colorBlack, styleThick );
Plot( EMA( VFI, 7 ), "EMA7 of VFI", colorBrown );
Plot( V, "Volume", IIf( VCP > 0, colorGreen, IIf( VCP < 0, colorRed,
colorBlue ) ),
styleHistogram | styleOwnScale | styleNoLabel );
// VFI MA crossover
Buy = Cross( VFI, EMA );
Sell = Cross( EMA, VFI, );
Cheers Bruiser
Check AmiBroker web page at:
http://www.amibroker.com/
Check group FAQ at:
http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Yahoo! Groups Links
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.737 / Virus Database: 491 - Release Date: 8/11/2004
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.737 / Virus Database: 491 - Release Date: 8/11/2004
------------------------ Yahoo! Groups Sponsor --------------------~-->
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~->
Check AmiBroker web page at:
http://www.amibroker.com/
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/
|