
बैल बाजार ट्रैकिंग सिस्टम एक ट्रेंड ट्रैकिंग-आधारित यांत्रिक ट्रेडिंग सिस्टम है। यह ट्रेडिंग सिग्नल को फ़िल्टर करने के लिए 4-घंटे के चार्ट के ट्रेंड इंडिकेटर का उपयोग करता है, जबकि प्रवेश 15 मिनट के चार्ट के आधार पर किया जाता है। प्रमुख संकेतकों में आरएसआई, रैंडम इंडिकेटर और एमएसीडी शामिल हैं। इस प्रणाली का लाभ यह है कि कई समय-सीमाओं के संयोजन से झूठे संकेतों को प्रभावी ढंग से फ़िल्टर किया जा सकता है, जबकि कम समय-सीमाओं के संकेतकों का उपयोग करके अधिक सटीक समय-सीमाएं प्राप्त की जा सकती हैं।
इस प्रणाली का मुख्य तर्क यह है कि विभिन्न समय-सीमाओं के संकेतकों के संयोजन से प्रवृत्ति की दिशा और प्रवेश के समय की पहचान की जाती है। विशेष रूप से, 4 घंटे के चार्ट पर आरएसआई, यादृच्छिक संकेतकों और ईएमए को समग्र प्रवृत्ति की दिशा का न्याय करने के लिए उपयुक्त होना चाहिए। यह अधिकांश शोर को प्रभावी ढंग से फ़िल्टर कर सकता है। साथ ही, 15 मिनट के चार्ट पर आरएसआई, यादृच्छिक संकेतकों, एमएसीडी और ईएमए को भी देखना चाहिए।
इस प्रणाली को अनुकूलित करने के लिए निम्नलिखित कदम उठाए जा सकते हैं:
बैल बाजार ट्रैकिंग सिस्टम एक बहुत ही व्यावहारिक ट्रेंड ट्रैकिंग मैकेनिकल ट्रेडिंग सिस्टम है। यह बाजार के रुझानों और महत्वपूर्ण प्रवेश समय की पहचान करने के लिए कई समय के फ्रेम के संयोजन संकेतकों का उपयोग करता है। उचित पैरामीटर सेटिंग और निरंतर अनुकूलन परीक्षण के माध्यम से, यह प्रणाली स्थिर लाभप्रदता के प्रभाव को प्राप्त करने के लिए अधिकांश बाजार स्थितियों के लिए अनुकूल हो सकती है। लेकिन हम इसके कुछ संभावित जोखिमों के बारे में भी जानते हैं और इन जोखिमों को रोकने और हल करने के लिए सक्रिय उपाय करते हैं।
/*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=4
strategy("Cowabunga System from babypips.com", overlay=true)
// 4 Hour Stochastics
length4 = input(162, minval=1, title="4h StochLength"), smoothK4 = input(48, minval=1, title="4h StochK"), smoothD4 = input(48, minval=1, title="4h StochD")
k4 = sma(stoch(close, high, low, length4), smoothK4)
d4 = sma(k4, smoothD4)
//15 min Stoch
length = input(10, minval=1, title="15min StochLength"), smoothK = input(3, minval=1, title="15min StochK"), smoothD = input(3, minval=1, title="15min StochD")
k = sma(stoch(close, high, low, length), smoothK)
d= sma(k, smoothD)
//4 hour RSI
src1 = close, len1 = input(240, minval=1, title="4H RSI Length")
up1 = rma(max(change(src1), 0), len1)
down1 = rma(-min(change(src1), 0), len1)
rsi4 = down1 == 0 ? 100 : up1 == 0 ? 0 : 100 - (100 / (1 + up1 / down1))
//15 min RSI
src = close, len = input(9, minval=1, title="15M RSI Length")
up = rma(max(change(src), 0), len)
down = rma(-min(change(src), 0), len)
rsi15 = down == 0 ? 100 : up == 0 ? 0 : 100 - (100 / (1 + up / down))
//MACD Settings
source = close
fastLength = input(12, minval=1, title="MACD Fast"), slowLength=input(26,minval=1, title="MACD Slow")
signalLength=input(9,minval=1, title="MACD Signal")
fastMA = ema(source, fastLength)
slowMA = ema(source, slowLength)
macd = fastMA - slowMA
signal = ema(macd, signalLength)
// Stops and Profit inputs
inpTakeProfit = input(defval = 1000, title = "Take Profit", minval = 0)
inpStopLoss = input(defval = 0, title = "Stop Loss", minval = 0)
inpTrailStop = input(defval = 400, title = "Trailing Stop", minval = 0)
inpTrailOffset = input(defval = 0, title = "Trailing Stop Offset", minval = 0)
// Stops and Profit Targets
useTakeProfit = inpTakeProfit >= 1 ? inpTakeProfit : na
useStopLoss = inpStopLoss >= 1 ? inpStopLoss : na
useTrailStop = inpTrailStop >= 1 ? inpTrailStop : na
useTrailOffset = inpTrailOffset >= 1 ? inpTrailOffset : na
//Specific Time to Trade
myspecifictradingtimes = input('0500-1600', title="My Defined Hours")
longCondition1 = time(timeframe.period, myspecifictradingtimes) != 0
longCondition2 = rsi4 <= 80
longCondition3 = k4 >= d4 and k4 <= 80
longCondition4 = ema(close, 80) >= ema(close, 162)
allLongerLongs = longCondition1 and longCondition2 and longCondition3 and longCondition4
longCondition5 = rsi15 <= 80
longCondition6 = k >= d and k <= 80 and fastMA >= slowMA
longCondition7 = ema(close, 5) >= ema(close, 10)
allLongLongs = longCondition5 and longCondition6 and longCondition7
if crossover(close, ema(close, 5)) and allLongerLongs and allLongLongs
strategy.entry("Long", strategy.long, comment="LongEntry")
shortCondition1 = time(timeframe.period, myspecifictradingtimes) != 0
shortCondition2 = rsi4 >= 20
shortCondition3 = k4 <= d4 and k4 >= 20
shortCondition4 = ema(close, 80) <= ema(close, 162)
allShorterShorts = shortCondition1 and shortCondition2 and shortCondition3 and shortCondition4
shortCondition5 = rsi15 >= 20
shortCondition6 = k <= d and k >= 20 and fastMA <= slowMA
shortCondition7 = ema(close, 5) <= ema(close, 10)
allShortShorts = shortCondition5 and shortCondition6 and shortCondition7
if crossunder(close, ema(close,5)) and allShorterShorts and allShortShorts
strategy.entry("Short", strategy.short, comment="ShortEntry")
strategy.exit("Exit Long", from_entry = "Long", profit = useTakeProfit, loss = useStopLoss, trail_points = useTrailStop, trail_offset = useTrailOffset)
strategy.exit("Exit Short", from_entry = "Short", profit = useTakeProfit, loss = useStopLoss, trail_points = useTrailStop, trail_offset = useTrailOffset)