PureBytes Links
Trading Reference Links
|
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
---
|