Bar by Bar MT5
- 专家
- Volodymyr Hrybachov
- 版本: 1.1
- 更新: 4 三月 2022
- 激活: 5
Scalper Expert Advisor,當連續的牛市/熊市柱數達到指定值時監控和執行交易。作用於新柱的開盤(默認為 M5),如果信號持續,則打開額外的交易。 EA 有幾個直接響應交易方向的參數:
TIMEFRAME - 工作時間框架;
MIN_BAR_SIZE - 最小柱尺寸,指定為 ATR 的百分比;
DIRECTION_CONTINUED - 在運動方向開啟交易的連續看漲/看跌柱數;
DIRECTION_REVERSAL - 以相反方向開啟交易的連續看漲/看跌柱數;
PERIOD_ATR - ATR 指標的周期,用於計算最小柱線尺寸;
MAX_ORDERS - 一個方向的最大訂單數;
IGNORE_SIGNAL - 如果已經有與信號相反的未平倉頭寸,則忽略打開交易的信號,直到相反交易的數量達到 MAX_ORDERS 值;
EA 具有基於時間的功能:
START_HOUR, START_MINUTE - 允許開啟交易的小時和分鐘;
STOP_HOUR, STOP_MINUTES - 交易結束的小時和分鐘;
CLOSE_ZEROLEVEL - 如果允許的交易時間結束,則在盈虧平衡時關閉所有訂單;
金錢管理:
USE_BALANCE_PCT - 顧問可以使用的餘額百分比,為每個交易品種單獨設置;
FIX_START_LOT - 每 N 個餘額(FROM_BALANCE)的固定起始手數;
FROM_BALANCE - 用於計算起始手數的 N 餘額金額 (FIX_START_LOT);
成交:
STOPLOSS_IN_PIPS - 如果為 TRUE,則 STOPLOSS 設置為點數,否則設置為餘額的百分比;
VIRTUAL_STOPLOSS - 止損;
STOP_TRADING - 發生虧損時停止交易;
VIRTUAL_TAKEPROFIT - 以點為單位的獲利,最初根據第一個訂單的開盤價計算;
START_TP_ZEROLEVEL - 從盈虧平衡點開始計算止盈時的訂單數量;
CLOSE_AT_ZEROLEVEL - 在一般盈虧平衡點關閉所有交易的訂單數量;
USE_TRAILINGSTOP - 允許使用追踪止損;
TRAILING_STOP, TRAILING_STEP - 追踪止損的開始和步長;