That method has to be updated at the end of each bar. It accumulates volume on each intraday bar so that at the end of the day I get the total volume for the day. In that method I put the results of cumulated volume into an array so that I can manipulate the daily volume and sending back result to my indicator which uses the result to do things...
I am new to Ninja script and I am woundering how to set up this method with my indicator. Do I put the UserDefinedMethod in the BarUpdate() method of my indicator so that it will be updated at the end of each bar ?
Thank you.
Comment