Close or delete orders based on type in MT4 – script MetaTrader 4

Close or delete orders based on type in MT4 - script for MetaTrader 4
This simple script will close /delete a order based on the input value passed on the script. for example if user pass OP_BUY then it will close all the buy trades. Similarly if someone pass OP_SELL_LIMIT then it will delete all sell limit orders  Close or delete orders based on type in MT4 – script

Simple continuous trend-following strategy for buying and selling based on predefined conditions – EA MetaTrader 4

Simple continuous trend-following strategy for buying and selling based on predefined conditions - expert for MetaTrader 4
This MetaTrader 4 (MT4) script implements a simple continuous trend-following strategy for buying and selling based on predefined conditions. Here’s a breakdown of the script: Initialization: The script initializes and prints a message when initialized successfully. Deinitialization: The script deinitializes and prints a message when deinitialized. OnTick Function: This function executes whenever there’s a new

Code Block for “Trailing Stop” based on current market price. (Ask / Bid) – EA MetaTrader 5

Code Block for "Trailing Stop" based on current market price. (Ask / Bid) - expert for MetaTrader 5
This code block works if you use either a Stop Loss or Not.  Requirements  You need to include “Trade.mqh ” to get access to the CTrade class which allows you to work with positions and orders. #include <Trade\Trade.mqh> // <<—————————————— Include this “Trade.mqh” to access the CTrade Class You need to set an input parameter

Multiple Buys and Sells ORDERS based on a currency pair strength. – script MetaTrader 4

Multiple Buys and Sells ORDERS based on a currency pair strength. - script for MetaTrader 4
//+——————————————————————+ //| Multiple Buys and Sells ORDERS based on a currency pair strength. //+——————————————————————+ #property copyright     “Copyright 2024, MetaQuotes Ltd.” #property link          “ #property version       “1.01” #property description   “persinaru@gmail.com” #property description   “IP 2024 – free open source” #property description   “AUD CAD CHF EUR GBP JPY NZD USD SGD.”

Take Profit based on current profit – library MetaTrader 4

Minimum Profit
Introduction Many Expert Advisors (EAs) tend to close orders at the take profit level, considering the pip distance from the purchase price. However, the code used by EA NextBot is based mainly on the current profit . This approach allows you to easily manage the take profit with multiple open positions, monitoring the total current profit based

My first EA based on Stochastic – EA MetaTrader 4

My first EA based on Stochastic - expert for MetaTrader 4
This EA uses 3 Timeframes to identify the best signal Buy Signal STO5 indicates that the price will rise, STOm15 is also rising and STOm30 Sell Signal STO5 indicates that the price will fall, and falling STOm15 must also STOm30 The optimization should be weekly or monthly ——————-Version 2—————————— Changes. Set the time frame on

Custom indicator based on Heiken Ashi and aimed to handle swing trades – indicator MetaTrader 4

Custom indicator based on Heiken Ashi and aimed to handle swing trades - indicator for MetaTrader 4
Author: Joe Chalhoub This FX custom indicator is very easy to set, it does not predict or forecast future trend movement it allows traders to take the maximum profit from a long or short trade. To install this indicator open the H5 period and insert it. It uses the 5 minutes period for entry points.

Heiken Ashi based EA – EA MetaTrader 5

Heiken Ashi based EA
The Expert Advisor is based on Heiken Ashi indicator. Suitable pair and timeframe: EURAUD — H1 Strategy Tester Report MetaQuotes-Demo (Build 294) Settings Expert: HA_kEA Symbol: EURAUD Period: H1 (2010.07.18 – 2010.07.24) Inputs: P=100 Broker: MetaQuotes Software Corp. Currency: USD Initial Deposit: 3 000.00 Results Bars: 120 Ticks: 378767 Total Net Profit: -2 047.37 Gross

A simple RKD Expert Advisor based on a specified custom RKD indicator – EA MetaTrader 5

Expert Advisor  based on a specified custom RKD indicator
This is a simple Expert Advisor using a specified custom RKD indicator. The code describes how a specified custom RKD indicator can be used in MetaTrader 5 Expert Advisor. The better results for EUR/USD, GBPUSD – 30mins, 1H and 2H timeframes. Tested Result: Strategy Tester Report autoRKD_EA MetaQuotes-Demo (Build 286)   Settings: Symbol: GBPUSD (Great