Swing Stock Trarding Buy Signals
Swing Stock Trarding Buy Signals (Bullish Indicator)
Swing Stock Trarding Buy Signals
(Bullish Indicator)
Rules :
-
Bullish Indicator, Buy whenever Buy Signal is generated.
-
Exit when Target is Achieved.
-
Do not use on PENNY STOCKS
-
It will not give signal on FALLING MARKET
-
It works on NIFTY 50 Index CHART
Indicator name used:
SWING TRADING BUY SIGNAL WITH 2% Target
(use strategy indicator for exit signals)
Time Frame:
1 Day for Swing Trading
Useful for :
1. Swing Trader
YouTube Link
https://www.youtube.com/watch?v=MNe3im6hj3Q
Code Link
https://docs.google.com/document/d/1I8Zbt6GK2SFwA1QtSwZbo1mbW-b0xupcIYYDXYW-NpY/edit?usp=sharing
Strategy code
ttps://docs.google.com/document/d/11XCMHoQQmgeg0z9AWjLDcxxgu6iDt0Ryw-YGChS8ASQ/edit?usp=sharing

Bajaj Finance 1 Day Time Frame Chart

NIFTY 50 SPOT CHART
//@version=6
indicator("SWING TRADING BUY SIGNAL WITH 2% Target", overlay=true)
// Define Conditions
closeAboveOpen = close > open
// SMA (Simple Moving Averages)
sma5 = ta.sma(close, 5)
sma10 = ta.sma(close, 10)
sma15 = ta.sma(close, 15)
sma20 = ta.sma(close, 20)
// Check if Close is above all SMAs
closeAboveSMA = close > sma5 and close > sma10 and close > sma15 and close > sma20
// RSI Condition
rsiValue = ta.rsi(close, 14)
rsiCondition = rsiValue > 39
// Combine all conditions for Buy Signal
buyCondition = closeAboveOpen and closeAboveSMA and rsiCondition
// Trade Management Variables
var float buyPrice = na
var bool tradeActive = false
// If a new BUY condition is met and no trade is active
if buyCondition and not tradeActive
buyPrice := close
tradeActive := true
// 2% Target Condition
targetPrice = buyPrice * 1.02 // 2% profit target
// If price hits 2% target, reset trade status for next BUY SIGNAL
if tradeActive and close >= targetPrice
tradeActive := false // Reset trade condition to allow new signals
// ✅ FIXED: Ensure Buy Signals Continue Only After 2% Profit is Achieved
plotshape(buyCondition and not tradeActive, location=location.belowbar, style=shape.labelup, color=color.green, size=size.small, title="BUY SIGNAL")
// Label for Buy Signal
if buyCondition and not tradeActive
label.new(x=bar_index, y=low, text="BUY SIGNAL", color=color.green, textcolor=color.white, size=size.normal, style=label.style_label_up)
//@version=6
strategy("SWING TRADING strategy with 2% Target", overlay=true, fill_orders_on_standard_ohlc = true)
// Define SMA Conditions for Entry
sma14 = ta.sma(close, 14)
sma28 = ta.sma(close, 28)
longCondition = ta.crossover(sma14, sma28)
// Trade Management Variables
var float buyPrice = na
var bool tradeActive = false
// If crossover happens and no trade is active, enter a long trade
if (longCondition and not tradeActive)
buyPrice := close
tradeActive := true
strategy.entry("My Long Entry", strategy.long)
// 2% Target Condition
targetPrice = buyPrice * 1.02 // 2% profit target
// Close trade at 2% profit and allow new trade
if (tradeActive and close >= targetPrice)
strategy.close("My Long Entry") // Close trade at target
tradeActive := false // Reset trade condition for next BUY