Hi Antoinette, No translation from MS code necessary. If you are a registered user, you may get Sylvain Vervoort's SVAPO (Short term Volume and Price Oscillator) fully coded by Tomasz from the S&C Trader Tips section in the members area. Open the November 2007 link, for the code along with Thomaz's enhancement of adding code to draw buy and sell arrows automatically.
Peace and Justice --- Patrick ----- Original Message ----- From: antoinettephewitt To: [email protected] Sent: Sunday, February 21, 2010 8:15 PM Subject: [amibroker] Help - Can someone translate this from MetaStock? haOpen:=(Ref((O+H+L+C)/4,-1) + PREV)/2; haCl:=((O+H+L+C)/4+haOpen+Max(H,haOpen)+Min(L,haOpen))/4; period:= Input("SVAPO period :", 2, 20, 8); cutoff:= Input("Minimum %o price change :",0.0,10,1); devH:= Input("Standard Deviation High :", 0.1, 5, 1.5); devL:= Input("Standard Deviation Low :", 0.1, 5, 1.3); stdevper:= Input("Standard Deviation Period :", 1, 200, 100); haC:=Tema(haCl,period/1.6); vave:=Ref(Mov(V,period*5,S),-1); vmax:=vave*2; vc:=If(V<vmax,V,vmax); vtr:=Tema(LinRegSlope(V,period),period); SVAPO:=Tema(Sum(If(haC>(Ref(haC,-1)*(1+cutoff/1000)) AND Alert(vtr>=Ref(vtr,-1),2), vc, If(haC<(Ref(haC,-1)*(1-cutoff/1000)) AND Alert(vtr>Ref(vtr,-1),2),-vc,0)),period)/(vave+1),period); devH*Stdev(SVAPO,stdevper); -devL*Stdev(SVAPO,stdevper); zeroref:=0; zeroref; SVAPO ------------------------------------ **** IMPORTANT PLEASE READ **** This group is for the discussion between users only. This is *NOT* technical support channel. TO GET TECHNICAL SUPPORT send an e-mail directly to SUPPORT {at} amibroker.com TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at http://www.amibroker.com/feedback/ (submissions sent via other channels won't be considered) For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG: http://www.amibroker.com/devlog/ Yahoo! Groups Links
