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

New (off course improved) PushPop.DLL



PureBytes Links

Trading Reference Links

As with all software the life cycle is limited (why do so many still use TS4
?).
Anyway there was an bug in my SpyPush Indicator

It was coded as:

MP=I_MarketPosition;
CC=I_CurrentContracts;
PUSH(ReferenceNr,DATE,TIME,MP);
PUSH(ReferenceNr+1,DATE,TIME,CC);

But on the last bar in TS the Time is actually the CLOSE time of the bar
(some time in the future).
Therefore my SpyPop signal would not pick up the trade on a tick-bar in real
time.

The correct coding is:

MP=I_MarketPosition;
CC=I_CurrentContracts;

If LastBarOnChart Then Begin
 PUSH(ReferenceNr,DATE,CLOCKhhmm(),MP);
 PUSH(ReferenceNr+1,DATE,CLOCKhhmm(),CC);
End
Else Begin
 PUSH(ReferenceNr,DATE,TIME,MP);
 PUSH(ReferenceNr+1,DATE,TIME,CC);
End;

This required to PUSH the signal with the real "actual" time.
New functions in PUSHPOP.DLL (just rename this PushPop2.DLL to PushPop.DLL):

DefineDLLFunc: "PUSHPOP.DLL", LONG, "CLOCKhhmmss"; => return the real time
in hhmmss (as a long)
DefineDLLFunc: "PUSHPOP.DLL", LONG, "CLOCKtick"; => return the real time as
tickcount (increments 18.2 times a second)
DefineDLLFunc: "PUSHPOP.DLL", LONG, "CLOCKhhmm"; => return TS compatible
format hhmm (as long)
DefineDLLFunc: "PUSHPOP.DLL", LONG, "Version"; => returns 2 for now as a
long (PushPop version nr).
Hope it is a helpfull tool.
Thanks
Robert

ps. If you missed the first version go to traders2traders.com and search for
PushPop.



===============================
Robert Linders
Orlando, FL
email: mugsnug@xxxxxxxxx
===============================

Attachment: Description: "Pushpop2.dll"