ٹوٹا ہوا فریکٹل: کسی کا ٹوٹا ہوا خواب آپ کا منافع ہے!

مصنف:چاؤ ژانگ، تاریخ: 2022-05-25 17:21:02
ٹیگز:صعودینشیبی

خیال خیال سادہ ہے: جب مارکیٹ موڑ لیتی ہے، تو اس سے ایک گروپ تاجروں کو بے ہوش کر دیا جاتا ہے۔ ہم ان کے ساتھ تجارت کرتے ہیں، ان کے باہر نکلنے کی ایک ہی سمت میں!

طریقہ کار ہم نے مارکیٹ کو پہلے ایک فریکٹل تخلیق کرنے دیا ہم پھر مارکیٹ ایک مخالف فریکٹل تخلیق کرنے دو پھر ہم نے مارکیٹ کو اس کے پیدا کردہ پہلے فریکٹل کو توڑنے کی اجازت دی، اس طرح اس عمل میں بہت سے تجارت کو پھنسنے پھر ہم صبر سے انتظار کرتے ہیں جب تک کہ مارکیٹ ان پھنسے ہوئے تاجروں کو باہر نکلنے کا موقع نہ دے - اور ہم ایک ہی سمت میں تجارت کرتے ہیں

کس طرح استعمال کرنے کے لئے؟ سبز خانے لمبے اندراج کے لیے ہیں، سرخ خانے مختصر کے لیے ہیں۔ جب بھی ایک باکس ظاہر ہوتا ہے، یہ خطرہ کے معیار ہیں - سیٹ اپ حد کے احکامات اور ساتھ تجارت! تمام ٹائم فریم پر کام کرتا ہے

اگر آپ کو یہ سکرپٹ پسند ہے تو، براہ کرم اس کے استعمال کے بارے میں ایک نوٹ چھوڑ دیں. میں ذاتی طور پر اسے اعلی ٹائم فریم تعصب کے ساتھ استعمال کرتا ہوں.

PS1: کچھ تاجروں کو اس مارکیٹ کی ساخت کی خرابی کہتے ہیں، کچھ اسے توڑنے والا کہتے ہیں، میں اسے صرف Broken Fractal پی ایس 2: ٹوٹے ہوئے فریکٹل کا ٹوٹنا بھی بہت طاقتور ہے۔ ان سے ہوشیار رہو!

بیک ٹسٹ

img


/*backtest
start: 2022-02-24 00:00:00
end: 2022-05-24 00:00:00
period: 1h
basePeriod: 15m
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/
// © makuchaku

//@version=4
study("Broken Fractal", overlay=true)
n = input(title="n==1 or 2", defval=2, type=input.integer)
bgColor = input(title="bgColor", type=input.bool, defval=false)
drawBoxes = input(title="drawBoxes", type=input.bool, defval=true)
showBullishSignal = input(title="showBullishSignal", type=input.bool, defval=true)
showBearishSignal = input(title="showBearishSignal", type=input.bool, defval=true)

var fractalCounter = 0
var highAtDownFractal = 0.0
var lowAtUpFractal = 0.0

downFractal = (n == 2 ? (high[n-2] < high[n]) and (high[n-1] < high[n]) and (high[n+1] < high[n]) and (high[n+2] < high[n]) : (high[1] > high[0]) and (high[1] > high[2]))
// plotchar(downFractal, char='⮝', location=location.abovebar, offset=-1*n, color=color.red, transp=0, title="Down Fractal") 
if downFractal
    //line.new(x1=bar_index-1, y1=high[n], x2=bar_index, y2=high[n], extend=extend.none, color=color.silver, style=line.style_solid, width=1)
    if fractalCounter > 0
        fractalCounter := 0
    highAtDownFractal := high[n]
    fractalCounter := fractalCounter - 1

upFractal = (n == 2 ? (low[n-2] > low[n]) and (low[n-1] > low[n]) and (low[n+1] > low[n]) and (low[n+2] > low[n]) : (low[1] < low[0]) and (low[1] < low[2]))
// plotchar(upFractal, char='⮟', location=location.belowbar, offset=-1*n, color=color.green, transp=0, title="Up Fractal")
if upFractal
    //line.new(x1=bar_index-1, y1=low[n], x2=bar_index, y2=low[n], extend=extend.none, color=color.silver, style=line.style_solid, width=1)
    if fractalCounter < 0
        fractalCounter := 0
    lowAtUpFractal := low[n]
    fractalCounter := fractalCounter + 1

sellSignal = (fractalCounter < 0) and (open > lowAtUpFractal) and (close < lowAtUpFractal)
//bgcolor(color=(sellSignal and bgColor and showBearishSignal ? color.red : na), transp=80)
//                      if sellSignal and drawBoxes and showBearishSignal
    //box.new(left=bar_index, top=lowAtUpFractal, right=bar_index+10, bottom=highAtDownFractal, bgcolor=color.new(color.red, 90), border_color=color.new(color.red, 10))


buySignal = (fractalCounter >= 1) and crossover(close, highAtDownFractal)
//bgcolor(color=(buySignal and bgColor and showBullishSignal ? color.green : na), transp=80)
//if buySignal and drawBoxes and showBullishSignal
    //box.new(left=bar_index, top=highAtDownFractal, right=bar_index+10, bottom=lowAtUpFractal, bgcolor=color.new(color.green, 90), border_color=color.new(color.green, 10))





if buySignal
    strategy.entry("Enter Long", strategy.long)
else if sellSignal
    strategy.entry("Enter Short", strategy.short)

متعلقہ

مزید