
Chiến lược này là một công cụ cảnh báo mua bán bằng tay, có thể đặt các tham số như giá mua, giá bán, và cảnh báo mua hoặc bán khi giá kích hoạt điều kiện.
Chiến lược này là một công cụ mua và bán thủ công không tự động. Nó có thể tạo ra các báo động thắt lưng để người dùng mua và bán tại các điểm giá được thiết lập trước. Người dùng có thể thiết lập:
Bạn có thể dễ dàng kiểm tra chiến lược này bằng cách thay đổi giá trị chu kỳ và giá trị thiết lập.
Bằng cách này, người dùng có thể tự động quyết định thời gian giao dịch dựa trên thông tin cảnh báo, không cần đặt hàng tự động và linh hoạt hơn.
Để giảm rủi ro, nên sử dụng dừng lỗ để hạn chế tổn thất; theo dõi chặt chẽ thị trường, hành động kịp thời vào những thời điểm quan trọng; tiến hành thử nghiệm nhiều vòng, tối ưu hóa các tham số.
Với những cải tiến này, công cụ này sẽ trở nên thân thiện và thông minh hơn với người dùng, giúp tăng hiệu quả giao dịch thủ công.
Chiến lược này là một công cụ hỗ trợ giao dịch thủ công, lợi thế lớn nhất của nó là hoạt động linh hoạt, có thể xác định thời gian giao dịch hoàn toàn dựa trên quyết định của người dùng. So với chiến lược giao dịch tự động, có quyền kiểm soát lớn hơn. Đồng thời, cũng cung cấp chức năng thiết lập tham số, có thể giúp người dùng thử nghiệm các chiến lược giao dịch khác nhau, xác minh ý tưởng giao dịch, có thể gọi là nhiều mũi tên.
/*backtest
start: 2024-01-21 00:00:00
end: 2024-02-20 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/
// © MGTG
title_name = 'Manual Buy & Sell Alerts'
//@version=5
strategy(
title=title_name, overlay=true, initial_capital=10000, default_qty_type=strategy.percent_of_equity, default_qty_value=100,
pyramiding=1, commission_type=strategy.commission.percent, commission_value=0.1)
// Period
sTime = input(timestamp("2020-01-01"), "Start", group="Period", inline='1')
eTime = input(timestamp("2030-01-01"), "End", group="Period", inline='2')
inDateRange = true
// Bot Set-up
buy_type = input.string('stop', 'Buy Type', group='Buy&Sell', inline='1', options=['stop', 'limit'])
buy_price = input.float(49000, 'Buy Price', group='Buy&Sell', inline='1')
target_price = input.float(51000, 'Target Price', group='Buy&Sell', inline='2')
stop_price = input.float(47000, 'Stop Price', group='Buy&Sell', inline='2')
avg_price = strategy.position_avg_price
division = 1
// Alert message
AlertLong=input.string("Buy message", "Buy Alert Message", group='Alert set-up', inline='1')
AlertExit=input.string("Sell message", "Sell Alert Message", group='Alert set-up', inline='1')
plot(buy_price, 'Buy Price', color=color.new(#009688, 0), style=plot.style_linebr, offset=1)
plot(target_price, 'Take Profit', color=color.new(color.orange, 0), style=plot.style_linebr, offset=1)
plot(stop_price, 'Safety', color=color.new(color.aqua, 0), style=plot.style_linebr, offset=1)
posSize =
strategy.equity / close
strategy.exit("sell", "buy", limit=target_price, stop=stop_price, alert_message=AlertExit)
longCondition = inDateRange and strategy.position_size == 0
if longCondition and buy_type == 'stop'
strategy.entry("buy", strategy.long, qty=posSize, stop=buy_price, when=close < buy_price, comment="buy_STOP", alert_message=AlertLong)
if longCondition and buy_type == 'limit'
strategy.entry("buy", strategy.long, qty=posSize, limit=buy_price, when=close > buy_price, comment="buy_LIMIT", alert_message=AlertLong)