Tìm cơ hội cược BO với Trend line

Tìm cơ hội cược BO với Trend line

Tìm cơ hội cược BO với Trend line
@vĩnh0902 @Trương Nhật EJ 7-3 :D vừa code thêm rule M5 số 2 ko đc cắn cắn bands Bb(20,2) :D
IMG_20200207_140449.jpg
 
 
Rule M5 số 2 ko được cắn band vừa phát huy tác dụng, cây nến M15 vừa rồi có 2 cây M5 đỏ, trong đó cây M5 số 2 cắn band dưới của Bb(20,2) nên 2/3 Signal ko xuất tín hiệu và né được 1 lệnh loss, từ logic đó lại tòi ra 1 setup cực độc cho 2/3 Signal, anh em cho ý kiến xem nên thêm vào rule ko, đó là m5 số 2 mà cắn band thì cây M5 cuối chúng ta sẽ đu band :D
 
 
Code đã bổ sung rule cho M5 số 2, up trước chiều nay anh em chạy chung cho zui :D còn cái cắn band đu band anh em theo dõi xem có nên thêm vào ko nhé :D
Mã:
//@version=4
//BO - Bar M15 2/3 Signal
//author: anhnguyen14
study(title="BO - Bar M15 2/3 Signal", overlay=false)
hline1=hline(25)
hline0=hline(0)
// Calculate hours, minutes, and seconds till close
timeLeft = barstate.isrealtime ?
     (time_close - timenow) / 1000 :
     na

minutesLeft = security(syminfo.tickerid,"15",floor((timeLeft % 3600) / 60))
secondsLeft = timeLeft % 60
//Bollinger Bands - 20,2.0
len20 = 20
mult20 = 2
sma_20 = sma(close, len20)
basis20 = sma_20
dev20 = mult20 * stdev(close, len20)
upper20 = basis20 + dev20
lower20 = basis20 - dev20

//============================================\\
//Delay 10': wait for prices pattern
sig_time=minutesLeft<5? true:false


//Signal
x1 =
       sig_time==true
       and close[2]>open[2] and close[1]>open[1]
       and close[1]<upper20[1]


y1 =
       sig_time==true
       and close[2]<open[2] and close[1]<open[1]
       and close[1]>lower20[1]

//Signal
xTech=
       x1
      
      

yTech=
       y1
      
      
//--------------------------------------\\
// - /FUNCTIONS

//--------------------------------------\\
//Plot Analyzing Signals

sigtext=x1?"Put signal":y1?"Call signal":"Analyzing Signals - Bar M15 Time left:"+tostring(minutesLeft)+":"+tostring(secondsLeft)
sig_col=xTech?color.new(color.red,0):yTech?color.new(color.blue,0):color.new(color.navy,0)
label_sig_text = label.new(bar_index[0], 8, text=sigtext, style=label.style_none, textcolor=sig_col, size=size.large)
label.delete(label_sig_text[1])

//plot Signal
putcol = xTech? color.red : na
callcol = yTech? color.blue : na
PutSignal= xTech?-100:na
CallSignal= yTech?-100:na
hsignalm1=hline(-100)
plot(PutSignal, title='Put Signal', style=plot.style_columns, color=color.red, offset=0, transp=0, show_last=1)
plot(CallSignal, title='Call Signal', style=plot.style_columns, color=color.blue, offset=0, transp=0, show_last=1)
plotshape(PutSignal, title='Put', text="Put", style=shape.labeldown, location=location.bottom, color=color.orange, textcolor=color.black, offset=0, transp=0, show_last=1)
plotshape(CallSignal, title='Call', text="Call", style=shape.labelup, location=location.bottom, color=color.orange, textcolor=color.black, offset=0, transp=0, show_last=1)

// Alert
mms1="Signal alert"
mms2="Put alert"
mms3="Call alert"
PutAlert=
       (xTech)
      
CallAlert=
       (yTech)
      

alertcondition(PutAlert or CallAlert, title="Signal alert", message=mms1)
alertcondition(PutAlert, title="Put alert", message=mms2)
alertcondition(CallAlert, title="Call alert", message=mms3)

//EOF
 
 
Code đã bổ sung rule cho M5 số 2, up trước chiều nay anh em chạy chung cho zui :D còn cái cắn band đu band anh em theo dõi xem có nên thêm vào ko nhé :D
Mã:
//@version=4
//BO - Bar M15 2/3 Signal
//author: anhnguyen14
study(title="BO - Bar M15 2/3 Signal", overlay=false)
hline1=hline(25)
hline0=hline(0)
// Calculate hours, minutes, and seconds till close
timeLeft = barstate.isrealtime ?
     (time_close - timenow) / 1000 :
     na

minutesLeft = security(syminfo.tickerid,"15",floor((timeLeft % 3600) / 60))
secondsLeft = timeLeft % 60
//Bollinger Bands - 20,2.0
len20 = 20
mult20 = 2
sma_20 = sma(close, len20)
basis20 = sma_20
dev20 = mult20 * stdev(close, len20)
upper20 = basis20 + dev20
lower20 = basis20 - dev20

//============================================\\
//Delay 10': wait for prices pattern
sig_time=minutesLeft<5? true:false


//Signal
x1 =
       sig_time==true
       and close[2]>open[2] and close[1]>open[1]
       and close[1]<upper20[1]


y1 =
       sig_time==true
       and close[2]<open[2] and close[1]<open[1]
       and close[1]>lower20[1]

//Signal
xTech=
       x1
     
     

yTech=
       y1
     
     
//--------------------------------------\\
// - /FUNCTIONS

//--------------------------------------\\
//Plot Analyzing Signals

sigtext=x1?"Put signal":y1?"Call signal":"Analyzing Signals - Bar M15 Time left:"+tostring(minutesLeft)+":"+tostring(secondsLeft)
sig_col=xTech?color.new(color.red,0):yTech?color.new(color.blue,0):color.new(color.navy,0)
label_sig_text = label.new(bar_index[0], 8, text=sigtext, style=label.style_none, textcolor=sig_col, size=size.large)
label.delete(label_sig_text[1])

//plot Signal
putcol = xTech? color.red : na
callcol = yTech? color.blue : na
PutSignal= xTech?-100:na
CallSignal= yTech?-100:na
hsignalm1=hline(-100)
plot(PutSignal, title='Put Signal', style=plot.style_columns, color=color.red, offset=0, transp=0, show_last=1)
plot(CallSignal, title='Call Signal', style=plot.style_columns, color=color.blue, offset=0, transp=0, show_last=1)
plotshape(PutSignal, title='Put', text="Put", style=shape.labeldown, location=location.bottom, color=color.orange, textcolor=color.black, offset=0, transp=0, show_last=1)
plotshape(CallSignal, title='Call', text="Call", style=shape.labelup, location=location.bottom, color=color.orange, textcolor=color.black, offset=0, transp=0, show_last=1)

// Alert
mms1="Signal alert"
mms2="Put alert"
mms3="Call alert"
PutAlert=
       (xTech)
     
CallAlert=
       (yTech)
     

alertcondition(PutAlert or CallAlert, title="Signal alert", message=mms1)
alertcondition(PutAlert, title="Put alert", message=mms2)
alertcondition(CallAlert, title="Call alert", message=mms3)

//EOF
cắn band đu band e nghĩ là nên né . k biêt nó bám đến bao h cũng như vừa chạm nó bật lại luôn ý chứ
 
 

BÌNH LUẬN MỚI NHẤT

AdBlock Detected

We get it, advertisements are annoying!

Sure, ad-blocking software does a great job at blocking ads, but it also blocks useful features of our website. For the best site experience please disable your AdBlocker.

Back
Bên trên

Miễn trừ trách nhiệm

Tất cả nội dung trên website này đều vì mục đích cung cấp thông tin và không phải lời khuyên đầu tư.

Tại Việt Nam, giao dịch CFD forex có các rủi ro nhất định, trong đó bao gồm rủi ro về pháp lý. Độc giả nên tìm hiểu kỹ trước khi đưa ra quyết định tham gia.