Welcome Forex EA downloads & MT4/MT5 auto-trading resources — EAs, Gold EAs, quant tools and real-world automation.
Sign In Sign Up

Open a position - MetaTrader 4 script | Trading script download - MT4/MT5 resources - MetaTrader 5 resources

author EAcpu | 3 reads | 0 comments |

When opening a position, the script automatically sets the lot size (three options: fixed lot size and two options, as described below https://www.mql5.com/ru/forum/108290 ).

At the same time, the script tries to select Stop Loss and (equal) Take Profit. These are set as a safety measure and you may need to modify them after opening a position.

If necessary, you can set up to save a screenshot of the chart at the moment when the position was opened, so that you can review the operation in the future, not the clear history, but the situation when the position was opened, so as to try to remember "why I did this".


Attachment download

📎 _auto_BUY.mq4 (5.75 KB)

📎 _auto_SELL.mq4 (5.77 KB)

Source: MQL5 #8657

Opening a position - MetaTrader 4 script | Trading script download - MT4/MT5 resources - MetaTrader 5 resource usage and screening suggestions

This content can be used as a data entry for foreign exchange EA, indicators, trading systems or quantitative strategies. When reading, it is recommended to make a judgment based on the platform version, trading type, time period, risk control method and historical discussion background. Do not use it directly based on the title or a single point of view.

If the content involves MT4/MT5, ForexFactory, MQL source code, TradingView indicators or strategy discussions, you can give priority to the parameter logic, backtest environment, market stage, execution cost and failure conditions, and then decide whether to continue downloading, reviewing or secondary development.

Risk warning

For any EA, indicator or automatic trading strategy, it is recommended to first conduct historical backtesting, simulation account verification and small capital testing. Grid, Martin, high frequency, recovery and examination strategies especially require setting the account risk upper limit, single variety risk upper limit and manual deactivation conditions.

Verification code Refresh