hi,
in a strategy I have the following code:
TRADE tradeL, tradeS;
&tradeL = enterLong(0, buyStop, middleBand[0]);
&tradeS = enterShort(0, sellStop ,middleBand[0]);
printf("\n\nLots: %g",tradeL.nLots);
printf("\nLots: %g",tradeS.nLots);
The enter function set 2 pending orders and I want to print the size of each pending order.
The script works, the strategy correctly place trades but the nLots printed is always 0.
What am I doing wrong?