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

My Orders - MetaTrader 4 Expert | MT4 EA Download - MetaTrader 4 Resources

author EAcpu | 3 reads | 0 comments |

This EA uses horizontal lines for fast and easy order management. It uses descriptions to store variables such as stop loss and lot size.

Row variables:

Use the following in the Object Name box (I used the current default of LO_PREFIX "#"):

Use the following (without quotes) in the object description box:

Once the order is opened, 3 horizontal lines will be created. One for the opening price, one for the stop loss level and one for the take profit level. When you move these values, it will modify the Stop Loss, Take Profit and (for pending orders) the opening price. After you modify the order, the EA will update the description of the main line with the name "#" + TicketNumber as the new stop loss and take profit values. You can also modify the value directly from the description and it will be updated on the next tick.

Thanks I wrote this EA loosely based on a similar EA called Line Order written by Erich Pribitzer on this forum, mainly because I've wanted to do it for a while but couldn't figure out how to do it.

I hope this helps with your trading, please leave a comment if any issues arise or you can think of any features that might be good.


Attachment download

📎MyLineOrder.mq4 (20.36 KB)

Source: MQL5 #10464

My Order - MetaTrader 4 Expert | MT4 EA Download - MetaTrader 4 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