Now I want to add a check whether I will trade on not each individual instrument in the current day. The simple control that I would like to put in place is basically to check for each instrument if the momentum is above 0. But the period type that I would like to use for the indicator is “day”.
As the period type is different to the already added bars, I am not sure what I should do. From other posts, I see that I should add “day” period type bars for each instrument to check the momentum. Is this the right approach as I only need to run the test once per day? And then, how can I in the “OnBarUpdate” event avoid treating the added daily bars?
Thanks in advance for your advice/suggestion,
Eric
Comment