आरएसआई संकेतक चूसने वाला ट्रेडिंग रणनीति


निर्माण तिथि: 2024-01-29 11:42:46 अंत में संशोधित करें: 2024-01-29 11:42:46
कॉपी: 0 क्लिक्स: 732
1
ध्यान केंद्रित करना
1617
समर्थक

आरएसआई संकेतक चूसने वाला ट्रेडिंग रणनीति

अवलोकन

आरएसआई सूचकांक ट्रेडिंग रणनीति आरएसआई और सीसीआई तकनीकी संकेतकों को एकीकृत करने के लिए एक निश्चित ग्रिड ट्रेडिंग विधि है। यह रणनीति आरएसआई और सीसीआई संकेतकों के मूल्यों के आधार पर प्रवेश के समय का न्याय करती है, और स्टॉप ऑर्डर और ओवरऑल ऑर्डर को स्थापित करने के लिए एक निश्चित लाभ अनुपात और एक निश्चित ग्रिड की संख्या का उपयोग करती है। साथ ही, रणनीति में एक व्यापक मूल्य परिवर्तन के लिए एक सुरक्षा तंत्र भी शामिल है।

रणनीति सिद्धांत

प्रवेश की शर्तें

जब 5-मिनट और 30-मिनट RSI दोनों सेट थ्रेशोल्ड से नीचे होते हैं, और 1-घंटे CCI भी सेट मूल्य से नीचे होता है, तो एक मल्टी-सिग्नल उत्पन्न होता है। इस समय, वर्तमान क्लोज प्राइस को प्रवेश मूल्य के रूप में दर्ज किया जाता है, और खाते के हितों और ग्रिड की संख्या के आधार पर पहली स्थिति इकाई की गणना की जाती है।

ब्याज की शर्तें

प्रवेश मूल्य के आधार पर, निर्धारित लक्ष्य लाभ अनुपात के अनुसार लाभ मूल्य की गणना करें, और उस मूल्य स्तर पर एक स्टॉप ऑर्डर सेट करें।

जमा शर्तें

पहले सिग्नल को छोड़कर, शेष फिक्स्ड सिग्नल सिग्नल के बाद एक-एक करके जारी किए जाते हैं, जब तक कि ग्रिड की निर्धारित संख्या तक नहीं पहुंच जाती।

सुरक्षा तंत्र

यदि कीमतों में प्रवेश मूल्य की वृद्धि से अधिक है, तो सभी होल्डिंग्स को कवर किया जाएगा।

रिवर्सिंग तंत्र

यदि कीमतें प्रवेश मूल्य से अधिक हो जाती हैं, तो सभी अपूर्ण ऑर्डर रद्द कर दिए जाते हैं और नए प्रवेश के अवसर की प्रतीक्षा की जाती है।

श्रेष्ठता विश्लेषण

  • आरएसआई और सीसीआई के संयोजन से लाभ की संभावना बढ़ जाती है
  • लक्ष्य मुनाफे को निर्धारित करने के लिए एक निश्चित ग्रिड का उपयोग करना, मुनाफे की निश्चितता को बढ़ाना
  • एकीकृत सुरक्षा तंत्र, जो कीमतों में भारी उतार-चढ़ाव के जोखिम को प्रभावी रूप से रोकता है
  • रिवर्स मैकेनिज्म में शामिल होने से नुकसान कम हो सकता है

जोखिम विश्लेषण

  • संकेतक के गलत संकेतों की संभावना
  • भारी कीमतों में उतार-चढ़ाव ने हेजिंग को तोड़ दिया
  • रिवर्स करने के बाद फिर से शुरू करने में असमर्थ

इन जोखिमों को सूचकांक मापदंडों को समायोजित करके कम किया जा सकता है।

अनुकूलन दिशा

  • अधिक प्रकार के सूचक संयोजनों का परीक्षण किया जा सकता है
  • आप स्वयं को रोक सकते हैं
  • लॉजिक को अनुकूलित करने के लिए

संक्षेप

आरएसआई सूचकांक ट्रेडिंग रणनीति सूचकांक के माध्यम से प्रवेश के समय का न्याय करती है, स्थिर लाभ को लॉक करने के लिए एक निश्चित ग्रिड स्टॉप और बढ़ोतरी का उपयोग करती है। साथ ही, रणनीति में बड़े पैमाने पर उतार-चढ़ाव और रिवर्स के बाद फिर से प्रवेश करने के लिए एक तंत्र होता है। इस तरह के कई तंत्रों को एकीकृत करने वाली रणनीति का उपयोग व्यापार जोखिम को कम करने और लाभप्रदता बढ़ाने के लिए किया जा सकता है। सूचकांक और पैरामीटर सेटिंग को और अनुकूलित करके बेहतर वास्तविक स्टॉप प्रभाव प्राप्त किया जा सकता है।

रणनीति स्रोत कोड
/*backtest
start: 2023-12-01 00:00:00
end: 2023-12-31 23:59:59
period: 1h
basePeriod: 15m
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/

//@version=5
strategy("Custom RSI/CCI Strategy with Fixed Grid", shorttitle="INVESTCOIN_RSI_CCI_Fixed_Grid", overlay=true)

// Input parameters
input_rsi_5min_value = 55
input_rsi_30min_value = 65
input_cci_1hr_value = 85
input_profit_target_percent = 0.6 // Target profit in percentage
input_grid_size = 15 // Number of orders in grid
input_hedging_percent = 20 // Percentage price change for hedging
input_first_order_offset = 0.2 // Offset for the first order in percentage
input_reversal_percent = 0.4 // Percentage price change for reversal

// Calculating the RSI and CCI values
rsi_5min = ta.rsi(close, 5)
rsi_30min = ta.rsi(close, 30)
cci_1hr = ta.cci(close, 60)

// Define strategy conditions based on the provided screenshot
long_condition = (rsi_5min < input_rsi_5min_value) and (rsi_30min < input_rsi_30min_value) and (cci_1hr < input_cci_1hr_value)

// Plot signals
plotshape(series=long_condition, title="Long Entry Signal", location=location.belowbar, color=color.green, style=shape.triangleup, size=size.small)

// Initialize a variable to store the entry price
var float entry_price = na

// Initialize a variable to store the profit target
var float profit_target = na

// Hedge condition based on price change percentage
var float hedge_price = na

// Initialize a variable to count the total number of orders
var int total_orders = 0

// Calculate the initial order size based on account equity and grid size
var float initial_order_size = 1 / input_grid_size / 100

// Entry orders with fixed size
if (long_condition and total_orders < 9000)
    // Place first order with an offset
    if total_orders == 0
        strategy.order("First Long", strategy.long, qty=initial_order_size, limit=close * (1 - input_first_order_offset / 100))
    total_orders := total_orders + 1
    
    // Place remaining grid orders
    for i = 1 to input_grid_size - 1
        if (total_orders >= 9000)
            break // Stop if max orders reached
        strategy.entry("Long_" + str.tostring(i), strategy.long, qty=initial_order_size)
        total_orders := total_orders + 1

// Calculate the profit target in currency
if (long_condition)
    entry_price := close // Store the entry price when the condition is true

if (not na(entry_price))
    profit_target := entry_price * input_profit_target_percent / 100 // Calculate the profit target

// Setting up the profit target
if (not na(profit_target))
    strategy.exit("Take Profit", "Long", limit=entry_price + profit_target)

// Hedge by closing all positions if the price increases by the hedging percentage
if (strategy.position_size > 0)
    hedge_price := close * (1 + input_hedging_percent / 100)

if (not na(hedge_price) and close >= hedge_price)
    strategy.close_all(comment="Hedging")


// Reversal condition based on the price change percentage
var float reversal_price = na

if (strategy.position_size > 0 and total_orders > 1) // Check if at least one grid order has been placed
    reversal_price := entry_price * (1 - input_reversal_percent / 100)

// Cancel trades and wait for a new entry point if the price reverses by the specified percentage
if (not na(reversal_price) and close <= reversal_price)
    strategy.cancel_all()
    total_orders := 0 // Reset the total orders count after cancellation