- Code: Select all
valuemap.Rate = limitValue;
The limit order must be above the current market price for long (buy positions) and below the current market price for short (sell) positions.
You can also add this line to check if the limit rate is valid (you will see the value in Marketscope ->Events -> Log):
- Code: Select all
core.host:trace(limitValue);