[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Metastockusers] Re: Daily Pivots Expert on two time frames.



PureBytes Links

Trading Reference Links

Sorry for my poor english, I'm french !

I find very interesting the "Pivot" for Intraday . However, being a
newbie with Metastock, I would like to know if it is possible to make
an exploration with this technic . I guess it is not possible to use
"input" fonction in exploration as well as in system tests. So Can you
  help me or better (but I'don't know if I dare) write for me an
exploration. I'm using 30min system and I just want to see When the
Last bar cross the Pivot point.

Thanks a lot, specially to Roy

Alain




--- In Metastockusers@xxxxxxxxxxxxxxx, <uhehs@xxxx> wrote:
> I have to clarify one thing though,
> 
> I have a layout with both a daily and60 min opened within it.  So when I
> look at the daily, I see the actual daily pivot
> [Pivot:=(Ref(H,-1)+Ref(L,-1)+Ref(C,-1))/3] and when I look at the 60
min I
> also want to see daily pivot plotted o the 60min.
> 
>  
> 
> Is that what you assume already?
> 
> If so, then changing the "M" variable like you described;  Do I
basically
> set my Long Expert to C>"M"?  And vice versa for a Short Expert symbol?
> 
>  
> 
> -----Original Message-----
> From: Roy Larsen [mailto:rlarsen@x...] 
> Sent: Wednesday, June 16, 2004 6:03 PM
> To: Metastockusers@xxxxxxxxxxxxxxx
> Subject: Re: [Metastockusers] Daily Pivots Expert on two time frames.
> 
>  
> 
> Hi Sam
> 
> Delaying the median price (variable 'M') by one bar when the chart is
> switched to daily periodicy so
> that it is gives the same results as your code below is simple enough.
> 
> > Pivot:=(Ref(H,-1)+Ref(L,-1)+Ref(C,-1))/3;
> 
> Just change the "M" plot to "ValueWhen(1+G,1,M)"
> 
> The 'G' variable is only true when the chart is set to daily
periodicy, so
> when that is the case the
> "n" parameter of ValueWhen becomes "2" instead of "1" thus giving a
1 bar
> delay.
> 
> You could also use "Ref(M,-1*G)"
> 
> Do the same thing to the other plots if you also want to delay them for
> daily periodicy.
> 
> Regards
> 
> Roy
> 
> 
>   {Daily Pivot Points}
>   {C 2004 Roy Larsen, rlarsen@xxxx}
>   {for use on intraday charts}
> A:=Input("Pivot Points - Hour of Days Last Bar"  ,0,23,16);
> B:=Input("Minute of Days Last bar",0,59,00);
> Q:=Input("Display Mode,  0=Static  1=Dynamic  2=Test",0,2,2);
>   {0=Display, update at last bar of day}
>   {1=Display, update on each new bar}
>   {2=Backtest, update on first bar of new day}
> G:=LastValue(Highest(Sum(DayOfWeek()<>ValueWhen(2,1,DayOfWeek()),5))=5);
> I:=DayOfMonth()<>ValueWhen(2,1,DayOfMonth());
> M:=G OR I;
> F:=G OR (Hour()=A AND Minute()=B);
> A:=LastValue(Cum(1)-1)=Cum(1);
> B:=LastValue(Cum(1))=Cum(1);
> J:=If(F,1,If(Alert(F,2)=0 AND M,2,0));
> J:=If(A+LastValue(J)>2 OR B+(Q=1)=2,1,J);
> J:=If(G,1,If(Q=2 OR Cum(J)<=1,M*2,J));
> Hw:=HighestSince(1,M,H);
> Hw:=ValueWhen(1,J,If(J=1,Hw,ValueWhen(2-G,1,Hw)));
> Lw:=LowestSince(1,M,L);
Lw:=ValueWhen(1,J,If(J=1,Lw,ValueWhen(2-G,1,Lw)));
> K:=ValueWhen(1,J,If(J=1,C,ValueWhen(2-G,1,C)));
> Hw:=ValueWhen(1,Hw>0,Hw);
> Lw:=ValueWhen(1,Lw>0,Lw);
> K:=ValueWhen(1,K>0,K);
> M:=(Hw+Lw+K)/3; {mid point}
> R2:=M+(Hw-Lw);
> R1:=(M*2)-Lw;
> S1:=(M*2)-Hw;
> S2:=M-(r1-s1);
> R1; R2; S1; S2;
> ValueWhen(1+G,1,M);
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> Yahoo! Groups Sponsor
> 
> 
> 
> ADVERTISEMENT
>  
>
<http://us.ard.yahoo.com/SIG=129uarq8r/M=285832.4915498.6053011.1269404/D=gr
>
oups/S=1705001779:HM/EXP=1087509785/A=2105440/R=0/SIG=14dpdlr1u/*http:/www.h
>
ouseholdfinance.com/ln/TrackingServlet?cmd_MediaCode=&fc=APS&mkt=000&mc=01PS
> YAYA004001B220000U0300L0010000000000&dest=HOME_PAGE> click here
> 
> 
>  
>
<http://us.adserver.yahoo.com/l?M=285832.4915498.6053011.1269404/D=groups/S=
> :HM/A=2105440/rand=506466456> 
> 
>  
> 
>   _____  
> 
> Yahoo! Groups Links
> 
> *         To visit your group on the web, go to:
> http://groups.yahoo.com/group/Metastockusers/
>   
> 
> *         To unsubscribe from this group, send an email to:
> Metastockusers-unsubscribe@xxxxxxxxxxxxxxx
> <mailto:Metastockusers-unsubscribe@xxxxxxxxxxxxxxx?subject=Unsubscribe> 
>   
> 
> *         Your use of Yahoo! Groups is subject to the Yahoo! Terms of
> <http://docs.yahoo.com/info/terms/>  Service.




------------------------ Yahoo! Groups Sponsor --------------------~--> 
In low income neighborhoods, 84% do not own computers.
At Network for Good, help bridge the Digital Divide!
http://us.click.yahoo.com/EpW3eD/3MnJAA/cosFAA/zMEolB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/Metastockusers/

<*> To unsubscribe from this group, send an email to:
    Metastockusers-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/