Ask: Using Plot result as variable

#1
Hi all, i have a question, i get ichimoku script from website like this:
Code:
P3 = Param("Leading Span Displacement", 26, 2, 200, 1, 0);
P4 = Param("Leading B Span", 52, 2, 200, 1, 0);
C4 = ParamColor("Leading B Color", colorPink);
LSB = (HHV(H,P4)+LLV(L,P4))/2;

Plot(LSB, "Senkou Span B (Leading Span B)", C4, styleLine, 0, 0, P3);
I need Senkou Span B (Leading Span B) value for filtering, how to use Senkou Span B (Leading Span B) value inside the plot as variable? I have used LSB variable but the result is different from Senkou Span B (Leading Span B) value, because there is an XShift input in the Plot (P3)

Thank you in advance for your help...
 

Zerodha – Open Paperless Account

Open online account with Zerodha. Free delivery trading and Max Rs 20 for Intraday, F&O, Currency and Commodity Trading. Intraday High leverage with MIS, CO and BO.

Name:Phone:
Email:City:
State:
Are you a day trader?