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

Re: Dynamic Multiple Time Frames



PureBytes Links

Trading Reference Links

<x-html><!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
<HTML>
<HEAD>

<META content=text/html;charset=iso-8859-1 http-equiv=Content-Type>
<META content='"MSHTML 4.72.3110.7"' name=GENERATOR>
</HEAD>
<BODY>
<DIV><FONT color=#000000 size=2>I have attached a .GIF file to illustrate how 
each indicator should</FONT></DIV>
<DIV><FONT color=#000000 size=2></FONT><FONT size=2>look. NOTE: the color of the 
arrows will correspond with the </FONT></DIV>
<DIV><FONT size=2>indicator color.</FONT></DIV>
<DIV><FONT size=2><IMG align=baseline alt="" border=0 hspace=0 
src="cid:005f01be3bf5$cb40cb00$bed1fed0@xxxxxxxxxxxxxxxxx";></FONT></DIV>
<DIV><BR>&nbsp; Best wishes,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Adam 
Hefner.<BR>&nbsp;VonHef@xxxxxxxxxx</DIV>
<DIV>&nbsp;</DIV>
<DIV>-------------------------------------</DIV>
<DIV><FONT face=Arial size=2>-----Original Message-----<BR>From: Adam Hefner 
&lt;VonHef@xxxxxxxxxxxxx&gt;<BR>To: 
MetaStock &lt;<A 
href="mailto:metastock@xxxxxxxxxxxxx";>metastock@xxxxxxxxxxxxx</A>&gt;<BR>Date: 
Saturday, January 09, 1999 11:05 AM<BR>Subject: Dynamic Multiple Time 
Frames<BR><BR></DIV></FONT>&gt;To Chuck and anyone else who is 
interested,<BR>&gt;The missing day (Holidays) problem with my 
formula<BR>&gt;turned out to be more of a problem than I 
anticipated.<BR>&gt;Since I completely revised two of the codes, I am 
posting<BR>&gt;the complete set again. These are coded for end-of-day<BR>&gt;use 
only. Please discard previous versions to this 
(1-9-99)<BR>&gt;post.<BR>&gt;<BR>&gt;{Fibonacci Trader - Fixed Balance 
Point}<BR>&gt;&nbsp; {NOTE: under Color/Style options, 
change<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; plot to last 
&quot;style&quot; 
option}<BR>&gt;<BR>&gt;Mc1:=BarsSince(DayOfWeek()=1);<BR>&gt;Fc1:=BarsSince(DayOfWeek()=5);<BR>&gt;Fc2:=Ref(BarsSince(DayOfWeek()=5),-1)-1;<BR>&gt;{Fixed 
Balance Point Calculation}<BR>&gt;FBC:=If(Mc1=0 AND 
Fc1&gt;2,<BR>&gt;&nbsp;&nbsp;&nbsp; 
{then}(Ref(HHV(H,LastValue(mc1)),-1)+<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
Ref(LLV(L,LastValue(Mc1)),-1)+<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
Ref(C,-1))/3,<BR>&gt;&nbsp;&nbsp;&nbsp; {else}If(Fc1=0 AND 
Mc1&gt;5,<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
{then}(HHV(H,LastValue(Fc2))+<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
LLV(L,LastValue(Fc2))+C)/3,<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
{else}If(Fc1=0,<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
{then}(HHV(H,LastValue(Mc1))+<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
LLV(L,LastValue(Mc1))+C)/3,<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
{else}0)));<BR>&gt;{Fixed Balance Point 
Plot}<BR>&gt;FBP:=ValueWhen(1,FBC&gt;0,FBC);<BR>&gt;FBP;<BR>&gt;<BR>&gt;&nbsp; 
{Fibonacci Trader- Support &amp; Resistance}<BR>&gt;&nbsp; {NOTE: under 
Color/Style options, 
change<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; plot to last 
&quot;style&quot; option}<BR>&gt;<BR>&gt;{Weekly Price Range 
Calculation}<BR>&gt;Mc1:=BarsSince(DayOfWeek()=1);<BR>&gt;Fc1:=BarsSince(DayOfWeek()=5);<BR>&gt;Fc2:=Ref(BarsSince(DayOfWeek()=5),-1)-1;<BR>&gt;WRC:=If(Mc1=0 
AND Fc1&gt;2,<BR>&gt;&nbsp;&nbsp;&nbsp; 
{then}Ref(HHV(H,LastValue(mc1)),-1)-<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
Ref(LLV(L,LastValue(Mc1)),-1),<BR>&gt;&nbsp;&nbsp;&nbsp; {else}If(Fc1=0 AND 
Mc1&gt;5,<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
{then}HHV(H,LastValue(Fc2))-<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
LLV(L,LastValue(Fc2)),<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
{else}If(Fc1=0,<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
{then}HHV(H,LastValue(Mc1))-<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
LLV(L,LastValue(Mc1)),<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
{else}0)));<BR>&gt;WRP:=ValueWhen(1,WRC&gt;0,WRC);<BR>&gt;{Resistance 
Range}<BR>&gt;RR1:= 
FmlVar(&quot;FT-FBP&quot;,&quot;FBP&quot;)+(WRP*.5);<BR>&gt;RR2:= 
FmlVar(&quot;FT-FBP&quot;,&quot;FBP&quot;)+(WRP*.618);<BR>&gt;{Support 
Range}<BR>&gt;SR1:= 
FmlVar(&quot;FT-FBP&quot;,&quot;FBP&quot;)-(WRP*.5);<BR>&gt;SR2:= 
FmlVar(&quot;FT-FBP&quot;,&quot;FBP&quot;)-(WRP*.618);<BR>&gt;{Plot 
Ranges}<BR>&gt;RR1;<BR>&gt;RR2;<BR>&gt;SR1;<BR>&gt;SR2;<BR>&gt;<BR>&gt;&nbsp; 
{Fibonacci Trader-Fixed Balance Point 
Step}<BR>&gt;<BR>&gt;FPS:=(ValueWhen(1,FmlVar(&quot;FT-FBP&quot;,&quot;FBC&quot;)&gt;0,<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; 
FmlVar(&quot;FT-FBP&quot;,&quot;FBC&quot;)) +<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; 
ValueWhen(2,FmlVar(&quot;FT-FBP&quot;,&quot;FBC&quot;)&gt;0,<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; 
FmlVar(&quot;FT-FBP&quot;,&quot;FBC&quot;)) +<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; 
ValueWhen(3,FmlVar(&quot;FT-FBP&quot;,&quot;FBC&quot;)&gt;0,<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; 
FmlVar(&quot;FT-FBP&quot;,&quot;FBC&quot;)) +<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; 
ValueWhen(4,FmlVar(&quot;FT-FBP&quot;,&quot;FBC&quot;)&gt;0,<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; 
FmlVar(&quot;FT-FBP&quot;,&quot;FBC&quot;)) +<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; 
ValueWhen(5,FmlVar(&quot;FT-FBP&quot;,&quot;FBC&quot;)&gt;0,<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; 
FmlVar(&quot;FT-FBP&quot;,&quot;FBC&quot;)))/5;<BR>&gt;FPS<BR>&gt;<BR>&gt;&nbsp; 
{Fibonacci Trader - Dynamic Balance Point}<BR>&gt;&nbsp; {Dynamic Balance Point 
Calculation}<BR>&gt;dt:=DayOfWeek();<BR>&gt;DBC:=(HighestSince(5,DayOfWeek()=dt,H)+<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; 
LowestSince(5,DayOfWeek()=dt,L)+CLOSE)/3;<BR>&gt;DBC<BR>&gt;<BR>&gt;<BR>&gt;&nbsp; 
{Fibonacci Trader-Dynamic Balance Point 
Step}<BR>&gt;<BR>&gt;DPS:=(ValueWhen(1,FmlVar(&quot;FT-DBP&quot;,&quot;DBC&quot;),<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; 
FmlVar(&quot;FT-DBP&quot;,&quot;DBC&quot;))+<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; 
ValueWhen(5,FmlVar(&quot;FT-DBP&quot;,&quot;DBC&quot;),<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; 
FmlVar(&quot;FT-DBP&quot;,&quot;DBC&quot;))+<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; 
ValueWhen(10,FmlVar(&quot;FT-DBP&quot;,&quot;DBC&quot;),<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; 
FmlVar(&quot;FT-DBP&quot;,&quot;DBC&quot;))+<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; 
ValueWhen(15,FmlVar(&quot;FT-DBP&quot;,&quot;DBC&quot;),<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; 
FmlVar(&quot;FT-DBP&quot;,&quot;DBC&quot;))+<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; 
ValueWhen(20,FmlVar(&quot;FT-DBP&quot;,&quot;DBC&quot;),<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; 
FmlVar(&quot;FT-DBP&quot;,&quot;DBC&quot;)))/5;<BR>&gt;DPS;<BR>&gt;<BR>&gt;<BR>&gt;&nbsp; 
Best wishes,<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Adam Hefner.<BR>&gt; <A 
href="mailto:VonHef@xxxxxxxxxx";>VonHef@xxxxxxxxxx</A><BR>&gt;<BR>&gt;-------------------------------------<BR>&gt;<BR>&gt;<BR>&gt;</BODY></HTML>
</x-html>
Attachment Converted: "c:\eudora\attach\Re Dynamic Multiple Time Frame.gif"