PureBytes Links
Trading Reference Links
|
VBABUFF, try this:
MetaStock -> Tools -> Indicator Builder -> New ->
Copy and paste complete formula between "---8<---" lines.
=======
Highest
=======
---8<-------
Highest(H)
---8<-------
Once saved, drop the indicator onto any chart.
Do the same for the "Max between two troughs" indicator.
jose '-)
http://www.metastocktools.com
--- In equismetastock@xxxxxxxxxxxxxxx, vbabuff <no_reply@xxxx> wrote:
>
> Dear Jose',
>
> Thank you for your answer. However,please forgive my question: where
> should I insert the Highest (H) command that you mention,please? My
> need would be to plot a series of Max-In-Between's (between every
> couple of troughs) for the entire period loaded, rather than a
> single point. Can you please clarify?
>
> Many thanks for your patience!
>
> VBABUFF
>
>
> --- In equismetastock@xxxxxxxxxxxxxxx, "Jose Silva"
> <josesilva22@xxxx> wrote:
>
> To calculate the "Max-In-Between" for the entire period covered by
> the loaded data array:
>
> Highest(H)
>
>
> jose '-)
> http://www.metastocktools.com
>
>
>
> --- In equismetastock@xxxxxxxxxxxxxxx, vbabuff <no_reply@xxxx>
> wrote:
>
> Hello again, Jose'.
>
> One related question: Would it be possible to extend the code
> below so that it calculates the Max-In-Between not only for a recent
> period but also for the entire period covered by the data array?
>
> Many thanks in advance.
>
> VBABUFF
>
> --- In equismetastock@xxxxxxxxxxxxxxx, "Jose Silva"
> <josesilva22@xxxx> wrote:
>
> Try this MS indicator:
>
> =======================
> Max between two troughs
> =======================
> ---8<----------------------
>
> { Maximum between last two troughs }
> { http://www.metastocktools.com }
>
> { User inputs }
> pr:=Input("Trough minimum % change",.001,100,5);
> plot:=Input("Plot: [1]Max, [2]Trough signals,
> [3]Trough zone",1,3,1);
>
> { Data array or indicator for Max search }
> x:=H;
>
> { Last 2 troughs' signals }
> tr1:=TroughBars(1,L,pr)=0;
> tr2:=tr1 AND Cum(tr1)=LastValue(Cum(tr1)-1);
> tr1:=tr1 AND Cum(tr1)=LastValue(Cum(tr1));
>
> { Trough1-Trough2 period }
> init:=Cum(IsDefined(tr1))=1;
> zone:=ValueWhen(1,tr2-tr1<>0 OR init,tr2);
>
> { Maximum High for trough period }
> Hi:=Highest(ValueWhen(1,zone {OR init},x));
>
> { Plot on price chart }
> If(plot=1,Hi,If(plot=2,tr1+tr2,zone))
>
> ---8<----------------------
>
>
> jose '-)
> http://www.metastocktools.com
>
>
>
>
> --- In equismetastock@xxxxxxxxxxxxxxx, vbabuff <no_reply@xxxx>
> wrote:
>
> Hello.
> I am trying to create a function that will calculate the maximum
> between two troughs (in the past). Unfortunately, as the HHV
> function will only accept constants as arguments, I am stuck.
> Ideally, if RP1 and RP2 are - respectively - the number of bars
> between the last two troughs T1 and T2 and today, the function
> should calculate the highest high between T1 and T2.
> Can you please help me?
>
> Many thanks in advance.
>
> VBABUFF
------------------------ Yahoo! Groups Sponsor --------------------~-->
Try Online Currency Trading with GFT. Free 50K Demo. Trade
24 Hours. Commission-Free.
http://us.click.yahoo.com/RvFikB/9M2KAA/U1CZAA/BefplB/TM
--------------------------------------------------------------------~->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/equismetastock/
<*> To unsubscribe from this group, send an email to:
equismetastock-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|