lucagast

Strategia molto semplice su E-mini S&P

Giá lên
lucagast Cập nhật   
CME_MINI:ES1!   Hợp đồng tương lai E-mini S&P 500
Questa è una strategia che sfrutta la tendenza mean-reversion presente sugli indici americani da molti anni. Si va long quando la chiusura della barra giornaliera è inferiore alla chiusura di 2 giorni fa. Si esce dal long quando la chiusura della barra giornaliera è superiore a quella di 2 giorni fa. Funziona al meglio su grafici daily, ma potrebbe essere usata anche sul settimanale.
Bình luận:
//@version=2
strategy("C= testPeriodStart) and (time <= testPeriodStop) ? #00FF00 : na
bgcolor(testPeriodBackgroundColor, transp=97)

testPeriod() =>
time >= testPeriodStart and time <= testPeriodStop ? true : false
strategy.entry("WR long",true, when = close < close and testPeriod())
strategy.close("WR long", when = close > close)

//plot(strategy.equity, title="equity", color=red, linewidth=2, style=areabr)
Thông báo miễn trừ trách nhiệm

Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.