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

Re: [EquisMetaStock Group] Short, Intermediate and long Term swings



PureBytes Links

Trading Reference Links

Hi Rodney,
Your code is not functioning,can you or anyone assist me
 
from:ghlee 

platt_rodney <platt_rodney@xxxxxxxxxxxx> wrote:


Good Day All
I was reading Larry Williams Book "Long Term Secrets to short term
trading". In the first chapter he describes Short, Intermediate and
long Term swing. This had me intrigued so "tried" to code this up in
metastock and is as follows:-.

I was wounding if anyone here that knows Larry's concept of swing
could have a look at this code and see if I got it completely wrong
or if you have any suggestions.

Note: I'm only a newbie to metastock and this is a fast and rough
fist go. all it dose is plot a 1 on the last bar for short-term
highs, -1 on the last bar for short- term lows, 2 on the last bar
for intermediate-term highs, -2 on the last bar for intermediate-
term lows, 3 on the last bar for long-term Highs and a -3 on the
last bar for long-term lows as per Larry's book. You know not
counting outside, inside day and so on.

Code Start -->

RSSwing:=Reaction() AND Ref(Rally(),-1);

RISwing:=(ValueWhen(1,RSSwing,ValueWhen(1,Rally(),HIGH)) < ValueWhen
(2,RSSwing,ValueWhen(1,Rally(),HIGH)) AND ValueWhen
(2,RSSwing,ValueWhen(1,Rally(),HIGH)) > ValueWhen(3,RSSwing,ValueWhen
(1,Rally(),HIGH))) AND RSSwing;

RLSwing:=(ValueWhen(1,RISwing,ValueWhen(2,RISwing,HIGH)) < ValueWhen
(2,RISwing,ValueWhen(2,RISwing,HIGH)) AND ValueWhen
(2,RISwing,ValueWhen(2,RISwing,HIGH)) > ValueWhen(3,RISwing,ValueWhen
(2,RISwing,HIGH))) AND RISwing;

SSSwing:=Rally() AND Ref(Reaction(),-1);

SISwing:=(ValueWhen(1,SSSwing,ValueWhen(1,Reaction(),LOW)) >
ValueWhen(2,SSSwing,ValueWhen(1,Reaction(),LOW)) AND ValueWhen
(2,SSSwing,ValueWhen(1,Reaction(),LOW)) < ValueWhen
(3,SSSwing,ValueWhen(1,Reaction(),LOW))) AND SSSwing;

SLSwing:=(ValueWhen(1,SISwing,ValueWhen(2,SISwing,LOW)) < ValueWhen
(2,SISwing,ValueWhen(2,SISwing,LOW)) AND ValueWhen
(2,SISwing,ValueWhen(2,SISwing,LOW)) > ValueWhen(3,SISwing,ValueWhen
(2,SISwing,LOW))) AND SISwing;

RSSwing;
RISwing * 2;
RLSwing * 3;
0 - SSSwing;
0 - SISwing * 2;
0 - SLSwing * 3;

<-- Code End.
Note: I have and only have had Metastock ver9.0 so I do not know if
some of those function work with earlier versions.

Regards,
Rodney







Yahoo! Mobile
- Download the latest ringtones, games, and more!


Yahoo! Groups Links