f4r33x

ReduceSecurityCalls

f4r33x Updated   
Library "ReduceSecurityCalls"
This library allows you to reduce the number of request.security calls to 1 per symbol per timeframe. Script provides example how to use it with request.security and possible optimisation applied to htf data call.
This data can be used to calculate everything you need and more than that (for example you can calculate 4 emas with one function call on mat_out).

ParseSource(mat_outs, o)
  Should be used inside request.security call. Optimise your calls using timeframe.change when htf data parsing! Supports up to 5 expressions (results of expressions must be float or int)
  Parameters:
    mat_outs: Matrix to be used as outputs, first value is newest
    o: Please use parametres in the order they specified (o should be 1st, h should be 2nd etc..)
  Returns: outs array, due to weird limitations do not try this :matrix_out = matrix.copy(ParseSource)
Release Notes:
v2 fix some issues

Updated:
ParseSource(mat_outs, o)
  Parsedata function, should be used inside request.security call. Optimise your calls using timeframe.change when htf data parsing! Supports up to 5 expressions (results of expressions must be float or int)
  Parameters:
    mat_outs: deprecated
    o: Please use parametres in the order they specified (o should be 1st, h should be 2nd etc..)
  Returns: outs matrix (pine is weird, so now woks as intended)
Pine library

In true TradingView spirit, the author has published this Pine code as an open-source library so that other Pine programmers from our community can reuse it. Cheers to the author! You may use this library privately or in other open-source publications, but reuse of this code in a publication is governed by House Rules.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.

Want to use this library?

Copy the following line and paste it in your script.