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

Re: [EquisMetaStock Group] Re: SVAPO Question



PureBytes Links

Trading Reference Links

Preston,
   
  Thank You i work fine now .....

pumrysh <no_reply@xxxxxxxxxxxxxxx> wrote:
          ds2778,

It is an indicator. It has dynamic overbought and oversold zones. The 
indicator was part of an article/s which appeared in Technical 
Analysis of Stocks and Commodites magazine.

Preston


--- In equismetastock@xxxxxxxxxxxxxxx, ds2778 <no_reply@xxx> wrote:
>
> 
> Hi,
> 
> Can anybody explaian the code described here is an indicator code 
or 
> exploration?
> 
> If it's an indicator code pls do post the exploration code plsss...
> 
> ds2778
> 
> --- In equismetastock@xxxxxxxxxxxxxxx, pumrysh <no_reply@> wrote:
> >
> > Viper,
> > 
> > Try this:
> > 
> > {SVAPO METASTOCK CODE}
> > {calculate the heikin-ashi closing average haCl and get the input 
> > variables}
> > haO:= (Ref((O+H+L+ C)/4,-1) + PREV)/2;
> > haCl:= ((O+H+L+C)/4+ haO+Max(( O+H+L+C)/ 4,Max(H,haO) )+
> > Min((O+H+L+C)/4, Min(L,haO) ))/4;
> > period:= Input("SVAPO period :",2,20,8);
> > cutoff:= Input("Minimum % price change :",0,10, 1);
> > {Inputs for standard deviation bands}
> > 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);
> > {Smooth HaCl closing price}
> > haC:= Tema(haCl, period/1.6);
> > {Medium term MA of Volume to limit extremes and division factor}
> > vave:= Ref(Mov(V, period*5, S),-1);
> > vmax:= vave*2;
> > vc:= If(V < vmax,V,vmax);
> > {Basic volume trend}
> > vtr:= Tema(LinRegSlope(V,period),period);
> > {SVAPO result of price and volume}
> > 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 {end}
> > 
> > First problem was that SVAPO METASTOCK CODE must be commented out 
> as 
> > I have done above or removed altogether.
> > Second problem was that Min must be immediately followed by the 
> > paranthesis.
> > 
> > I did not get the error that you described. Your error code is 
> > usually the result of a semicolon being left out in the previous 
> > variable line. 
> > 
> > Code should work now. 
> > Hope this helps,
> > 
> > Preston
> > 
> > 
> > 
> > --- In equismetastock@xxxxxxxxxxxxxxx, Viper Black <udp1645@> 
> > wrote:
> > >
> > > Hi EveryBody,
> > > 
> > > I'm using metastock 8, when i tried to run the SVAPO code 
> below, 
> > metastock can't recognize this particular code" vtr:= Tema
> (LinRegSlope
> > ( V, period), period);" it said that LinRegSlope "This is not a 
> > recognized name, constant or operator." 
> > > Appriciate if anybody can explain what happen....or i need a 
> > higer version of metastock to run this code
> > > ***************************************
> > > 
> > > SVAPO METASTOCK CODE
> > > {calculate the heikin-ashi closing average haCl and get the 
> input 
> > > variables}
> > > haO:= (Ref((O+H+L+ C)/4,-1) + PREV)/2;
> > > haCl:= ((O+H+L+C)/4+ haO+Max(( O+H+L+C)/ 4,Max(H,haO) )+Min
> > > ((O+H+L+C)/4, Min(L,haO) ))/4;
> > > period:= Input("SVAPO period :", 2, 20, 8);
> > > cutoff:= Input("Minimum % price change :", 0, 10, 1);
> > > {Inputs for standard deviation bands}
> > > 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);
> > > {Smooth HaCl closing price}
> > > haC:= Tema(haCl, period/1.6);
> > > {Medium term MA of Volume to limit extremes and division 
factor}
> > > vave:= Ref(Mov(V, period*5, S), -1);
> > > vmax:= vave*2;
> > > vc:= If(V < vmax, V, vmax);
> > > {Basic volume trend}
> > > vtr:= Tema(LinRegSlope( V, period), period);
> > > {SVAPO result of price and volume}
> > > 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
> > > 
> > > 
> > > ---------------------------------
> > > Be a better friend, newshound, and know-it-all with Yahoo! 
> Mobile. 
> > Try it now.
> > > 
> > > [Non-text portions of this message have been removed]
> > >
> >
>



                         

       
---------------------------------
Never miss a thing.   Make Yahoo your homepage.

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



 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/equismetastock/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/equismetastock/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:equismetastock-digest@xxxxxxxxxxxxxxx 
    mailto:equismetastock-fullfeatured@xxxxxxxxxxxxxxx

<*> To unsubscribe from this group, send an email to:
    equismetastock-unsubscribe@xxxxxxxxxxxxxxx

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