PureBytes Links
Trading Reference Links
|
David,
After some testing, I believe that you are right and I am wrong.
Indeed it does appear the EntryPrice(1) and EntryTime(1) functions refer only to the last *closed* position, not to the last leg entered.
Perhaps there is someone on the list with some more experience with these functions who can shed some light on this question???
---- David Wieringa wrote:
> What if he has:
>
> 1) a short entry
> 2) a long entry
> 3) a pyramiding long entry
> 4) a second pyramiding long entry
>
> Then I believe, EntryTime(0) will provide the entry time of entry #2 and
> EntryTime(1) will provide the time of entry #1.
>
> What he wants is a way to find the price and time of entries 3 and 4.
>
> Since entry 2, 3 and 4 are all of the same "position", I don't think
> EntryTime or EntryPrice will be of help to him.
>
>
> At 08:52 PM 10/19/99 -0400, you wrote:
> >
> >Use EntryPrice(X) and EntryTime(X) where X = the number of positions ago
> that you wish to reference.
> >
> >Example:
> >
> >Value1 = EntryTime(0);
> >Value2 = EntryTime(1);
> >
> >These statements set the variables Value1 and Value2, respectively, to the
> times of entry of the current position (Position 0) and the position
> entered just prior to that (Position 1).
> >
> >
> >
> >
> > ---- you wrote:
> >> I need some help with the following. I use TS2000i.
> >>
> >> I have a system with a buy entry of
> >>
> >> Buy next bar at highest(H,3,) stop;
> >>
> >> There is no condition before it. It therefore buys on each bar(30
> >> minutes) when the condition is met. It buys during the middle of the bar
> >> as soon as the condion is met. So far so good.
> >>
> >> I also get the correct alert and it's posted immediately in the Tracking
> >> Center.
> >> There is a column in the tracking center that shows the price it was
> >> executed at as well as the time of execution(ie 11:43).
> >>
> >> My problem is that I need some help in coding the price and time as
> >> stated above.
> >>
> >> I also use pyrimiding so I cannot use Entryprice as this always gives the
> >> price of the first buy (I think) and not the price of the second, third,
> >> etc. buy.
> >>
> >> Also I cannot figure out the time.
> >>
> >> Thanks for your help.
> >>
> >>
> >>
> >
> >
> >
>
|