
यह रणनीति एक ट्रेडिंग प्रणाली है जो मूल्य व्यवहार और गतिशील समर्थन प्रतिरोध के आधार पर व्यापार करती है, जो समर्थन और प्रतिरोध के आसपास महत्वपूर्ण मूल्य पैटर्न की पहचान करके व्यापार करती है। यह प्रणाली 16 चक्रों की गतिशील समर्थन प्रतिरोध गणना विधि का उपयोग करती है, जो चार क्लासिक रिवर्सल आकृतियों को जोड़ती है - कंकड़, उल्का, क्रॉस और सुई पैटर्न बाजार में संभावित पलटाव के अवसरों को पकड़ने के लिए। रणनीति जोखिम को प्रबंधित करने के लिए एक निश्चित प्रतिशत स्टॉप-लॉस स्टॉप का उपयोग करती है और प्रवेश संकेतों की कठोरता को नियंत्रित करने के लिए संवेदनशीलता मापदंडों का उपयोग करती है।
इस रणनीति का मुख्य उद्देश्य गतिशील रूप से समर्थन और प्रतिरोध की गणना करके मूल्य गतिविधि की एक ऊपरी और निचली सीमा बनाना है। जब कीमतें इन महत्वपूर्ण स्तरों के करीब होती हैं, तो सिस्टम एक निश्चित आरेख पैटर्न को एक पलटाव संकेत के रूप में देखता है। प्रवेश की शर्तों के लिए कीमतों को प्रतिरोध के समर्थन के 1.8% की सीमा के भीतर (डिफ़ॉल्ट संवेदनशीलता) पलटाव पैटर्न की आवश्यकता होती है। सिस्टम 35% धन प्रबंधन नियम का उपयोग करता है, 16% स्टॉप-लॉस और 9.5% स्टॉप-आउट के साथ, प्रभावी रूप से प्रति लेनदेन के जोखिम को खाते की कुल राशि का लगभग 5.6% नियंत्रित करता है।
यह मूल्य व्यवहार आधारित व्यापार रणनीति गतिशील समर्थन प्रतिरोध स्तर और क्लासिक रिवर्स मोड के संयोजन के माध्यम से व्यापारियों के लिए एक व्यवस्थित व्यापार विधि प्रदान करती है। रणनीति के फायदे तर्क स्पष्टता, जोखिम नियंत्रण में हैं, लेकिन वास्तविक व्यापार प्रभाव के आधार पर निरंतर अनुकूलन की आवश्यकता है। व्यापारियों को सलाह दी जाती है कि वे वास्तविक उपयोग से पहले पर्याप्त प्रतिक्रिया और पैरामीटर अनुकूलन करें, और बाजार के अनुभव के साथ रणनीति को व्यक्तिगत रूप से समायोजित करें।
/*backtest
start: 2024-11-26 00:00:00
end: 2024-12-03 00:00:00
period: 1h
basePeriod: 1h
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/
// This Pine Script™ code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © felipemiransan
//@version=5
strategy("Price Action Strategy", overlay=true)
// Settings
length = input.int(16, title="Support and Resistance Length")
sensitivity = input.float(0.018, title="Sensitivity")
// Stop Loss and Take Profit
stop_loss_pct = input.float(16, title="Stop Loss percentage", minval=0.1) / 100
take_profit_pct = input.float(9.5, title="Take Profit percentage", minval=0.1) / 100
// Function to identify a Hammer
isHammer() =>
body = close - open
price_range = high - low
lower_shadow = open - low
upper_shadow = high - close
body > 0 and lower_shadow > body * 2 and upper_shadow < body * 0.5 and price_range > 0
// Function to identify a Shooting Star
isShootingStar() =>
body = open - close
price_range = high - low
lower_shadow = close - low
upper_shadow = high - open
body > 0 and upper_shadow > body * 2 and lower_shadow < body * 0.5 and price_range > 0
// Function to identify a Doji
isDoji() =>
body = close - open
price_range = high - low
math.abs(body) < (price_range * 0.1) // Doji has a small body
// Function to identify a Pin Bar
isPinBar() =>
body = close - open
price_range = high - low
lower_shadow = open - low
upper_shadow = high - close
(upper_shadow > body * 2 and lower_shadow < body * 0.5) or (lower_shadow > body * 2 and upper_shadow < body * 0.5)
// Support and resistance levels
support = ta.lowest(low, length)
resistance = ta.highest(high, length)
// Entry criteria
long_condition = (isHammer() or isDoji() or isPinBar()) and close <= support * (1 + sensitivity)
short_condition = (isShootingStar() or isDoji() or isPinBar()) and close >= resistance * (1 - sensitivity)
// Function to calculate stop loss and take profit (long)
calculate_levels(position_size, avg_price, stop_loss_pct, take_profit_pct) =>
stop_loss_level = avg_price * (1 - stop_loss_pct)
take_profit_level = avg_price * (1 + take_profit_pct)
[stop_loss_level, take_profit_level]
// Function to calculate stop loss and take profit (short)
calculate_levels_short(position_size, avg_price, stop_loss_pct, take_profit_pct) =>
stop_loss_level = avg_price * (1 + stop_loss_pct)
take_profit_level = avg_price * (1 - take_profit_pct)
[stop_loss_level, take_profit_level]
// Buy entry order with label
if (long_condition and strategy.opentrades == 0)
strategy.entry("Buy", strategy.long)
pattern = isHammer() ? "Hammer" : isDoji() ? "Doji" : isPinBar() ? "Pin Bar" : ""
label.new(x=bar_index, y=low, text=pattern, color=color.green, textcolor=color.black, size=size.small)
// Sell entry order with label
if (short_condition and strategy.opentrades == 0)
strategy.entry("Sell", strategy.short)
pattern = isShootingStar() ? "Shooting Star" : isDoji() ? "Doji" : isPinBar() ? "Pin Bar" : ""
label.new(x=bar_index, y=high, text=pattern, color=color.red, textcolor=color.black, size=size.small)
// Stop Loss and Take Profit management for open positions
if (strategy.opentrades > 0)
if (strategy.position_size > 0) // Long position
avg_price_long = strategy.position_avg_price // Average price of long position
[long_stop_level, long_take_profit_level] = calculate_levels(strategy.position_size, avg_price_long, stop_loss_pct, take_profit_pct)
strategy.exit("Exit Long", from_entry="Buy", stop=long_stop_level, limit=long_take_profit_level)
if (strategy.position_size < 0) // Short position
avg_price_short = strategy.position_avg_price // Average price of short position
[short_stop_level, short_take_profit_level] = calculate_levels_short(strategy.position_size, avg_price_short, stop_loss_pct, take_profit_pct)
strategy.exit("Exit Short", from_entry="Sell", stop=short_stop_level, limit=short_take_profit_level)
// Visualization of Support and Resistance Levels
plot(support, title="Support", color=color.green, linewidth=2)
plot(resistance, title="Resistance", color=color.red, linewidth=2)