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

[EquisMetaStock Group] Re: questions about this code:



PureBytes Links

Trading Reference Links

Wallace,

I'm not a fibo man but the idea with this indicator is for you to 
put in the values you want to use for your study. On the day of 
the "beginplot" the value is "1" . Knowing this we then can decide 
how many lookback periods we wish to use and allow the program to 
select the values it will use for the "hi" and "lo"  in order to 
calculate the fibo percentages. The changes to the indicator  are in 
line {1}, {2}, and {3}. In order to use the high and low of the date 
just select a lookback of 1 and it will use the high and low of the 
selected date. 

As far as the level changes,  make sure that you scale everything to 
the prices on the right of the screen and I believe this will 
resolve your problem.

Indicator is below.

Hope this helps,

Preston

   


{ Fibo Custom (off traderonline)}
j:=Input("year to begin line study",1800,3000,2002);
k:=Input("month to begin line study",1,12,1);
m:=Input("day of month to begin line study",1,31,4);
ext:=Input("Extension: 2=upward; 1=downward; 0=none",0,2,0);

{1} hlpds:=Input("HHV / LLV Lookback Periods",0,20000,100);
 
BeginPlot:=Year()=j AND Month()=k AND DayOfMonth()=m;
{2} hi:= ValueWhen(1,BeginPlot,(HHV(HIGH,hlpds)));
{3} lo:= ValueWhen(1,BeginPlot,(LLV(LOW,hlpds)));

n:=ValueWhen(1,BeginPlot,(hi-(hi-lo)*2.618));
q:=ValueWhen(1,BeginPlot,(hi-(hi-lo)*1.618));
u:=ValueWhen(1,BeginPlot,(hi-(hi-lo)*1.382));
x:=ValueWhen(1,BeginPlot,((hi-lo)*1.382)+lo);
y:=ValueWhen(1,BeginPlot,((hi-lo)*1.618)+lo);
z:=ValueWhen(1,BeginPlot,((hi-lo)*2.618)+lo);
If(ext=1,n,lo);
If(ext=1,q,lo);
If(ext=1,u,lo);
ValueWhen(1,BeginPlot,lo);
ValueWhen(1,BeginPlot,((hi-lo)*.236)+lo);
ValueWhen(1,BeginPlot,((hi-lo)*.382)+lo);
ValueWhen(1,BeginPlot,((hi-lo)*.5)+lo);
ValueWhen(1,BeginPlot,((hi-lo)*.618)+lo);
ValueWhen(1,BeginPlot,((hi-lo)*.764)+lo);
ValueWhen(1,BeginPlot,hi);
If(ext=2,x,hi);
If(ext=2,y,hi);
If(ext=2,z,hi);




--- In equismetastock@xxxxxxxxxxxxxxx, "murusprimus" <sace@xxx> 
wrote:
>
> Fibo Custom (off traderonline)
> 
> j:=Input("year to begin line study",1800,3000,2007);
> k:=Input("month to begin line study",1,12,1);
> m:=Input("day of month to begin line study",1,31,4);
> ext:=Input("Extension: 2=upward; 1=downward; 0=none",0,2,0);
> hi:=Input("high",0,20000,100);
> lo:=Input("low",0,20000,50);
> BeginPlot:=Year()=j AND Month()=k AND DayOfMonth()=m;
> n:=ValueWhen(1,BeginPlot,(hi-(hi-lo)*2.618));
> q:=ValueWhen(1,BeginPlot,(hi-(hi-lo)*1.618));
> u:=ValueWhen(1,BeginPlot,(hi-(hi-lo)*1.382));
> x:=ValueWhen(1,BeginPlot,((hi-lo)*1.382)+lo);
> y:=ValueWhen(1,BeginPlot,((hi-lo)*1.618)+lo);
> z:=ValueWhen(1,BeginPlot,((hi-lo)*2.618)+lo);
> If(ext=1,n,lo);
> If(ext=1,q,lo);
> If(ext=1,u,lo);
> ValueWhen(1,BeginPlot,lo);
> ValueWhen(1,BeginPlot,((hi-lo)*.236)+lo);
> ValueWhen(1,BeginPlot,((hi-lo)*.382)+lo);
> ValueWhen(1,BeginPlot,((hi-lo)*.5)+lo);
> ValueWhen(1,BeginPlot,((hi-lo)*.618)+lo);
> ValueWhen(1,BeginPlot,((hi-lo)*.764)+lo);
> ValueWhen(1,BeginPlot,hi);
> If(ext=2,x,hi);
> If(ext=2,y,hi);
> If(ext=2,z,hi);
> 
> why does this indicator use the LL/HH on the chart rather than 
LL/HH 
> of the date used ?
> why do the levels change when displayed price bars quantity is 
> reduced ?
> can it be fixed to use only the H/L of the date ?
> 
> Wallace
>




 
Yahoo! Groups Links

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

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/equismetastock/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:equismetastock-digest@xxxxxxxxxxxxxxx 
    mailto:equismetastock-fullfeatured@xxxxxxxxxxxxxxx

<*> 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/