Specification
// Expert Advisor Example for MT4
#include <Trade\Trade.mqh>
// Global Variables
int gi_44 = 0;
int gi_48 = 0;
int gi_52 = 0;
int gi_56 = 0;
double g_price_564 = 0.0;
double g_price_568 = 0.0;
double g_price_572 = 0.0;
double g_lots_588 = 0.0;
// Entry Point
void OnTick()
{
// Define Variables
int l_cmd_0;
double l_price_4;
// Get Last Order
l_cmd_0 = OrderType();
// Check if no order is open
if (l_cmd_0 == OP_BUY || l_cmd_0 == OP_SELL)
return;
// Check if we are not in position
if (PositionSelect(Symbol()))
{
if (PositionGetDouble(POSITION_TYPE) == POSITION_TYPE_BUY)
{
// Set Close Price for Buy Order
l_price_4 = Bid;
// Close Buy Order
OrderClose(PositionTicket(), PositionLots(), l_price_4, 3);
}
else
{
// Set Close Price for Sell Order
l_price_4 = Ask;
// Close Sell Order
OrderClose(PositionTicket(), PositionLots(), l_price_4, 3);
}
// Reset Global Variables
gi_44 = 0;
gi_48 = 0;
gi_52 = 0;
gi_56 = 0;
g_price_564 = 0.0;
g_price_568 = 0.0;
g_price_572 = 0.0;
g_lots_588 = 0.0;
}
else
{
// Set Lots for Order
g_lots_588 = Lot;
// Check if Buy Order should be placed
if (gi_44 == 0)
{
// Place Buy Order
gi_44 = OrderSend(Symbol(), OP_BUY, g_lots_588, Ask, 3, 0, 0, "My EA", 16388, 0, Green);
}
else if (gi_48 == 0)
{
// Place Buy Order
gi_48 = OrderSend(Symbol(), OP_BUY, g_lots_588, Ask, 3, 0, 0, "My EA", 16388, 0, Green);
}
else if (gi_52 == 0)
{
// Place Buy Order
gi_52 = OrderSend(Symbol(), OP_BUY, g_lots_588, Ask, 3, 0, 0, "My EA", 16388, 0, Green);
}
else if (gi_56 == 0)
{
// Place Buy Order
gi_56 = OrderSend(Symbol(), OP_BUY, g_lots_588
// Check if Sell Order should be placed
if (gi_44 == 0)
{
// Place Sell Order
gi_44 = OrderSend(Symbol(), OP_SELL, g_lots_588, Bid, 3, 0, 0, "My EA", 16388, 0, Red);
}
else if (gi_48 == 0)
{
// Place Sell Order
gi_48 = OrderSend(Symbol(), OP_SELL, g_lots_588, Bid, 3, 0, 0, "My EA", 16388, 0, Red);
}
else if (gi_52 == 0)
{
// Place Sell Order
gi_52 = OrderSend(Symbol(), OP_SELL, g_lots_588, Bid, 3, 0, 0, "My EA", 16388, 0, Red);
}
else if (gi_56 == 0)
{
// Place Sell Order
gi_56 = OrderSend(Symbol(), OP_SELL, g_lots_588, Bid, 3, 0, 0, "My EA", 16388, 0, Red);
}
Responded
1
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
Similar orders
Hello, I am looking for a professional trading system including: 1- Trading Bot (Expert Advisor): - Good profit performance - High security and strong risk management - Works efficiently during high market volatility (news and strong movements) - Works on all pairs (Forex + Gold) 2- Signal Indicator: - Provides clear Buy and Sell signals - Includes Take Profit and Stop Loss - No repaint (signals must not change or
EA designer wanted
200+ USD
Hi, I’m looking for a top-tier, profit-optimized EA that has the potential to scale trading returns significantly. My goal is to maximize growth over time. Can you help develop a bespoke EA that could potentially scale to high six or seven figures
Yakubu Jnr Ai Bots
30+ USD
This is yakubu Jnr trading bots I create the trading robots to help my self and others traders to be successful please you can join my live trading bots or subscribe to my trading robots
Nyasco
90+ USD
Fast trading bot for starters less losses which leads to bigger profits made for thousands of people making billions of dollars .be the best trader for your self all the way
Nyasco
30+ USD
Faster robot with less losses which can be used for a long term earning money every day creating a bot for more than thousands of people to earn billions of money
Max amount grid
30+ USD
max amount grid step for magic number do keep deleting .only when it is in negative floating .but when it is profit allow to go over the max and replays to grid step
Apply with a screen of your work . Symbol Specific Logic . Live Chart Optimization Check the Core logic . [back tests as well] Change points to pips . Create buffer for the zone
Buying profitable EA(Budget up to $ 3000 USD)
300 - 3000 USD
I will pay 3000+ USD (negotiable) for an EA for existing MT5 that generates a minimum of 15-20% or higher a month consistently (provide source code after final deal) Looking for a highly profitable EA Please send demo version directly subject (Buying profitable EA Budget up to $ 3000 USD), past results and optimal settings so I can test, if it performs in a strategy tester i will also need option to forward test it
EA fx
30+ USD
Hello, I need an already developed EA similar to the one trading XAUUSD, with consistent entries and good risk management. Before we proceed, I would like to verify its performance. Please provide a live or demo account login along with the investor (read-only) password so I can monitor the trading results. I am looking for stable performance, controlled drawdown, and consistent profit on gold (XAUUSD). Once I
Project information
Budget
30+ USD