0% found this document useful (1 vote)
183 views

Multibagger Indicator PineScript

Multibagger Indicator PineScript
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (1 vote)
183 views

Multibagger Indicator PineScript

Multibagger Indicator PineScript
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 7

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 = ta.highest(high,

lookbackPeriod) lowest52Week =

ta.lowest(low, lookbackPeriod)

// Buy condition: Close above the 52-week high

buyCondition = close > highest52Week[1] // [1] for accessing the

previous value if (buyCondition)

strategy.entry("Buy", strategy.long)

// Sell condition: Close below the 52-week low

sellCondition = close < lowest52Week[1]

if (sellCondition)

strategy.close("Buy") // Close long position before selling

strategy.entry("Sell", strategy.short) // Enter a short position

// Plot the levels for visual reference

plot(highest52Week, color=color.green, linewidth=2, title="52 Week High")

plot(lowest52Week, color=color.red, linewidth=2, title="52 Week Low")


STEPS to use the above Pine Script
Code

1.Copy the above code and go to google and type


tradingview.com

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.


10.Now paste the pine script in the terminal.

11.Now click on the right-side option named Add to Chart.

12.And done, you successfully executed the code.

You might also like