Im porting one of my indicators that use Volume to plot data, but some tickers do not have volume reported or just as cero in TV. (Some Indexes, Forex, etc). So, for this kind of situations, I want to report volume as 1 given multiplication weighting in my algorithm.
You don’t have to test if Vo = undefined. The platform would never return this kind of value. If there are no values, then the variable would return 0. See my example in the picture below on forex.
To help us continually offer you the best experience on ProRealCode, we use cookies. By clicking on "Continue" you are agreeing to our use of them. You can also check our "privacy policy" page for more information.Continue