PureBytes Links
Trading Reference Links
|
dumping end of bar is easy.
vars: mpos ( 0 ), { marketposition }
mypath ( "c:\tssignals\" ), { directory }
path ( "" ), { path to dump alerts }
signal ("" ), { signal }
mydata ( "" ); { signal string }
{ put this after all signals }
mpos = marketpositon;
if mpos <> mpos [1] then begin
if mpos = 1 then
signal = "Buy"
else
if mpos = - 1 then
signal = "Sell"
else
if mpos = 0 and mpos[1] = -1 then
signal = "ExitShort"
else
if mpos = 0 and mpos[1] = 1 then
signal = "ExitLong";
{ build full path }
path =mypath+numtostr( date,0 )+".txt";
mydata = signal+","+GetSymbolName+","+NumToStr(Date,0)+","
+NumToStr(Time,0)+","+NumToStr(entryprice,3)+","+"whateveryouwant"+newline;
{ write bars to file }
FileAppend( path, mydata);
print ( printer, mydata ); { will send it to printer }
end;
somthing like that. easy, but i trying intrabar it's getting kinda messy.
thanks for the reference to access database, that might be the best
solution,
a vb app reading that file and printing...
bilo.
----- Original Message -----
From: Alan Courchene <positionsize1@xxxxxxxxx>
To: Bilo Selhi <citadel@xxxxxxxxxxxx>; <omega-list@xxxxxxxxxx>
Sent: Monday, February 19, 2001 6:42 PM
Subject: Re: problem tying to print orders in real time to a printer.
> Hello Bilo,
>
> >my system generates an order within
> >that bar ( intrabar ) and i want to send that order
> >to a file with fileappend and print it to printer
> >with print ( printer, ... ) how can i possibly do
> >that not on end of bar but intrabar ( on that
> >tick )? i can easily do that on close of the bar..
>
>
> I would love to be able to do this to a text file in
> place of a printer and With each new signal,
> fileappend would update the same text file. The end of
> bar would be just fine.
> Would you mind posting the code required to do this
> end of bar? I have not been able to find the proper
> syntax that would print the order info that you would
> view in the atcc generated by a system.
>
>
>
> > another question: is there anybody out that who has
> > been able to tap into
> > order part of atcc and access those orders thru an
> > api/dll, please.
> > thanks.
> > bilo.
>
> Not sure if this will be helpful to you but
> In TS2KI the text generated by the atcc is kept in a
> file named Alerts11.mdb and the file is kept in the
> mywork subdirectory.It has tables for
> ActiveOrders,Alerts,CanceledOrders,FilledOrders,
> MessageLog,OpenPositions as well as all the same
> tables for the Workspace assistant generated Agerts
> ie: WA_ActiveOrders etc. All you need is MS Access to
> view its contents.
>
> BTW: I see your with adelphia. Fl by Chance?
> Do you use Powerlink?
>
>
> Regards,
>
> Alan C.
>
|