PureBytes Links
Trading Reference Links
|
Jimmy, Peyton and Alex
Thanks for your comments. I am still a little baffled at what I am
seeing for results. It looks like on the one hand I see orders that
are put in, I have print statements in the code, but never executed even tho
the limit price is more than satisfied and then on the other hand I see
orders that look like they get executed two or three times. I am going to
read thru the Easylang guide and see if I can figured it out.Its definitely
not as simple as I would like. Now I understand why I used to repeatedly
see posts on this subject.
Thanks again
Jerry
----- Original Message -----
From: "Alex Matulich" <alex@xxxxxxxxxxxxxx>
To: <omega-list@xxxxxxxxxx>
Sent: Friday, December 12, 2003 5:54 PM
Subject: Re: How to calculate from 1st bar of the day?
> Joe,
>
> > What I want it to do is plot from that point forward, but for only
that
> >day. Then reset from the opening of the next day. A day to day function,
> >reset each day from the open.
>
> So you want a function to return a constant value throughout an
> intraday chart, changing only at the open of each day. It's not
> trivial.
>
> {Function: myfunction}
> Inputs: price(NumericSeries), b(NumericSimple);
> Vars: x(0), y(0), result(0);
> if time = FirstBarStartTime then begin
> {calculate your function based on the open}
> {make sure you do it so that your variables change ONLY within
> this section. Do not call any other series function, only simple
> functions. If you use canned functions like RSI or CCI or
> XAverage, then you must replicate that code here, and save your
> own values of previous prices for use next time this part of
> the code is executed}
> result = {whatever}
> end;
> myfunction = result;
>
|