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

Re: [EquisMetaStock Group] Re: Automatic Support and Resistance



PureBytes Links

Trading Reference Links

Thanks, but it still didn't work.
 
I'm wondering what the "1" is there for anyways in the WSO code. And the other indicators S1-S6 don't show up on the charts.

--- On Fri, 10/31/08, pumrysh <no_reply@xxxxxxxxxxxxxxx> wrote:
From: pumrysh <no_reply@xxxxxxxxxxxxxxx>
Subject: [EquisMetaStock Group] Re: Automatic Support and Resistance
To: equismetastock@xxxxxxxxxxxxxxx
Date: Friday, October 31, 2008, 1:22 PM

Big,

Its not in metastock lanquage. Try this:

{WSO}
S1:= IF(Ref(LOW,- 4)=LLV(LOW, 9),Ref(LOW, -4),PREVIOUS) ;
S2:= IF(Fml("S1") =Ref(Fml( "S1"),-1) ,PREVIOUS, Ref(Fml(" S1"),-1)) ;
S3:= IF(Fml("S1") =Ref(Fml( "S1"),-1) ,PREVIOUS, Ref(Fml(" S2"),-1)) ;
S4:= IF(Fml("S1") =Ref(Fml( "S1"),-1) ,PREVIOUS, Ref(Fml(" S3"),-1)) ;
S5:= IF(Fml("S1") =Ref(Fml( "S1"),-1) ,PREVIOUS, Ref(Fml(" S4"),-1)) ;
S6:= IF(Fml("S1") =Ref(Fml( "S1"),-1) ,PREVIOUS, Ref(Fml(" S5"),-1)) ;
WSO:=
100*(1­(Int(Fml( "S1")/CLOSE) +Int(Fml( "S2")/CLOSE) +Int(Fml( "S3")/CLOSE)
+Int(Fml("S4" )/CLOSE) +Int(Fml("S5" )/CLOSE)+ Int(Fml(" S6")/CLOSE) )/6);
WSO; {end}

{WRO}
R1:= IF(Ref(HIGH, -4)=HHV(HIGH, 9),Ref(HIGH, -4),PREVIOUS) ;
R2:= IF(Fml("R1") =Ref(Fml( "R1"),-1) ,PREVIOUS, Ref(Fml(" R1"),-1)) ;
R3:= IF(Fml("R1") =Ref(Fml( "R1"),-1) ,PREVIOUS, Ref(Fml(" R2"),-1)) ;
R4:= IF(Fml("R1") =Ref(Fml( "R1"),-1) ,PREVIOUS, Ref(Fml(" R3"),-1)) ;
R5:= IF(Fml("R1") =Ref(Fml( "R1"),-1) ,PREVIOUS, Ref(Fml(" R4"),-1)) ;
R6:= IF(Fml("R1") =Ref(Fml( "R1"),-1) ,PREVIOUS, Ref(Fml(" R5"),-1)) ;
WRO:=
100*(1­(Int(Fml( "R1")/CLOSE) +Int(Fml( "R2")/CLOSE) +Int(Fml
("R3")/CLOSE) +Int(Fml( "R4")/CLOSE) +Int(Fml("R5" )/CLOSE)+ Int(Fml
("R6")/CLOSE) )/6);
WRO; {end}

Preston

--- In equismetastock@ yahoogroups. com, "Big Papa"
<denver69692002@ ...> wrote:
>
> I found the article about Automatic Support and Resistance:
> Indicators
>
> ------------ --------- --------- --------- --------- --------- -
--
> -----------
>
> S1: IF(Ref(LOW,- 4)=LLV(LOW, 9),Ref(LOW, -4),PREVIOUS)
> S2: IF(Fml("S1") =Ref(Fml( "S1"),-1) ,PREVIOUS, Ref(Fml(" S1"),-1))
> S3: IF(Fml("S1") =Ref(Fml( "S1"),-1) ,PREVIOUS, Ref(Fml(" S2"),-1))
> S4: IF(Fml("S1") =Ref(Fml( "S1"),-1) ,PREVIOUS, Ref(Fml(" S3"),-1))
> S5: IF(Fml("S1") =Ref(Fml( "S1"),-1) ,PREVIOUS, Ref(Fml(" S4"),-1))
> S6: IF(Fml("S1") =Ref(Fml( "S1"),-1) ,PREVIOUS, Ref(Fml(" S5"),-1))
> WSO:
> 100*(1­(Int(Fml( "S1")/CLOSE) +Int(Fml( "S2")/CLOSE) +Int(Fml
("S3")/CLOSE)
> +Int(Fml("S4" )/CLOSE) +Int(Fml("S5" )/CLOSE)+ Int(Fml
("S6")/CLOSE) )/6)
> R1: IF(Ref(HIGH, -4)=HHV(HIGH, 9),Ref(HIGH, -4),PREVIOUS)
> R2: IF(Fml("R1") =Ref(Fml( "R1"),-1) ,PREVIOUS, Ref(Fml(" R1"),-1))
> R3: IF(Fml("R1") =Ref(Fml( "R1"),-1) ,PREVIOUS, Ref(Fml(" R2"),-1))
> R4: IF(Fml("R1") =Ref(Fml( "R1"),-1) ,PREVIOUS, Ref(Fml(" R3"),-1))
> R5: IF(Fml("R1") =Ref(Fml( "R1"),-1) ,PREVIOUS, Ref(Fml(" R4"),-1))
> R6: IF(Fml("R1") =Ref(Fml( "R1"),-1) ,PREVIOUS, Ref(Fml(" R5"),-1))
> WRO:
> 100*(1­(Int(Fml( "R1")/CLOSE) +Int(Fml( "R2")/CLOSE) +Int(Fml
> ("R3")/CLOSE) +Int(Fml( "R4")/CLOSE) +Int(Fml("R5" )/CLOSE)+ Int(Fml
> ("R6")/CLOSE) )/6)
>
> As I input it in, I made 6 different indicators, S1-S6, and that
is
> all fine. But when I go to put in the WSO as another indicator, it
> rejects it as is. It says it is an invalid function name, and the
> cursor goes to the "1" right after the 100*(.
> What am I doing wrong? Thanks.
>


__._,_.___

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___