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 #

Range Percentage Bands by Jose Silva

From:Peter <dan217 /at\ abacho.de>
To:equismetastock /at\ yahoogroups.com <equismetastock /at\ yahoogroups.com>
Date:Saturday, April 1, 2006, 6:18:09 PM
Subject: [EquisMetaStock Group] Guppy's MMA

Just what does Guppy's MMA find when running an exploration using it.

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
From:Ron Berlin <rsb_44 /at\ hotmail.com>
To:equismetastock /at\ yahoogroups.com <equismetastock /at\ yahoogroups.com>
Date:Sunday, April 2, 2006, 12:19:02 AM
Subject: [EquisMetaStock Group] Guppy's MMA

Depends what you have in the exploration. If you explore for convergences across all the GMMAs, it functions in much the same way as BB contractions.

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
From:Bruno Flor <brunorendeiroflor /at\ yahoo.com.br>
To:equismetastock /at\ yahoogroups.com <equismetastock /at\ yahoogroups.com>
Date:Sunday, April 2, 2006, 12:53:23 AM
Subject: [EquisMetaStock Group] Creating lines at a Indicator


I wonder if anyone can help me solve this problem:

I want to create a indicator that plots the closing of security. And then it should plot 2 lines.

The value of line A should be the value of the highest 40th closing in the last 200 bars.

And the value of line B should be the value of the lowerst 40th closing in the last 200 bars.

I'm not sure if I'm being clear, so let me show you an exemple using only 10 days:

Day Close

110
29
35
46
58
66
74
82
91
103

I want a line (line A) that the 20% highest closing will be above (or equal) it: in this case the value of the line would be 9.

Line B would be one that the 20% lowerst closing will be below (or equal) it: in this case: 2.

In this case using only 10 bars when a download bar number 11, the indicator would consider only the data for the last 10 bars (it would ignore bar number 1).

Sorry about my poor English, I hope you understand my problem.

Thanks in advance.

Bruno Flor.

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
From:Jose Silva <josesilva22 /at\ yahoo.com>
To:equismetastock /at\ yahoogroups.com <equismetastock /at\ yahoogroups.com>
Date:Sunday, April 2, 2006, 8:34:46 AM
Subject: [EquisMetaStock Group] Re: Creating lines at a Indicator

Nth values in a series may involve loops, which are not available in MetaStock.For a possible solution, take a look at the "Nth Hi/Lo" athttp://www.metastocktools.com/MetaStock/NthHiLo.txt

Or perhaps this approach may be suitable:


Range Percentage Bands

{ Percentage bands within range.

CCopyright 2006 Jose Silva.
For personal use only
http://www.metastocktools.com }

{ User inputs }
pr:=Input("Top/Bottom range percent [0~50%]",
0,50,20)/100;
pds:=Input("Range lookback periods",1,2600,200);
plot:=Input("plot:[1]Range and Percentage Levels,[2]Signals",1,2,
1);

{ Data array }
x:=C;

{ Percentage levels within Hi/Lo range }
hi:=HHV(x,pds);
lo:=LLV(x,pds);
RangeTopPercent:=(hi-lo)*(1-pr)+lo;
RangeBotPercent:=(hi-lo)*pr+lo;

{ Crossover of range percentage signals }
upper:=Cross(rangeTopPercent,x);
lower:=Cross(x,rangeBotPercent);
signals:=lower-upper;

{ Overbought/sold signals }
oBought:=x>rangeTopPercent;
oSold:=x<rangeBotPercent;
odd:=Frac(Cum(1)/2)<>0;
oBoughtFill:=If(odd,oBought,0);
oSoldFill:=If(odd,oSold,0);

{ Plot on price chart, signals in own window }
If(plot=1,hi,0);
If(plot=1,lo,(oSoldFill-oBoughtFill)*.5);
If(plot=1,rangeTopPercent,(oSold-oBought)*.5);
If(plot=1,rangeBotPercent,signals)



Source / From: TOP
Metastockusers[at]yahoogroups[dot]com

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!