거래 로봇을 무료로 다운로드 하는 법을 시청해보세요
당사를 Telegram에서 찾아주십시오!
당사 팬 페이지에 가입하십시오
스크립트가 흥미로우신가요?
그렇다면 링크 to it -
하셔서 다른 이들이 평가할 수 있도록 해보세요
스크립트가 마음에 드시나요? MetaTrader 5 터미널에서 시도해보십시오
스크립트

Risk Order Script: Drop at Stop Loss for Auto Lot Size and R:R Take Profit - MetaTrader 5용 스크립트

Wycliffe Wanjala Wanyonyi
Wycliffe Wanjala Wanyonyi
  • Data and Machine Learning Analyst 에  Rudder Data Analytics
  • 케냐
  • 1783
Lead Researcher at Rudder Data Analytics www.rudderdatanalytics.co.ke
조회수:
115
평가:
(1)
게시됨:
MQL5 프리랜스 이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동

script

Description


Calculating the correct lot size for every trade is slow and easy to get wrong, especially on gold and synthetic indices where tick values differ from forex. This script does it in one action: you drop it on the chart at the price where your stop loss should be, and it opens the trade with the correct lot size, stop loss and take profit.

Dropped below the current price, it opens a BUY. Dropped above the current price, it opens a SELL.

Input parameters

Risk per trade, % of account: how much of the account you are willing to lose if the stop loss is hit.
Risk is calculated from: account balance or equity.
Take profit as multiple of risk: 2.0 places the take profit at twice the stop loss distance (1:2). Set 0 for no take profit.
Show trade details and ask before sending: shows lot, entry, SL, TP, risk and reward in a confirmation window.
Magic number and Order comment: identify the trade for other tools or EAs.
Max slippage in points.

How to use

1. Copy the file to MQL5\Scripts and compile it.
2. Turn on the Algo Trading button.
3. Drag the script from the Navigator and drop it on the chart exactly at your stop loss price.
4. On the Common tab tick "Allow Algo Trading", set the inputs and click OK.
5. Check the details in the confirmation window and click Yes.

Safety features

Lot size is calculated with OrderCalcProfit, so it is correct for forex, metals, indices and synthetic instruments, including cross-currency pairs.
Lots are rounded down to the broker volume step, so the real risk never exceeds the chosen risk.
If the broker minimum lot would risk more than your setting, the script refuses the trade instead of opening it.
Checks the broker minimum stop distance and available free margin before sending.
Uses the filling mode allowed by the broker.

Recommended: any symbol, any timeframe.
Economic Calendar Event Lines by Impact Economic Calendar Event Lines by Impact

Draws a dotted vertical line at the release time of each economic calendar event of the selected currencies, coloured by impact, from the built-in MetaTrader 5 calendar.

Six-Timeframe EMA Trend Direction Panel Six-Timeframe EMA Trend Direction Panel

Compares a fast and a slow EMA on M5, M15, M30, H1, H4 and D1 and shows UP, DOWN or FLAT for each timeframe in one panel on the chart.

Spread Statistics by Hour Spread Statistics by Hour

Historical spread statistics by hour for many symbols at once (median, 75th percentile, mean), exported to CSV. Does not trade.

Mouteki DeMark Enhanced with FDI and Hurst Exponent - indicator for MetaTrader 5 Mouteki DeMark Enhanced with FDI and Hurst Exponent - indicator for MetaTrader 5

Mouteki-DeMark trendline indicator enhanced with FDI and Hurst Exponent analysis, breakout targets, a market dashboard, and signal, invalidation and early-close alerts.