When I add indicators like SMA in script, I don't see a parameter for setting the period of which I want the values to be based on. Am I missing something or is it by default going to calculate the SMA tick by tick?
BarUpdate does fire every single tick right? I think I need a way to have it fire only every 2 minutes, or more importantly, to get the value of the SMA only every 2 minutes.
Is this possible?
Comment