I think you can omit the "once per trade/order" block. I don't recommend it anyway, because its memory is temporary, until the EA is closed. Go to the Examples (former How To) and take a look at the example called Add to Volume (every 10 pips). I think this is what you want to do.