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

Midas Code help



PureBytes Links

Trading Reference Links

First of all, many thanks to Jim White for posting the EL code below.
  I would like to add a start time for use with intraday data. When I do so
the plot will start on the right day and time but on the following day the
plot does not continue until the start time. What I would like is for the
plot to start at the specified date and time and then be continuous from
that point forward. I have added the following to Jim's code but this
results in a non-continuous curve. I cannot get the time associated with one
date only.
   For example if I set StartTme = 1145 for 991014, the plot will begin here
but the next day the plot doesn"t start until 1145.  Any help much
appreciated.


            Input: stdate(currentdate), StartTme(1145);

var: cumpv(1), cumv(1),MIDAS((H+L)/2);
input: stdate(currentdate);
{Enter start date in yymmdd format.}

           If date >= stdate and Time >= StartTme then begin

cumpv= LOW*V+cumpv[1];
cumv= v+cumv[1];


if date>= stdate then

MIDAS = cumpv/cumv;
plot1(MIDAS,"MDS");
end;

Original  code by Jim White