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 #

Stochastic Smoothed by Mark Peterman
Expert Help
To: <metastock@xxxxxxxxxxxxx>
Subject: FW: Expert Help
From: "Mark Peterman" <mpeterman@xxxxxxxxxxxxxx>
Date: Mon, 22 Jan 2001 15:41:55 -0600
Importance: Normal
Reply-To: metastock@xxxxxxxxxxxxx
Sender: owner-metastock@xxxxxxxxxxxxx

I previously had an expert designed and working correctly that would do the following:

When the custom indicator "dblstoch" (smoothed stochastic) would drop below 40 and then turn up, the price bar that cause the indicator to turn up would be painted (i.e.. a buy signal).Likewise, when this indicator rose above 70 and turned down, that bar would be painted as a sell signal.

I long ago uninstalled MetaStock and lost this expert.Now I am trying to recreate it and for the life of me cannot get the expert to work as it once did. Here is the formula for the smoothed stochastic that I am trying to use with the expert:


Stochastic Smoothed

H1:=80;
H2:=20;
H1;
H2;
P1:=Mov(((C-LLV(L,10))/(HHV(H,10)-LLV(L,10)))*100,3,E);
Mov(((P1-LLV(P1,10))/(HHV(P1,10)-LLV(P1,10)))*100,3,E)

 

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.)

Any help is appreciated.

Sincerely,

Mark Peterman

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!