699
edits
Line 193: | Line 193: | ||
master_mp = IntPortion( value1 / ( value33 * bigpointvalue) );</syntaxhighlight> | master_mp = IntPortion( value1 / ( value33 * bigpointvalue) );</syntaxhighlight> | ||
Current position of the instrument: | |||
<syntaxhighlight>my_mp = currentcontracts*marketposition;</syntaxhighlight> | <syntaxhighlight>my_mp = currentcontracts*marketposition;</syntaxhighlight> | ||
Line 203: | Line 203: | ||
end;</syntaxhighlight> | end;</syntaxhighlight> | ||
We’ll check if the main | We’ll check if the main position of the instrument has closed: | ||
<syntaxhighlight>if 0 = value1 then begin // need to close position | <syntaxhighlight>if 0 = value1 then begin // need to close position |