E biết được cái này nhưng bị thiếu cái gì đó tỷ lên win >70% anh xem thử giúp e với ạ! Cám ơn a nhiều.
// This source code is subject to the terms of the Mozilla Public License 2.0 at
https://mozilla.org/MPL/2.0/
// © NguyenNhatTan
//@version=4
// Chiến lược RSI với vốn ban đầu là 1000$ fee giao dịch 0.075% (Binance) Mỗi lệnh vào 500$
strategy("Chiến lược với RSI - Nhật Tân Test", initial_capital = 1000, commission_type=strategy.commission.percent,commission_value=0.075,default_qty_value=500,default_qty_type=strategy.cash,currency=currency.USD")
//Dữ liệu đầu vào
sma =
sma(close, 1)
//Strategy long or short
long = rsi(close, 2) <= 20 and rsi(close, 18) > rsi(close, 60) and strategy.opentrades==0
strategy.risk.allow_entry_in(strategy.direction.long)
strategy.entry('LONG', strategy.long, when=long)
study("Script của tôi")
plot(close)