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

[EquisMetaStock Group] Re: Expert Advisor



PureBytes Links

Trading Reference Links

Sathya,

>From the Help files:

SYNTAX	cross( DATA ARRAY 1, DATA ARRAY 2 )

FUNCTION	Plots a "+1" on the day that DATA ARRAY 1 crosses 
above DATA ARRAY 2.  Otherwise, "0" is plotted.

If you want to know when DATA ARRAY 1 crosses below DATA ARRAY 2, use 
the formula "cross( DATA ARRAY 2, DATA ARRAY 1)"

EXAMPLE	cross( close, mov(close,9,e) )


In your indicator there are two outputs that plot...> fish and
Ref(fish,-1) .

So you will need to write a cross function as
cross(fish,Ref(fish,-1))

Hope this helps,

Preston



--- In equismetastock@xxxxxxxxxxxxxxx, "Sathya" <prassathya@xxx> 
wrote:
>
> Hi... preston n other senior too
> how to make this below code indicator to set as Expert Advisor
> 
> {TransSignal}
> pr:=(H+L)/2;
> len:=10;
> maxh:=HHV(pr,len);
> minl:=LLV(pr,len);
> val1:=.33*2*((pr-minl)/(maxh-minl)-.5)+.67*PREV;
> value1:=If(val1>.99,.999,If(val1<-.99,-.999,val1));
> fish:=.5*Log((1+value1)/(1-value1))+.5*PREV;
> fish;
> Ref(fish,-1);
> 
> when one of the line crossing it should give a buy/sell signal
> waiting soon.....
> 
> Thanks
> sAThya
>




 
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/