Gold M1 Auto Trading

MQL5 Experts

Specification


//+------------------------------------------------------------------+
//| Gold M1 Auto Trading Bot for MT5                                 |
//+------------------------------------------------------------------+
#property copyright "OpenAI"
#property version   "1.00"
#property strict

#include <Trade/Trade.mqh>
CTrade trade;

input double RiskPercent = 1.0;
input int StopLoss = 200;
input int TakeProfit = 400;
input int FastMA = 9;
input int SlowMA = 21;

double LotSize;

//+------------------------------------------------------------------+
int OnInit()
{
   Print("Gold M1 Bot Started");
   return(INIT_SUCCEEDED);
}
//+------------------------------------------------------------------+

void OnTick()
{
   if(Symbol() != "XAUUSD")
      return;

   double fastMA = iMA(Symbol(), PERIOD_M1, FastMA, 0, MODE_EMA, PRICE_CLOSE, 0);
   double slowMA = iMA(Symbol(), PERIOD_M1, SlowMA, 0, MODE_EMA, PRICE_CLOSE, 0);

   double fastPrev = iMA(Symbol(), PERIOD_M1, FastMA, 0, MODE_EMA, PRICE_CLOSE, 1);
   double slowPrev = iMA(Symbol(), PERIOD_M1, SlowMA, 0, MODE_EMA, PRICE_CLOSE, 1);

   LotSize = CalculateLot();

   if(fastPrev < slowPrev && fastMA > slowMA)
   {
      OpenBuy();
   }

   if(fastPrev > slowPrev && fastMA < slowMA)
   {
      OpenSell();
   }
}

//+------------------------------------------------------------------+

double CalculateLot()
{
   double balance = AccountInfoDouble(ACCOUNT_BALANCE);
   double risk = balance * RiskPercent / 100;
   double lot = risk / 1000;
   return NormalizeDouble(lot,2);
}

//+------------------------------------------------------------------+

void OpenBuy()
{
   double price = SymbolInfoDouble(Symbol(), SYMBOL_ASK);
   double sl = price - StopLoss * _Point;
   double tp = price + TakeProfit * _Point;

   trade.Buy(LotSize, Symbol(), price, sl, tp);
}

//+------------------------------------------------------------------+

void OpenSell()
{
   double price = SymbolInfoDouble(Symbol(), SYMBOL_BID);
   double sl = price + StopLoss * _Point;
   double tp = price - TakeProfit * _Point;

   trade.Sell(LotSize, Symbol(), price, sl, tp);
}
//+------------------------------------------------------------------+

Responded

1
Developer 1
Rating
(3)
Projects
3
0%
Arbitration
1
0% / 100%
Overdue
0
Free
2
Developer 2
Rating
(255)
Projects
262
30%
Arbitration
0
Overdue
3
1%
Free
Published: 2 codes
3
Developer 3
Rating
(378)
Projects
485
24%
Arbitration
59
54% / 25%
Overdue
55
11%
Loaded
4
Developer 4
Rating
(8)
Projects
9
11%
Arbitration
0
Overdue
0
Free
5
Developer 5
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
6
Developer 6
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
7
Developer 7
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
8
Developer 8
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
9
Developer 9
Rating
(13)
Projects
20
40%
Arbitration
3
0% / 67%
Overdue
3
15%
Free
Similar orders
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
I want to find a Developer to perform this work and settle payments in this Application. I undertake not to communicate with Applicants anywhere else except this Application, including third-party
Looking to acquire a good MT5 based EA that works on Gold, forex pairs or BTC. Must be suitable for current market conditions and profitable in backtests. Suitable on 1 Min timeframe to be used on, Must be actively opening many positions throughout the day. Share me the details if this matches something you have or developed. Looking to get this finalised within the weekend
Strategy:Identify Supply and demand zones and generate buy and sell signals based on the price action within these zones. Confirmation:Use MA filter to confirm trading directions. Risk - Reward Ratio: 1:5. Risk Management: Limit risk to a predefined percentage of account balance . Additional features: include alerts for signal generation, SL and TP
Prakash 30 - 200 USD
i want to make trading bot for my xauusd trading. who can provide me code for good algo for auto trading? which logic is safe for trading?i want expert who can made code for me. thanks
Smc 30 - 200 USD
#property copyright "Amanda V" #property version "1.01" #property indicator_chart_window #property indicator_buffers 0 #property indicator_plots 0 input int InpSwingLookback = 30 ; // Swing Lookback Period input double InpMinWickPct = 30.0 ; // Min Rejection Wick % input color InpBullColor = clrAqua ; // Bullish Sweep Color input color InpBearColor =
Description: I need an MT5 Expert Advisor built to exactly replicate a TradingView Pine Script strategy. This is a range mean reversion system . All logic must be followed precisely. No optimisation, no interpretation. The EA must behave identically to the logic below. Market & Timeframe Primary: NAS100 (but must work on any symbol) Timeframe: 5-minute Must work regardless of broker (handle symbol digits properly)
I am looking for an experienced MQL5 developer to improve an existing forex EA, not build a completely new robot from zero. Important note: I use GPT to help me write because my English is limited. The wording may be assisted by GPT, but the trading issues, testing observations, and improvement goals are real from my side. I need a developer who is patient, understands strategy logic well, and can explain the
Fair Value Gap Expert , Optimize the core logic for live chart . [Filters are working] Lets ace the trailing stop . Change points to pip . Project will start from next week
I am looking to develop a highly optimized and fully modular script in MQL5 specifically for detecting RSI Divergences. This script will serve as a foundational building block to be integrated into a larger, comprehensive Expert Advisor (EA) later. Therefore, execution speed, strict logic, and a clean codebase are my absolute top priorities. Here are the core technical requirements for this project: 1. MQL5

Project information

Budget
50+ USD
Deadline
from 202 to 209 day(s)

Customer

Placed orders1
Arbitrage count0