
यह एक ट्रेंड ट्रैकिंग और रिवर्स ट्रेडिंग रणनीति है जो सरल चलती औसत पर आधारित है। यह ट्रेंड की दिशा का आकलन करने के लिए 1 दिन और 4 दिन की लाइनों के साथ एक समान लाइन क्रॉस का उपयोग करता है, जो खरीद और बेचने के संकेत देता है।
जब 1 दिन की रेखा 4 दिन की रेखा को ऊपर से नीचे की ओर से पार करती है, तो एक बिकने का संकेत उत्पन्न होता है; जब 1 दिन की रेखा 4 दिन की रेखा को नीचे की ओर से पार करती है, तो एक खरीदने का संकेत उत्पन्न होता है। इस प्रकार, तेजी से चलती औसत और धीमी गति से चलती औसत के क्रॉसिंग के माध्यम से बाजार की प्रवृत्ति के मोड़ को निर्धारित करने के लिए, और फिर लाभ कमाने के लिए।
लॉन्च के बाद स्टॉप लॉस और स्टॉप बैंड सेट करें। स्टॉप लॉस को लॉन्च की कीमत से 10 अंक नीचे और स्टॉप बैंड को लॉन्च की कीमत से 100 अंक ऊपर सेट करें। इससे नुकसान को सीमित किया जा सकता है और मुनाफे को लॉक किया जा सकता है।
इन जोखिमों को कम करने के लिए औसत रेखा को समायोजित कर सकते हैं, गतिशील स्टॉप लॉस स्टॉप सिस्टम सेट कर सकते हैं, या अन्य सूचक निर्णयों को जोड़ सकते हैं।
यह रणनीति एक सामान्य द्विआधारी ट्रेडिंग रणनीति है। यह ट्रेंड टर्नओवर को निर्धारित करने के लिए तेजी से और धीमी गति से औसत रेखा को पार करने की रणनीति का उपयोग करती है, स्टॉपलॉस और स्टॉपलॉस को नियंत्रित करने के लिए जोखिम निर्धारित करती है। यह सरल, व्यावहारिक और आसानी से समझने योग्य है। यह पैरामीटर को समायोजित करने और अनुकूलित करने के लिए उपयुक्त है।
/*backtest
start: 2023-11-19 00:00:00
end: 2023-12-19 00:00:00
period: 1h
basePeriod: 15m
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/
// © cesarpieres72
//@version=5
strategy("300% STRATEGY", overlay=true, margin_long=10, margin_short=10)
var float lastLongOrderPrice = na
var float lastShortOrderPrice = na
longCondition = ta.crossover(ta.sma(close, 1), ta.sma(close, 4))
if (longCondition)
strategy.entry("Long Entry", strategy.long) // Enter long
shortCondition = ta.crossunder(ta.sma(close, 1), ta.sma(close, 4))
if (shortCondition)
strategy.entry("Short Entry", strategy.short) // Enter short
if (longCondition)
lastLongOrderPrice := close
if (shortCondition)
lastShortOrderPrice := close
// Calculate stop loss and take profit based on the last executed order's price
stopLossLong = lastLongOrderPrice - 170 // 10 USDT lower than the last long order price
takeProfitLong = lastLongOrderPrice + 150 // 100 USDT higher than the last long order price
stopLossShort = lastShortOrderPrice + 170 // 10 USDT higher than the last short order price
takeProfitShort = lastShortOrderPrice - 150 // 100 USDT lower than the last short order price
// Apply stop loss and take profit to long positions
strategy.exit("Long Exit", from_entry="Long Entry", stop=stopLossLong, limit=takeProfitLong)
// Apply stop loss and take profit to short positions
strategy.exit("Short Exit", from_entry="Short Entry", stop=stopLossShort, limit=takeProfitShort)