PureBytes Links
Trading Reference Links
|
There are elements of my code in those formulae, but they are not mine
- I would never bother with forward referencing to determine peaks/
troughs.
jose '-)
http://www.metastocktools.com
--- In equismetastock@xxxxxxxxxxxxxxx, Gordon Suthern <hern@xxxx>
wrote:
>
> Yeah, I figured from the past few comments about the Demark
> Indicators that that would be the way this was going to end up.
> There were actually 2 Pivot Points Plus posted by you. I was looking
> at the Power Pivots in Metastock and the charts posted with these on
> the web is very similar.
> Metastock's only work with the Dow 30 as a demo. They want another
> $300.00 for the all inclusive package. Anyway here are your
> formulas;
>
> Number 1
>
> EnterLong : Pk1:=Ref(H,-1) > Ref(H,-2)
> AND Ref(H,-1) >= H;
> Tr1:=Ref(L,-1) < Ref(L,-2)
> AND Ref(L,-1) <= L;
> TroughHi1:=ValueWhen(1,Tr1,Ref(H,-1));
> PkVol1:=ValueWhen(1,Tr1,Ref(V,-1));
> Pk2:=H > Ref(H,-1) AND H >= Ref(H,+1);
> Tr2:=L < Ref(L,-1) AND L <= Ref(L,+1);
> TroughHi2:=ValueWhen(1,Tr2,H);
> PkVol2:=ValueWhen(1,Tr2,Ref(V,-1));
>
> ((C > TroughHi1
> AND V >= PkVol1
> AND BarsSince(Pk1) >= BarsSince(Tr1))
> OR (C > TroughHi2
> AND V >= PkVol2
> AND BarsSince(Pk2) >= BarsSince(Tr2)))
> AND Mov((V*(H+L+C*2)/4),5,S) >= 10000
> AND Ref(H,+1) > C
>
>
> Close Long :
>
> Pk1:=Ref(H,-1) > Ref(H,-2)
> AND Ref(H,-1) >= H;
> Tr1:=Ref(L,-1) < Ref(L,-2)
> AND Ref(L,-1) <= L;
> PeakLo1:=ValueWhen(1,Pk1,Ref(L,-1));
> Pk2:=H > Ref(H,-1) AND H >= Ref(H,+1);
> Tr2:=L < Ref(L,-1) AND L <= Ref(L,+1);
> PeakLo2:=ValueWhen(1,Pk2,L);
>
> ((C < PeakLo1
> AND BarsSince(Pk1) <= BarsSince(Tr1))
> OR (C < PeakLo2
> AND BarsSince(Pk2) <= BarsSince(Tr2)))
> AND V > Ref(V,-1)
>
> Part II
>
> EnterLong :
>
> Pk1:=Ref(H,-1) > Ref(H,-2)
> AND Ref(H,-1) >= H;
> Tr1:=Ref(L,-1) < Ref(L,-2)
> AND Ref(L,-1) <= L;
> TroughHi1:=ValueWhen(1,Tr1,Ref(H,-1));
> Pk2:=H > Ref(H,-1) AND H >= Ref(H,+1);
> Tr2:=L < Ref(L,-1) AND L <= Ref(L,+1);
> TroughHi2:=ValueWhen(1,Tr2,H);
>
> ((C > TroughHi1
> AND BarsSince(Pk1) >= BarsSince(Tr1))
> OR (C > TroughHi2
> AND BarsSince(Pk2) >= BarsSince(Tr2)))
> AND Mov((V*(H+L+C*2)/4),5,S) >= 10000
> AND Ref(H,+1) > C
>
>
> Close Long :
>
> Pk1:=Ref(H,-1) > Ref(H,-2)
> AND Ref(H,-1) >= H;
> Tr1:=Ref(L,-1) < Ref(L,-2)
> AND Ref(L,-1) <= L;
> PeakLo1:=ValueWhen(1,Pk1,Ref(L,-1));
> Pk2:=H > Ref(H,-1) AND H >= Ref(H,+1);
> Tr2:=L < Ref(L,-1) AND L <= Ref(L,+1);
> PeakLo2:=ValueWhen(1,Pk2,L);
>
> ((C < PeakLo1
> AND BarsSince(Pk1) <= BarsSince(Tr1))
> OR (C < PeakLo2
> AND BarsSince(Pk2) <= BarsSince(Tr2)))
> AND V > Ref(V,-1)
>
> Thanks again
> Gordo
>
>
>
> Jose Silva wrote:
>
> Gordon,
>
>> I have just 2 more questions. The first is about the Demark Range
>> expsansion Index that I got from Guppytraders.
>> When I installed it on Metastock, it shows up like a tight series
>> of snakes whether the stock is trending or not. Any suggestions?
>
> Yes - take it out of MetaStock, and gently place in the recycling
> bin. Flush immediately, and wash hands fastidiously.
>
>
>> The second question is about your Pivot Points plus Volume.
>
> I don't remember this indicator - post it here and I'll take a look
> at it.
>
> As for the exploration, make sure your exploration options are set
> to at least "Load 1000 Records", and not "Load Minimum Records".
>
> MetaStock -> Tools -> The Explorer -> Options -> tick "Load 1000
> Records" -> Ok.
>
>
> jose '-)
> http://www.metastocktools.com
>
>
>
> --- In equismetastock@xxxxxxxxxxxxxxx, Gordon Suthern <hern@xxxx>
> wrote:
>
> Jose, thanks for the help. I have just 2 more questions. The first
> is about the Demark Range expsansion Index that I got from
> Guppytraders.
> When I installed it on Metastock, it shows up like a tight series of
> snakes whether the stock is trending or not. Any suggestions?
> The second question is about your Pivot Points plus Volume. When I
> tried to enter it in Tools/Indicator Builder/New, it wouldn't work
> so then I tried it in New Explorations and I got the same return for
> all the stocks I ran it against-3.09%. So, I think I am doing
> something wrong there as well.
> Is your Pivot Points+ similar to Metastock's Power Pivots?
>
> OK, I guess that is 3 questions.
>
> Thanks again,
> Gordo
>
> Jose Silva wrote:
>
>
> Try this:
>
> ---8<---------------------
>
> i:=Input("Lookback periods",1,260,3);
> pds:=Input("SMA periods",1,2600,21);
>
> Hi:=HHV(H,i);
> Lo:=LLV(L,i);
>
> DeMax:=If(Hi>Ref(Hi,-1),Hi-Ref(Hi,-1),0);
> DeMin:=If(Lo<Ref(Lo,-1),Ref(Lo,-1)-Lo,0);
> den:=Mov(DeMax,pds,S)+Mov(DeMin,pds,S);
> den:=If(den=0,.000001,den);
> DMark:=Mov(DeMax,pds,S)/den*100;
> avg:=Cum(DMark)/Cum(IsDefined(DMark));
>
> avg;DMark
>
> ---8<---------------------
>
>
> jose '-)
> http://www.metastocktools.com
>
>
>
> --- In equismetastock@xxxxxxxxxxxxxxx, "kalkul17" <hern@xxxx> wrote:
>
> Hi allI am new to Metastock and this forum as well but the tech guys
> at Metastock referred me there to find the answer to this question.
> I have the syntax for the Demarker 1 but it doesn't match up with
> Metastock. Can anyone give me the Metastock for the Demarker 1 or
> maybe convert this formula for me?
>
> TIA
>
> Formula;
>
> Calculation:
>
> The value of the DeMarker for the "i" interval is calculated as
> follows:
>
> *
>
> The DeMax(i) is calculated:
> If high(i) > high(i-1) , then DeMax(i) = high(i)-high(i-1),
> otherwise DeMax(i) = 0
> *
>
> The DeMin(i) is calculated:
> If low(i) < low(i-1), then DeMin(i) = low(i-1)-low(i),
> otherwise DeMin(i) = 0
> *
>
> The value of the DeMarker is calculated as:
> DMark(i) = SMA(DeMax, N)/(SMA(DeMax, N)+SMA(DeMin, N))
>
> Where:
> SMA — Simple Moving Average;
> N — the number of periods used in the calculation.
------------------------ Yahoo! Groups Sponsor --------------------~-->
What would our lives be like without music, dance, and theater?
Donate or volunteer in the arts today at Network for Good!
http://us.click.yahoo.com/Tcy2bD/SOnJAA/cosFAA/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/
|