FINANCIAL FREEDOM
ACCELERATOR
Multibagger
Indicator
PineScript
SpringPad’s Multibagger
Indicator PineScript
Code
//@version=5
strategy("52-Week High/Low Breakout Strategy", overlay=true)
// Define 52-week high and low
lookbackPeriod = 52 * 5 // 5 trading days in
a week highest52Week = [Link](high,
lookbackPeriod) lowest52Week =
[Link](low, lookbackPeriod)
// Buy condition: Close above the 52-week high
buyCondition = close > highest52Week[1] // [1] for accessing the
previous value if (buyCondition)
[Link]("Buy", [Link])
// Sell condition: Close below the 52-week low
sellCondition = close < lowest52Week[1]
if (sellCondition)
[Link]("Buy") // Close long position before selling
[Link]("Sell", [Link]) // Enter a short position
// Plot the levels for visual reference
plot(highest52Week, color=[Link], linewidth=2, title="52 Week High")
plot(lowest52Week, color=[Link], linewidth=2, title="52 Week Low")
STEPS to use the above Pine Script
Code
[Link] the above code and go to google and type
[Link]
2. Below page will appear.
3. Then click on the top right Man icon and click on sign in.
4. Then you can sign in through your gmail ID or any
email ID that you have.
5. Then click on the search markets here box.
6. In that In that box, you can choose your favourite
segment, like stocks, funds, or forex, where you want to
apply the pine script code. For reference, I am going to
apply this script to hdfc bank stock, so I just search hdfc
bank and click on lunch chart.
7. Below page will appear.
8. Now click on the Pine Editor Tab.
9. Clear everything in the terminal, like shown below.
[Link] paste the pine script in the terminal.
[Link] click on the right-side option named Add to Chart.
[Link] done, you successfully executed the code.