
この策略は,手動の買出警報ツールで,買入価格,売出価格などのパラメータを設定し,価格が条件を触発したときに買入または売出警報を提示します.
この戦略は,非自動化された手動の買賣ツールである. 警報を生成して,ユーザが,事前に設定した価格ポイントで買ったり売ったりできるようにする. ユーザは以下の設定をすることができる.
周期値と設定値を変更することで,この戦略を簡単にテストできます.
この方法により,ユーザーは自動注文ではなく,アラート情報に基づいて手動で取引のタイミングを決定し,より柔軟になります.
リスクを下げるために,損失を制限するためにストップを採用することを推奨します. 市場を注意深く監視し,重要なタイミングで行動し,複数回テストを行い,パラメータを最適化します.
ツールがユーザーフレンドリーでスマートになるため,手動取引の効率を向上させることができます.
この戦略は,手動取引の補助的なツールとして,最大優位性は,操作の柔軟性であり,完全にユーザーの判断に基づいて取引のタイミングを決定することができます.自動取引戦略と比較して,より大きなコントロール力を持っています.同時に,パラメータ設定機能も提供されており,ユーザが異なる取引戦略をテストし,取引理念を検証することを便利にすることができます.もちろん,ツールとして,ユーザの継続的な最適化と改善も必要で,より複雑な取引のニーズに適応し,より大きな役割を果たします.
/*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)