ravisn
Pine Script Scholar
Pine Script Scholar
Posts: 2
Joined: July 4th, 2022

Correlate Entry Price to a ticker

Am a student of the Pine Script Mastery course and am midway through it (have not yet reached Arrays, Library and Strategy)

I have a trading strategy that calls out for certain ATR based stop loss and take profit metrics. Wrote a simple script that takes my Entry price input for that ticker and marks out the stop loss and take profit levels on my chart.

I am wondering how I can make the chart markings specific to the ticker. i.e. if I move from one ticker to the next on my list, the entry price is no longer valid and, therefore, neither are the markings for SL and TP.

Any guidance will be much appreciated. Let me know if I am not clear in my ask. Thank you

Return to “Pine Script Q&A”