Page 1 of 1

Correlate Entry Price to a ticker

Posted: Wed Sep 21, 2022 4:34 pm
by ravisn
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