PureBytes Links
Trading Reference Links
|
Actually ....
you could had a global variable in 'Pager_DefaultName' ... as ...
"computername,filename,testnumber,whatever"
which would be like 4 different variables that you could seperate using the
string manipulation commands in the help dictionary. If anyone with string
experience and a few minutes to spare could you post an example for
everyone....
:O)
Cheers
Cameron
-----Original Message-----
From: c [mailto:camacazi@xxxxxxxxxxx]
Sent: Wednesday, February 18, 2004 9:33 AM
To: omega-list@xxxxxxxxxx
Subject: Easy tip ...Read only global variable
Hi all
I have a little tip to share with the group.
If you need a fixed variable to use on every strategy you can use the pager
name under
"file" , "desktop options" , "messaging" using the field called 'message
recipient' as your global variable.
i have set this as my 'computername' so i know which computer my workspace
is on.
Then in my easylanguage code i did this as an axample
FileAppend(filename,Pager_DefaultName+","); 'here is my global
variable
FileAppend(filename,getSymbolName+",");
FileAppend(filename,getSystemName+",");
FileAppend(filename,numtostr(GrossLoss,0)+",");
FileAppend(filename,numtostr(GrossProfit,0)+",");
FileAppend(filename,numtostr(NetProfit,0)+",");
FileAppend(filename,numtostr(MaxiDDrawDown,0)+",");
FileAppend(filename,numtostr(PercentProfit,0)+",");
Another use could be to ummmmmmm use it as the filename so every strategy
prints to the same filename for ummmmmm an example like printing out all buy
and sell orders to the same filename....or for another uses you can think
of.
Its seems a bit clunky but you only have to change it once in one spot and
all your strategies then take on the new variable change instantly.
Your milage may vary
Cheers
Cameron
---
---
---
|