MetaStock™ Zone Forum & FAQ Artykuły Linki Elliott Waves EasyLanguage™ Zone

A B C D E F G H I J K L M N O P R S T U V W Y Z #

Smoothed Stochastic Expert
[snip]

> Basically, what I am trying to program the Expert to do is:
> ==BUY==
> IF THE CURRENT VALUE OF THE DBLSTOCH IS LESS THAN 40 AND GREATER THAN THE
> PREVIOUS DAYS VALUE THEN PAINT ONLY THIS BAR AS A BUY.(i.e.. the dblstoch
> is below 40 and has just turned up.)
> ==SELL==
> IF THE CURRENT VALUE OF THE DBLSTOCH IS MORE THAN 70 AND LESS THAN THE
> PREVIOUS DAYS VALUE THEN PAINT ONLY THIS BAR AS A SELL.(i.e.. the dblstoch
> is above 70 and has just turned down.)

Expert Help
To: metastock@xxxxxxxxxxxxx
Subject: Re: FW: Expert Help
From: iamken <iamken@xxxxxxxxxxxxxxx>
Date: Sat, 27 Jan 2001 19:14:02 -0500
References: <003401c084bc$256a3790$9c3ad9d1@xxxxxxxxxxxxxx>
Reply-To: metastock@xxxxxxxxxxxxx
Sender: owner-metastock@xxxxxxxxxxxxx

MP:


Smoothed Stochastic Expert

Buy Highlight:

P1:=Mov(((C-LLV(L,10))/(HHV(H,10)-LLV(L,10)))*100,3,E);
dblSto10:=Mov(((P1-LLV(P1,10))/(HHV(P1,10)-LLV(P1,10)))*100,3,E);
buy:=dblSto10<40 AND dblSto10>Ref(dblSto10,-1) AND
Ref(dblSto10,-1)<Ref(dblSto10,-2);
buy


Sell Highlight:

P1:=Mov(((C-LLV(L,10))/(HHV(H,10)-LLV(L,10)))*100,3,E);
dblSto10:=Mov(((P1-LLV(P1,10))/(HHV(P1,10)-LLV(P1,10)))*100,3,E);
sell:=dblSto10>70 AND dblSto10<Ref(dblSto10,-1) AND
Ref(dblSto10,-1)>Ref(dblSto10,-2);
sell

 

e-se-Smoothed_Stochastic_Expert.gif
 
Mark Peterman wr
Source / From: TOP
http://purebytes.com/archives/metastock/

Equis and MetaStock® and MetaStock Professional® are registered trademarks of Equis International. Achelis Binary Wave®, The DownLoader®,
Expert Advisor®, OptionScope®, Quotecenter® and Smart Charts® are trademarks of Equis International, a Thomson Reuters company.

TradeStation® Pro, TradeStation® 2000i, OptionStation®, SuperCharts®, PowerEditor® and EasyLanguage®
are registered trademarks of TradeStation Technologies, Inc. Other names and marks referred to are the property of their respective owners.

All information provided on this website is for educational purposes only. Trading involves risk, including possible loss of principal and other losses.

Ten i inne materiały na tej stronie zostały zamieszczone zostały jedynie w celach edukacyjnych, nie ponoszę żadnej odpowiedzialno¶ci za ich stosowanie.

Gra na giełdzie i rynkach walutowych (FOREX) niesie ze sob± ryzyko poważnych strat finansowych!