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

Re: Referencing custom indicators in back testing



PureBytes Links

Trading Reference Links

You wrote:
"if I create a custom indicator called DSS"
Well, did you create DSS first?
Example:
Suppose that DSS is the average of stochk() and stochd()
then
DSS=0.5*(STOCHK()+STOCHD());
BUY=DSS>30;
SELL=DSS>70;
--- In amibroker@xxxx, "DIMITRIS TSOKAKIS" <TSOKAKIS@xxxx> wrote:
> BUY=DSS<30 AND DSS>REF(DSS,-1);
> 
> --- In amibroker@xxxx, Yuki Taga <yukitaga@xxxx> wrote:
> > All:
> > 
> > Probably pretty simple answer, but I can't find it. How do I 
write 
> a
> > reference to my own custom indicator for a buy or sell Signal?
> > 
> > For example, if I create a custom indicator called DSS, how do I
> > write a buy formula that specifies DSS be less than 30 but higher
> > than the previous day's DSS. (I understand ref() of course, but
> > cannot seem to write my own indicator as a function in AFL that 
the
> > system will accept.)
> > 
> > Yuki ^_^
> > 
> > mailto:yukitaga@x...