How to record lotsize of last trade as GlobalVariable?

 

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.

 

What's wrong with my code?


What you've shown looks OK. What you haven't shown, who knows?

 
Vwrestler, please look at function GlobalVariable() in Code Base -> Libraries -> OrdersSuite Revision 1.
Reason: