موافقت پذیر ایم اے اور ٹرینڈ لائنز پر مبنی ٹرینڈ بریک آؤٹ حکمت عملی

مصنف:چاؤ ژانگ، تاریخ: 2023-09-19 15:49:37
ٹیگز:

جائزہ

یہ حکمت عملی اندراجات کے لئے ایک انکولی چلتی اوسط اور ٹرینڈ لائن بریکآؤٹس ، اور باہر نکلنے کے لئے آر ایس آئی کا استعمال کرتی ہے۔ اس کا مقصد حالات پوری ہونے پر رجحانات میں داخل ہونا ، زیادہ خریدنے کی سطح پر منافع حاصل کرنا ، اور ہر ماہ ایک تجارت تک محدود رہنا ہے۔

حکمت عملی منطق

  1. مجموعی رجحان کا تعین کرنے کے لئے 99 پیریڈ ایڈاپٹیو ایم اے کا حساب لگاتا ہے۔

  2. اوپر کی رجحان لائن مزاحمت کے لئے 14 مدت کے مقامی بلندیاں کا حساب لگاتا ہے۔

  3. جب قریب ٹرینڈ لائن کے اوپر ٹوٹ جاتا ہے اور اس مہینے کوئی حکم نہیں ہوتا تو طویل ہوتا ہے۔

  4. 14 مدت کے آر ایس آئی کا حساب لگاتا ہے اور آر ایس آئی 70 سے زیادہ (اوور بک) پر باہر نکلتا ہے۔

  5. ہر ماہ ایک تجارت کو یقینی بنانے کے لئے آخری اندراج مہینے کو ٹریک کرتا ہے.

فوائد کا تجزیہ

  1. انکولی ایم اے متحرک طور پر رجحان کی تبدیلیوں کو ٹریک کرتا ہے۔

  2. ٹرینڈ لائن بریک آؤٹ انٹری کی درستگی کو بہتر بناتا ہے۔

  3. RSI مؤثر طریقے سے خطرے کے کنٹرول کے لئے overbought / oversold کی سطح کا فیصلہ کرتا ہے.

  4. ایک تجارت فی مہینہ تعدد اور فیس کو کم کرتی ہے.

  5. سادہ اور واضح منطق، سمجھنے اور عمل میں لانا آسان ہے۔

خطرے کا تجزیہ

  1. غلط پیرامیٹرز کو یاد اندراجات کا سبب بن سکتا ہے.

  2. فکسڈ ایگزٹ انڈیکیٹرز بروقت مارکیٹوں کو اپنانے کے قابل نہیں ہیں۔

  3. واپسی کا امکان۔

  4. طویل عرصے تک برقرار رکھنے کے لئے کوئی خطرہ کنٹرول نہیں.

  5. بہت سے فلٹرز اندراجات کو روک سکتے ہیں.

اصلاح کی ہدایات

  1. زیادہ سے زیادہ ترتیبات کے لئے مختلف پیرامیٹرز کی جانچ کریں.

  2. حکمت عملی کی مضبوطی کو بہتر بنانے کے لئے فلٹرز شامل کریں.

  3. متحرک اور پیچھے رکنے کی حکمت عملی تیار کریں.

  4. مضبوط بھاگنے کی نشاندہی کرنے کے لئے انٹری منطق کو بہتر بنائیں.

  5. مناسب آلات اور ٹائم فریم کا تجربہ کریں۔

  6. جھوٹے بریک آؤٹ سے بچنے کے لئے رجحان فلٹر شامل کریں.

خلاصہ

یہ حکمت عملی رجحان تجزیہ اور آسکیلیٹرز کو مستحکم رجحان کے بعد اثر کے ل integrates ضم کرتی ہے۔ پیرامیٹرز ، متحرک باہر نکلنے وغیرہ پر مزید اصلاحات اسے ایک قابل اعتماد کوانٹم سسٹم بنا سکتی ہیں۔ مجموعی طور پر اس میں اچھی آپریشنلٹی ہے اور اس میں بہتری اور تصدیق کے قابل ہے۔


/*backtest
start: 2023-09-11 00:00:00
end: 2023-09-18 00:00:00
period: 15m
basePeriod: 5m
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/

//@version=5
strategy('Bannos Strategy', shorttitle='Bannos', overlay=true)

//The provided script is an indicator for TradingView written in Pine Script version 5. The indicator is used to determine entry and exit points for a trading strategy. Here's a detailed breakdown of what the script does:

// Strategy Definition:

// Bannos Strategy is the full name, with a short title Bannos.
// The overlay=true option indicates that the strategy will be overlayed on the price chart.
// Tracking Entry Month:

// A variable lastEntryMonth is set up to track the month of the last entry.
// currentMonth identifies the current month.
// Trend Regularity Adaptive Moving Average (TRAMA):

// It takes an input of length 99 as default.
// It uses adaptive calculations to track trend changes.
// Trendlines with Breaks:

// Identifies local peaks over a given period (in this case, 14) and calculates a slope based on these peaks.
// Relative Strength Index (RSI):

// Uses a length of 14 (default) to calculate the RSI.
// RSI is an oscillation indicator that indicates overbought or oversold conditions.
// Strategy Logic for Long Entry:

// A long position is opened if:
// The close price is above the TRAMA.
// There's a crossover of the close price and the upper trendline.
// The position is taken only once per month.
// Strategy Logic for Long Exit:

// The long position is closed if the RSI exceeds 70, indicating an overbought condition.
// Plotting:

// The TRAMA is plotted in red on the chart.
// A horizontal line is also drawn at 70 to indicate the RSI's overbought zone.
// In summary, this strategy aims to enter a long position when certain trend and crossover conditions are met, and close the position when the market is considered overbought as per the RSI. Additionally, it ensures entries only occur once a month.
//



// Variable pour suivre le mois de la dernière entrée
var float lastEntryMonth = na
currentMonth = month(time)

// Parameters for Trend Regularity Adaptive Moving Average (TRAMA)
length_trama = input(99)
src_trama = close
ama = 0.
hh = math.max(math.sign(ta.change(ta.highest(length_trama))), 0)
ll = math.max(math.sign(ta.change(ta.lowest(length_trama)) * -1), 0)
tc = math.pow(ta.sma(hh or ll ? 1 : 0, length_trama), 2)
ama := nz(ama[1] + tc * (src_trama - ama[1]), src_trama)

// Parameters for Trendlines with Breaks
length_trend = 14
mult = 1.0
ph = ta.pivothigh(length_trend, length_trend)
upper = 0.
slope_ph = 0.
slope_ph := ph ? mult : slope_ph
upper := ph ? ph : upper - slope_ph

// Parameters for RSI
rsiLength = 14
up = ta.rma(math.max(ta.change(close), 0), rsiLength)
down = ta.rma(-math.min(ta.change(close), 0), rsiLength)
rsi = down == 0 ? 100 : up == 0 ? 0 : 100 - (100 / (1 + up / down))

// Strategy Logic for Long Entry
longCondition = close > ama and ta.crossover(close, upper) and (na(lastEntryMonth) or lastEntryMonth != currentMonth)
if (longCondition)
    lastEntryMonth := currentMonth
    strategy.entry('Long', strategy.long)

// Strategy Logic for Long Exit
exitCondition = rsi > 70
if (exitCondition)
    strategy.close('Long')

// Plotting
plot(ama, 'TRAMA', color=color.red)
hline(70, 'Overbought', color=color.red)


مزید