Close Orders By Target or Cut Loss – EA MetaTrader 4

Close Orders By Target or Cut Loss - expert for MetaTrader 4
We use this EA as a trading tool. There are 3 inputs required, as follows: Profit Target Cut Loss Magic Number extern    double         inTargetProfitMoney     = 10;       //Target Profit ($) extern    double         inCutLossMoney          = 0.0;      //Cut Loss ($) extern    int            inMagicNumber           = 0;        //Magic Number When this EA is executed, it will first call the OnInit () function. Where we will verify the … Read more

Show Orders History On Chart – indicator MetaTrader 4

Show on chart
Show Orders History On Chart This is a Indicators to Show Orders History On Chart, Include Buy and Sell Orders, StopLoss and TakeProfit, Order Close, and Trend line. Setting: ShowHistoryOrders: Whether to show history orders ShowOpenOrders: Whether to show open orders ShowStopLosses: Whether to show order stoploss ShowTakeProfits: Whether to show order takeprofit BuyArrowColor: Order buy arrow color … Read more

Code for counting open orders by Order Type individually – EA MetaTrader 4

Code for counting open orders by Order Type individually - expert for MetaTrader 4
It is common for Expert Advisor developers to face the challenge of making the robot capable of opening and administering more than one order at the same time. For that, there needs to be a way to recognize the total open orders running and also each one of them by type. With that in mind, … Read more

Expert Advisor for Opening Multiple Buy and Sell Orders Based on User Input – EA MetaTrader 5

Expert Advisor for Opening Multiple Buy and Sell Orders Based on User Input - expert for MetaTrader 5
This Expert Advisor (EA) for MetaTrader 5 (MT5) opens multiple buy and sell orders based on user input. The EA has input variables for the number of buy and sell orders, risk percentage per trade, stop loss, take profit, and slippage. It also includes a simple user interface with Buy and Sell buttons that trigger … Read more

Simple check open orders filter boolean function for Expert Advisors – EA MetaTrader 4

Simple check open orders filter boolean function for Expert Advisors - expert for MetaTrader 4
It is common for novice developers to face the challenge of making the Expert Advisor able to detect if there are open orders independently, without using the OrdersTotal() function, as this does not recognize if an order was opened by an EA or if it was opened manually, since it returns the total amount of … Read more

Ranged Grid Bot EA with pending orders – EA MetaTrader 4

Ranged Grid Bot EA with pending orders - expert for MetaTrader 4
UPDATE: v1.01 Added magic number Added control on symbol (it can be now attached to different charts on the same account) Added time control for trading Added an option to forcibly close all the trades after the end hour The EA creates a grid of equally spaced pending limit orders taking into account:  – The … Read more