PureBytes Links
Trading Reference Links
|
Just realized that I did not put a check to see if a valid value
was returned by the HighD and LowD functions.
See the modification below.
clyde
{======================================================================
Indicator : BobR_HLM_HLM-1
Last Edit : 11/11/99
Provided By : Clyde Lee (c) 1997
Notes: Will plot the high, low, and mid value line for today
or for yesterday depending on selection.
======================================================================}
Inputs: Plot2Day(true); {Set to False to plot yesterday value}
Vars: Hi2Day(0),HiYDay(0),
Lo2Day(0),LoYDay(0),
Mid2Day(0),MidYDay(0);
Hi2Day=HighD(0);
HiYDay=HighD(1);
Lo2Day=LowD(0);
LoYDay=LowD(1);
Mid2Day=(Hi2Day+Lo2Day)/2;
MidYDay=(HiYDay+LoYDay)/2;
If HiYDay>0 and LoYDay>0 then begin
If Plot2Day then begin
Plot1(Hi2Day, "HI");
Plot2(Lo2Day, "LO");
Plot3(Mid2Day,"MD");
End
Else begin
Plot1(HiYDay, "HI");
Plot2(LoYDay, "LO");
Plot3(MidYDay,"MD");
End;
End;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Clyde Lee Chairman/CEO (Home of SwingMachine)
SYTECH Corporation email: <clydelee@xxxxxxx>
7910 Westglen, Suite 105 Work: (713) 783-9540
Houston, TX 77063 Fax: (713) 783-1092
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|