सरल धारक रणनीति

लेखक:चाओझांग, दिनांकः 2024-01-08 17:05:10
टैगः

img

अवलोकन

सरल धारक रणनीति एक रणनीति है जो आवधिक रूप से क्रिप्टोकरेंसी खरीदती है और उन्हें संपत्ति की सराहना प्राप्त करने के लिए रखती है। रणनीति में मुख्य रूप से तीन भाग शामिल हैंः आवधिक खरीद संकेत, होल्डिंग संकेत और निकास संकेत।

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

इस रणनीति का मूल तर्क यह हैः

  1. पहली खरीदारी करने के लिए शुरुआत में एक खरीद संकेत भेजें।

  2. बोली मुद्रा का उपयोग करके अधिक आधार मुद्रा खरीदने के लिए मोमबत्तियों की एक निश्चित संख्या में एक खरीद संकेत भेजें।

  3. जब मोमबत्ती की संख्या पूर्व निर्धारित मूल्य तक पहुँच जाती है, तो स्थिति को बंद करने के लिए बाहर निकलने का आदेश भेजें।

  4. जब बाहर निकलने का समय आ जाता है, तो रणनीति को रोकने और सभी पदों को बंद करने के लिए बाहर निकलने का संकेत भेजें।

क्रिप्टोकरेंसी के पुनरावर्ती खरीद और धारण के माध्यम से, लागत औसतकरण और पदों की निरंतर वृद्धि के प्रभावों को प्राप्त किया जा सकता है।

लाभ विश्लेषण

इस रणनीति के लाभ इस प्रकार हैंः

  1. क्रय के समय जोखिम को कम करने के लिए समय-समय पर क्रिप्टोकरेंसी खरीद सकते हैं।

  2. बार-बार खरीद के माध्यम से क्रिप्टोकरेंसी की औसत होल्डिंग लागत को कम कर सकता है।

  3. लगातार बढ़ते पदों के माध्यम से पोर्टफोलियो का वृद्धि लाभ प्राप्त कर सकता है।

  4. अनुकूलन योग्य खरीद और निकास समय स्वचालन को सक्षम करता है।

  5. संचालित करने के लिए सरल और मास्टर करने के लिए आसान।

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

इस रणनीति के जोखिमों में निम्नलिखित शामिल हैंः

  1. संभावित रूप से भारी मूल्य उतार-चढ़ाव के साथ क्रिप्टोक्यूरेंसी बाजार का व्यवस्थित जोखिम।

  2. अनुपयुक्त निकास समय हानि को समय पर रोकने में विफल हो सकता है।

  3. अपर्याप्त पूंजी प्रबंधन के कारण भी घाटे में विफलता हो सकती है।

अनुकूलन के सुझाव

रणनीति के निम्नलिखित पहलुओं को अनुकूलित किया जा सकता हैः

  1. बाजार की स्थितियों के अनुसार खरीद राशि और अंतराल को गतिशील रूप से समायोजित करें।

  2. जब मूल्य समर्थन स्तर से नीचे गिरता है तो बंद पदों के लिए स्टॉप लॉस सिग्नल जोड़ें।

  3. इष्टतम प्रवेश और निकास समय निर्धारित करने के लिए अधिक कारकों को शामिल करें।

सारांश

सरल धारक रणनीति क्रिप्टोकरेंसी की आवधिक खरीद और रखरखाव के माध्यम से लागत औसतकरण और पोर्टफोलियो वृद्धि के प्रभाव को प्राप्त करती है। यह उपयोग में महारत हासिल करने के बाद अपेक्षाकृत सरल मात्रात्मक रणनीति है। आगे के अनुकूलन को शामिल करने से रणनीति की बुद्धि और अनुकूलन क्षमता में सुधार हो सकता है।


/*backtest
start: 2023-01-01 00:00:00
end: 2024-01-07 00:00:00
period: 1d
basePeriod: 1h
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/

// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © Merdoc390

//@version=5

// The idea with this script is to use 3commas DCA bot to keep buying crypto, but not 'close the deal' which sells the crypto. 

// Basic idea is to keep adding funds, which increases the buy. 
// When you cancel the sale, you keep the crypto, thus HODL.
// I use this to build my positions that I short sale on Coinbase.com, so I need to cancel the deal after several candles so I can 
// trade them. 

// 3commas HODL DCA Bot article:
// https://3commas.io/blog/3commas-hodl-dca-bot-strategy
// This article includes the bot setup on 3Commas:
// Basicially you start the trade, then add funds to the trade, buying more crypto, then eventually cancel the deal.
// When you create the bot, you set the take profit really high, like 999%. Since it is unlikey to hit the value, it will never sell


// Credit to Irakli Gun as inspriation
// https://3commas.io/blog/3commas-hodl-dca-bot-strategy

strategy(title='HODL Simple v1', shorttitle="HODL'er", 
 calc_on_every_tick=false, calc_on_order_fills=true, process_orders_on_close =true,
 format=format.price, precision=4, overlay=true, pyramiding=365, 
 currency=currency.USD, default_qty_value=10, default_qty_type=strategy.cash , initial_capital=3650, 
 commission_type=strategy.commission.percent, commission_value=0.1)


var startFirstDeal = true
var done = false
var dealCount = 0
var totalDealCount = 0 


i_closeCount = input.int(defval=7,title="Close at Candle Count:",tooltip="How many buy candles to convert to a buy, otherwise it will remain open until end of timeframe.",group="Trade Range")
Start_date   = input(defval=timestamp('2023-09-21 16:30'),title="Start Date/Time",group="Trade Range")
Finish_date  = input(defval=timestamp('2023-09-21 23:05'),title="End Date/Time",group="Trade Range")

i_startBotAndDealMessage     = input(defval="paste your message here",title="Message to start bot and deal", tooltip="Message for 'start bot and deal",                        group="3Commas",display=display.all) 
i_addFundsMessage            = input(defval="paste your message here",title="Message for deal add funds signal in the quote currency",  tooltip="Using the quote (such as USD), to purchase more.",group="3Commas",display=display.all)
i_cancelTheDealMessage       = input(defval="paste your message here",title="Message to cancel the deal",tooltip="If you paste only cancel the deal, the bot will wait until next candle to add funds.\nOption is to also paste the add funds message to also add a buy position.",       group="3Commas",display=display.all)
i_cancelAndStopMessage       = input(defval="paste your message here",title="Message to cancel all bot deals and stop the bot",tooltip="Paste 3c bot messagage for Cancel all and Stop Bot",     group="3Commas",display=display.all)

time_cond = true

// check exit first
if not startFirstDeal and not done and dealCount < i_closeCount 
    strategy.close("Long")
    alert(i_cancelAndStopMessage)
    // log.info("Time expired, stopping bot, Total Deal Count:{0}",totalDealCount)
    done := true
// check if add funds after first deal
else if time_cond and not startFirstDeal and dealCount < i_closeCount 
    strategy.entry("Long", strategy.long)
    alert(i_addFundsMessage)
    // log.info("Deal Count:{0}, totalDeals:{1}",dealCount,totalDealCount)
    dealCount := dealCount + 1
    totalDealCount := totalDealCount + 1

else if time_cond and startFirstDeal and dealCount <= i_closeCount 
    strategy.entry("Long", strategy.long)
    // log.info("Start deal message, startFirst")
    alert(i_startBotAndDealMessage)
    startFirstDeal := false

else if time_cond and dealCount >= i_closeCount 
    strategy.close("Long")
    alert(i_cancelTheDealMessage)
    // log.info("Over Trades limit of {1}, resetting. Canceling. DealCount: {0}", dealCount, i_closeCount)
    dealCount := 0
    startFirstDeal := true

else if time_cond
    log.error("case not covered")



अधिक