I have read the related documentation about what I am going to ask because I don't get the point.
First question:
I have got a strategy which its main data is in TF 5min. In the script I add an extra time frame 1min. Both work on the same instrument. When I use 'FirstTickOfBar' I guess I am checking if we are at the first tick of the 5 minute bar, as 5 min. is the main data. Is this correct?
I am asking, because my script doesn't seem to be doing this.
Second question:
I enter trades with EnterLongLimit and EnterLongStop with the property LiveUntilCancelled set to true. Let's suppose that the orders have not been filled yet. Will ExitLong("") cancel all orders? Or it's necessary to cancel each order with the instruction CancelOrder()?
If they have been filled, will ExitLong("") close all orders?
Thank you
Comment