security(x, y, z, a) → seriesReturns
Returns another series.
Arguments
x stringSymbol (for example "tickerid", "msft" or other financial instrument...like as close[0] or input[0] in NT...I think). "Ticherid" is a bulti-in variable, type string, with Symbol name with exchange prefix (e.g. "BATS:MSFT" or "NASDAQ:MSFT).
y stringResolution (time frame...for example "300" minute, "240" minute, "D" daily")
z seriesExpression to calculate and return from the security call. (calculate the function output result with instrument data chosen in the chart )
a boolMerge strategy for the requested data. Requested data is merged with the current barset data. Default value is false, data is merged continiously (without gaps). If true then data will be merged possibly with gaps.Examples
a = security ("tickerid", "240", sma(close, 10))
// plot simple average 10 period on close every 240 minutes with data chart
s = security("MSFT", "D", sma(close, 10)) // every 1 Dayplot(s)s1 = security("AAPL", "240", hlc3)
// every 240 Minutes plot (s1)
Thank you in advance for answer.
Comment