Marker Zeaper🦾

MQL5 Experts

Termos de Referência

Here is a script for forex trading AI tool requirements 

_MT4 Version_
```
//+------------------------------------------------------------------+
//| Script program start function                                    |
//+------------------------------------------------------------------+
int start()
{
   // Define the number of positions
   int numPositions = 50; // adjust this value from 5 to 100

   // Define the symbol and stop levels
   string symbol = _Symbol; // current symbol
   double stopLevel = 0.01; // adjust this value

   // Define bulk operations buttons
   int bulkCloseAll = 0;
   int bulkCloseProfitable = 0;
   int bulkCloseSell = 0;
   int bulkCloseBuy = 0;

   // Define stop loss and take profit buttons
   double stopLoss = 0.0;
   double takeProfit = 0.0;

   // Define adjustable lot size
   double lotSize = 0.1;

   // Loop through each position
   for (int i = 0; i < numPositions; i++)
   {
      // Calculate the stop price for buy and sell
      double buyStopPrice = Ask + (i * stopLevel);
      double sellStopPrice = Bid - (i * stopLevel);

      // Place buy stop order
      int ticket = OrderSend(symbol, OP_BUYSTOP, lotSize, buyStopPrice, 3, stopLoss, takeProfit, "Buy Stop", 0, 0, Green);

      // Place sell stop order
      ticket = OrderSend(symbol, OP_SELLSTOP, lotSize, sellStopPrice, 3, stopLoss, takeProfit, "Sell Stop", 0, 0, Red);
   }

   // Bulk operations buttons
   if (bulkCloseAll == 1) {
      CloseAllOrders();
   }
   if (bulkCloseProfitable == 1) {
      CloseProfitableOrders();
   }
   if (bulkCloseSell == 1) {
      CloseSellOrders();
   }
   if (bulkCloseBuy == 1) {
      CloseBuyOrders();
   }

   return(0);
}

//+------------------------------------------------------------------+
//| Close all orders function                                         |
//+------------------------------------------------------------------+
void CloseAllOrders()
{
   for (int i = 0; i < OrdersTotal(); i++) {
      OrderClose(OrderTicket(), OrderLots(), OrderClosePrice(), 3, Green);
   }
}

//+------------------------------------------------------------------+
//| Close profitable orders function                                  |
//+------------------------------------------------------------------+
void CloseProfitableOrders()
{
   for (int i = 0; i < OrdersTotal(); i++) {
      if (OrderProfit() > 0) {
         OrderClose(OrderTicket(), OrderLots(), OrderClosePrice(), 3, Green);
      }
   }
}

//+------------------------------------------------------------------+
//| Close sell orders function                                        |
//+------------------------------------------------------------------+
void CloseSellOrders()
{
   for (int i = 0; i < OrdersTotal(); i++) {
      if (OrderType() == OP_SELL) {
         OrderClose(OrderTicket(), OrderLots(), OrderClosePrice(), 3, Green);
      }
   }
}

//+------------------------------------------------------------------+
//| Close buy orders function                                         |
//+------------------------------------------------------------------+
void CloseBuyOrders()
{
   for (int i = 0; i < OrdersTotal(); i++) {
      if (OrderType() == OP_BUY) {
         OrderClose(OrderTicket(), OrderLots(), OrderClosePrice(), 3, Green);
      }
   }
}
```

_MT5 Version_
```
//+------------------------------------------------------------------+
//| Script program start function                                    |
//+------------------------------------------------------------------+
void OnStart()
{
   // Define the number of positions
   int numPositions = 50; // adjust this value from 5 to 100

   // Define the symbol and stop levels
   string symbol = Symbol(); // current symbol
   double stopLevel = 0.01; // adjust this value

   // Define bulk operations buttons
   int bulkCloseAll = 0;
   int bulkCloseProfitable = 0;
   int bulkCloseSell = 0;
   int bulkCloseBuy = 0;

   // Define stop loss and take profit buttons
   double stopLoss = 0.0;
   double takeProfit = 0.0;

   // Define adjustable lot size
   double lotSize = 0.1;

   // Loop through each position
   for (int i = 0; i < numPositions; i++)
   {
      // Calculate the stop price for buy and sell
      double buyStopPrice = SymbolInfoDouble(symbol, SYMBOL_ASK) + (i * stopLevel);
      double sellStopPrice = SymbolInfoDouble(symbol, SYMBOL_BID) - (i * stopLevel);

      // Place buy stop order
      int ticket = OrderSend(symbol, OP_BUYSTOP, lotSize, buyStopPrice,
```
Pedidos semelhantes
Hello I'm trying to fix a indicator that I have, It's a .ex4 file, Can I just code a new indicator because I only have a failed version of it in a ex4 file. Here are the three files. They are EX4 files. So i wanted to have a trade panel that can fill up the whole screen where it shows all the pair symbols. MTF_TMA_Harmonic ex4 file is exactly what I'm looking for however the ex4 file for some reason doesn't work
Hello Everyone, I am looking forward to a MQL5 expert who will work with me to develop my strategies. This is an ongoing assignment. The developer will work with me on several strategies that are medium to high complexity. If you are available to work during IST, please respond to this proposal with an estimate of your hourly rates. Thanks Dharmesh
Job Description: I am looking for an expert to develop a trading bot for MetaTrader 5 that will execute trades based on buy and sell signals from a custom indicator on TradingView. The indicator works on Heikin Ashi candles, and the bot should follow these detailed requirements: TradingView Alerts: Configure TradingView to send buy/sell signals via webhooks when the custom indicator prints a buy or sell signal. The
Hello MQL Community, I am looking for an expert forex trading bot programmer to assist with my existing EAs. The tasks include backtesting, optimizing based on market trends, and ensuring high profitability and effectiveness. I have two different trading robots and need help determining which one performs best. If you can help, please reach out. Thank you
Hello MQL Community, I am looking for an expert forex trading bot programmer to assist with my existing EAs. The tasks include backtesting, optimizing based on market trends, and ensuring high profitability and effectiveness. I have two different trading robots and need help determining which one performs best. If you can help, please reach out. Thank you
Hello. Mql devs, I am requesting an expert who can help or render an expert assistant as a reliable forex trading bot programmer on my existing EAs, starting from backtesting to optimization based on market trends to ensure high profitability and effectiveness in my trading systems, i have two different trading robots and who like to know the one that works best, kindky reach to see if you can help thanks
hello, i'm in need of a developer who is familiar with pinescript. i have this indicator on tradingview where i would like to have an alert function fixed/rebuild( because it's not working properly). kind regards
My EA places orders when an arrow appears according to the pz day-trading indicator. 1) I need to change the indicator, so that it places orders when the stock indicator arrow appears. All other EA conditions remain the same. 2) I need it to place orders when the candle turns colored according to the Pvsar indicator. The only change is that for pvsra I need a buy order to be placed above the high of the candle that
The STRAT EA 100 - 400 USD
Hi guys Did anyone try already to build a "The STRAT" indicator or EA? The view on the candlesticks are very interesting and it it's high probable to build a strategy based on this. More about the strategy can be found here: https://www.thestrat-indicators.com/about Please answer to this order only if you're familiar with the STRAT, thanks! Cheers
Hello, I have a simple Price action EA which would include the ATR for managing stop loss and take profit size. 1 entry model in 1 timeframe. With risk management filter such as risk by money, partial profits and fixed risk to reward. Market execution trades. Specification upon selection, thank you

Informações sobre o projeto

Orçamento
30+ USD

Cliente

Pedidos postados4
Número de arbitragens0