How to record lotsize of last trade as GlobalVariable? New comment [Deleted] 2008.04.13 04:25 Can anybody give me a hint? I want to record the lotsize of last trade as an GlobalVariable. I want to get back the lotsize after restarting the system. // create record for dLots GlobalVariableSet (lotsizebox, Lots); // get globalVariable dLots = GlobalVariableGet (lotsizebox); What's wrong with my code? Thanks. GlobalVariables disappear? Interger (int) value in GlobalVariableSet() Using Custom Indicator in EA (MT4) Ray 2008.04.13 09:00 #1 What's wrong with my code? What you've shown looks OK. What you haven't shown, who knows? Edward Hirsch 2008.04.14 09:45 #2 Vwrestler, please look at function GlobalVariable() in Code Base -> Libraries -> OrdersSuite Revision 1. New comment
Can anybody give me a hint?
I want to record the lotsize of last trade as an GlobalVariable.
I want to get back the lotsize after restarting the system.
// create record for dLots
GlobalVariableSet (lotsizebox, Lots);
// get globalVariable
dLots = GlobalVariableGet (lotsizebox);
What's wrong with my code? Thanks.