I am injecting commands to a running Zorro script from a Python gui.
That means, I can scale in or scale out triggered from outside. At the moment, I have the issue that Zorro rejects this.
I found in the manual:
"Trades are automatically skipped during weekends or outside market hours, during the LookBack period, in the inactive period of SKIP or DataSplit, or when the current bar is not the end of a TimeFrame.
For trading inside a time frame, set TimeFrame = 1, enter the trade, then set TimeFrame back to its previous value."
"Commands to enter or exit trades in the run function are only executed when the TimeFrame has ended at the current bar. But trade entry, stop, or profit targets are observed at any bar period.
The run function itself is executed at any bar period, but the frame function can be used for restricting code execution to the end of the current time frame."
In my running example the barperiod=1440.
I have not set TimeFrame explicitely and I got the rejection. A TimeFrame=1,which I have also tested (which should also set to 1440 min) did not help?
Is there a way to increase/descrease the amount of the order during a bar period (that means at any time)?
Last edited by Martin_HH; 1 hour ago.