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
Mình đang dùng máy khác để viết script nên ko có giao diện đầy đủ, ý tưởng chợt loé nên thử luôn thôi, ai dè hiệu suất 1 tháng oke quá, nhờ @vĩnh0902 test giúp 2 tháng xem thế nào, tuy nhiên lệnh hơi ít :D
Ps: ko phải máy mình nên ko chụp ảnh hiệu suất được :D
Mã:
// © anhnguyen14

//@version=4
strategy("BO HLC3", overlay=true)

t0=time(timeframe.period, "0000-0800")
bgcolor(t0?color.aqua:na)

Call = close<low[3] and low[1]>=low[3] and (low[2]<low[3] or low[2]<low[1])
strategy.entry("Call", strategy.long, when=Call and t0)

Put = close>high[3] and high[1]<=high[3] and (high[2]>high[3] or high[2]>high[1])
strategy.entry("Put", strategy.short, when=Put and t0)

strategy.close_all(when=barstate.isnew)
upload_2019-12-6_10-58-34.png
2 thagn này bác
 
@vĩnh0902 test thêm trường hợp này luôn nha bạn vĩnh, ít lệnh hơn trường hợp trên nhưng hiệu suất tốt hơn. Cái này trade dựa vào Fractal (2), mặc định của Fractal là 3: 3 nến báo hiệu + 3 nến xác nhận với nến trung tâm trùng nhau, tức là 1 bộ Fractal chuẩn bao gồm 5 nến, nhưng ở đây mình rút gọn lại chỉ còn 2 nến báo hiệu + 2 nến xác nhận + nến trung tâm là một, tức là bộ Fractal chỉ còn 3 nến, ko ngờ hiệu suất tháng vừa rồi của nó lại cao đến vậy, bạn test xem 2 tháng ok ko nha. Trường hợp ở post ngay trên thì nó bao gồm luôn cả trường hợp có Fractal (2) hoặc mém có Fractal (2) nên số lệnh nhiều hơn trường hợp của post này, bạn test giúp mình cả 2 trường hợp nha, tkiu :D
Mã:
// © anhnguyen14

//@version=4
strategy("BO HLC3-F1", overlay=true)

t0=time(timeframe.period, "0000-0800")
bgcolor(t0?color.aqua:na)

Call = close<low[3] and low[1]>=low[3] and (low[2]<low[3])
strategy.entry("Call", strategy.long, when=Call and t0)

Put = close>high[3] and high[1]<=high[3] and (high[2]>high[3])
strategy.entry("Put", strategy.short, when=Put and t0)

strategy.close_all(when=barstate.isnew)
upload_2019-12-6_10-59-53.png
day bác ơi
 
@vĩnh0902 test giúp mình em này nữa với, hihih :D
Mã:
// © anhnguyen14

//@version=4
strategy("BO %B", overlay=true)

t0=time(timeframe.period, "0000-0800")
bgcolor(t0?color.aqua:na)
len1 = 20
mult1 = 2.0
basis1 = sma(close,len1)
dev1 = mult1 * stdev(close, len1)
upper = basis1 + dev1
lower = basis1 - dev1
pB = (close - lower) / (upper - lower)

Call = close<low[3] and low[1]>=low[3] and (low[2]<low[3] or low[2]<low[1]) and pB<0
strategy.entry("Call", strategy.long, when=Call and t0)

Put = close>high[3] and high[1]<=high[3] and (high[2]>high[3]or high[2]>high[1]) and pB>1
strategy.entry("Put", strategy.short, when=Put and t0)

strategy.close_all(when=barstate.isnew)
 
@vĩnh0902 test giúp mình em này nữa với, hihih :D
Mã:
// © anhnguyen14

//@version=4
strategy("BO %B", overlay=true)

t0=time(timeframe.period, "0000-0800")
bgcolor(t0?color.aqua:na)
len1 = 20
mult1 = 2.0
basis1 = sma(close,len1)
dev1 = mult1 * stdev(close, len1)
upper = basis1 + dev1
lower = basis1 - dev1
pB = (close - lower) / (upper - lower)

Call = close<low[3] and low[1]>=low[3] and (low[2]<low[3] or low[2]<low[1]) and pB<0
strategy.entry("Call", strategy.long, when=Call and t0)

Put = close>high[3] and high[1]<=high[3] and (high[2]>high[3]or high[2]>high[1]) and pB>1
strategy.entry("Put", strategy.short, when=Put and t0)

strategy.close_all(when=barstate.isnew)
upload_2019-12-6_11-11-0.png
it lệnh quá bác ạ
 
@vĩnh0902 đã tích hợp code 43 lệnh vào ma trận v1.6, bổ sung quân cờ vào code 43 lệnh, kkaka update lên thành v1.7 luôn, test giúp mình 2 tháng nha :D
chrome_c1v6N3vwVc.png
 

Đính kèm

  • upload_2019-12-6_12-13-21.png
    upload_2019-12-6_12-13-21.png
    455.6 KB · Xem: 2
  • upload_2019-12-6_12-13-29.png
    upload_2019-12-6_12-13-29.png
    191.1 KB · Xem: 1
  • upload_2019-12-6_12-14-4.png
    upload_2019-12-6_12-14-4.png
    191.1 KB · Xem: 2
  • upload_2019-12-6_12-15-56.png
    upload_2019-12-6_12-15-56.png
    191.1 KB · Xem: 1

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

  • Mạc An trong Phân tích Forex - Vàng - Hàng hóa 1,660 Xem / 96 Trả lời
  • DuongHuy trong Hệ thống giao dịch - Trading system 37,517 Xem / 18 Trả lời
  • DuongHuy trong Phân tích Forex - Vàng - Hàng hóa 379 Xem / 29 Trả lời
  • Quíc Óp trong Phân tích Forex - Vàng - Hàng hóa 395 Xem / 18 Trả lời
  • 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