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 #

Chandelier Exit Variation II
Re: Formula Question

· To: <metastock@xxxxxxxxxxxxx>
· Subject: Re: Formula Question
· From: "Barry Marx" <bmarx@xxxxxxxxx>
· Date: Sun, 20 Feb 2000 21:23:32 -0500
· References: <NBBBJEOJKICGFFHPBAHKAEKPDGAA.hardy@xxxxxxxxxxxxx>
· Reply-To: metastock@xxxxxxxxxxxxx
· Sender: owner-metastock@xxxxxxxxxxxxx

Below is a variation of the Chandelier Exit that I came up with. It doesn't solve the original question, but I like the way it plots better.It holds the highest value every time the stop moves up, and never moveslower unless the stop is hit, in which case its value is reset.

- Barry

Chandelier Exit Variation II

Stop1:=If( PREV < L,
{then} If(( H - 3*ATR(10) ) >= PREV,
{then} ( H - 3*ATR(10) ),
{else} PREV),
{else (L <= PREV)}
( H - 3*ATR(10) ));

Stop2:=If( PREV < L,
{then} If(( C - 2.5*ATR(10) ) >= PREV,
{then} ( C - 2.5*ATR(10) ),
{else} PREV),
{else (L <= PREV)}
( C - 2.5*ATR(10) ));

StopVal:=If(Stop1>Stop2,Stop1,Stop2);

StopVal;

 

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!