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

RE: [amibroker] Nasdaq Composite



PureBytes Links

Trading Reference Links

Hi Bruiser,

 

Try changing your Buy and Sell lines near the end to below (completes the
EMA and removes an erroneous comma):

 

Buy = Cross( VFI, EMA( VFI, 7 ) ); 

Sell = Cross( EMA( VFI, 7 ), VFI );

 

Regards,


Gordon Sutherland

 

-----Original Message-----
From: bruiserbbq [mailto:bruiserbbq@xxxxxxxxxxxx] 
Sent: Wednesday, 18 August 2004 1:57 p.m.
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 Sponsor



ADVERTISEMENT
 
<http://us.ard.yahoo.com/SIG=129dp9f2q/M=298184.5285298.6392945.3001176/D=gr
oups/S=1705632198:HM/EXP=1092880626/A=2164331/R=0/SIG=11eaelai9/*http:/www.n
etflix.com/Default?mqso=60183351> click here


 
<http://us.adserver.yahoo.com/l?M=298184.5285298.6392945.3001176/D=groups/S=
:HM/A=2164331/rand=442991238> 

 

  _____  

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
<mailto:amibroker-unsubscribe@xxxxxxxxxxxxxxx?subject=Unsubscribe> 
  

*         Your use of Yahoo! Groups is subject to the Yahoo! Terms of
<http://docs.yahoo.com/info/terms/>  Service. 



[Non-text portions of this message have been removed]



------------------------ 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/