Creating A Trading Bot

Specifiche

//+------------------------------------------------------------------+
//|                                                  Emmanuels Bot  |
//|                                       Copyright © 2023 Emmanuel  |
//|                                          https://www.example.com |
//+------------------------------------------------------------------+

//|----------------------------------------------------|
//|            Trading Strategy Parameters             |
//|----------------------------------------------------|
input double Key_Value = 2.0;      // Key Value to adjust sensitivity
input int ATR_Period = 10;         // ATR Period
input double Lot_Size = 0.05;      // Lot Size for orders
input int Take_Profit = 20;        // Take Profit in pips

//|----------------------------------------------------|
//|                      Indicator                     |
//|----------------------------------------------------|
double xATRTrailingStop;           // Trailing Stop value

//+------------------------------------------------------------------+
//|                                                                  |
//+------------------------------------------------------------------+
void OnTick()
  {
   double atr = iATR(_Symbol, _Period, ATR_Period, 0);  // ATR value
   double nLoss = Key_Value * atr;                     // Dynamic Loss value
   double stopLoss = 0;                                // Stop Loss value

// Calculate the Trailing Stop
   if(Close[1] < xATRTrailingStop && Close[0] > xATRTrailingStop))
     {
      xATRTrailingStop = MathMax(xATRTrailingStop[1], Close[0] - nLoss);
     }
   else
      if(Close[1] > xATRTrailingStop && Close[0] < xATRTrailingStop)
        {
         xATRTrailingStop = MathMin(xATRTrailingStop[1], Close[0] + nLoss);
        }
      else
        {
         if(Close[0] > xATRTrailingStop)
           {
            xATRTrailingStop = Close[0] - nLoss;
           }
         else
           {
            xATRTrailingStop = Close[0] + nLoss;
           }
        }

// Check for entry signal
   if(Close[1] < xATRTrailingStop && Close[0] > xATRTrailingStop)
     {
      if(PositionsTotal() == 0)
        {
         // Open Buy Order
         double stopLoss = xATRTrailingStop - nLoss;
         double takeProfit = xATRTrailingStop + Take_Profit * _Point;
         OrderSend(_Symbol, OP_BUY, Lot_Size, Ask, 3, stopLoss, takeProfit, "Buy Order", 0, 0, CLR_GREEN);
        }
     }
   else
      if(Close[1] > xATRTrailingStop && Close[0] < xATRTrailingStop)
        {
         if(PositionsTotal() == 0)
           {
            // Open Sell Order
            double stopLoss = xATRTrailingStop + nLoss;
            double takeProfit = xATRTrailingStop - Take_Profit * _Point;
            OrderSend(_Symbol, OP_SELL, Lot_Size, Bid, 3, stopLoss, takeProfit, "Sell Order", 0, 0, CLR_RED);
           }
        }

// Check for exit signal
   if(PositionsTotal() > 0)
     {
      if(Close[1] > xATRTrailingStop && Close[0] < xATRTrailingStop && PositionGetInteger(POSITION_TYPE) == POSITION_TYPE_BUY)
        {
         // Close Buy Order
         OrderClose(PositionGetTicket(0), Lot_Size, Bid, 3, CLR_GREEN);
        }
      //+------------------------------------------------------------------+

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

I NEED TO DEBUG THIS CODE 

Con risposta

1
Sviluppatore 1
Valutazioni
(201)
Progetti
327
17%
Arbitraggio
23
35% / 30%
In ritardo
17
5%
Occupato
2
Sviluppatore 2
Valutazioni
(568)
Progetti
641
41%
Arbitraggio
21
57% / 29%
In ritardo
47
7%
In elaborazione
3
Sviluppatore 3
Valutazioni
(3)
Progetti
3
33%
Arbitraggio
0
In ritardo
0
Gratuito
4
Sviluppatore 4
Valutazioni
(57)
Progetti
72
22%
Arbitraggio
13
46% / 15%
In ritardo
5
7%
Gratuito
5
Sviluppatore 5
Valutazioni
(71)
Progetti
80
10%
Arbitraggio
36
8% / 53%
In ritardo
6
8%
In elaborazione
6
Sviluppatore 6
Valutazioni
(1131)
Progetti
1433
62%
Arbitraggio
21
57% / 10%
In ritardo
43
3%
Gratuito
7
Sviluppatore 7
Valutazioni
(12)
Progetti
19
26%
Arbitraggio
4
25% / 25%
In ritardo
1
5%
Gratuito
8
Sviluppatore 8
Valutazioni
(467)
Progetti
702
56%
Arbitraggio
44
30% / 32%
In ritardo
115
16%
In elaborazione
9
Sviluppatore 9
Valutazioni
(474)
Progetti
536
33%
Arbitraggio
27
41% / 44%
In ritardo
8
1%
Occupato
10
Sviluppatore 10
Valutazioni
(3)
Progetti
4
0%
Arbitraggio
0
In ritardo
1
25%
Gratuito
Ordini simili
Using 3 MA’s, Bollinger Bands and price action, I need an EA made for mt4 and mt5 (preferably) should have good knowledge of forex, risk management and candle stick patterns, and how to incorporate them in the codes. I need a very efficient code. * For the price, I just out anything there, but if you can do it I’ll pay the negotiated price*
Kagi Chart on MT4 50 - 100 USD
Hello, I need a developer who can develop new indicator for mt4 in order to have Kagi Chart on Meta Trader 4. I found this indicator from current web site but it can not load history as well. Please some body help me. If you can develop it for motivewave platform so let me know. Thanks
My requirements are these. I am asking for a powerful EA indicator and robot to combat the ups and downs during trading in the market, also for all market conditions to bring a high value of profit in the business in the market during trading
Hi I need a simple bot to read an excel and trade on my behalf in a number of stocks. basic outline below 1. Take the trade size in shares and direction from excel and trade at market 2. report the fill price and commission in excel and save the excel in a specific file location. I'd like this bot to run at a specific time and have the functionality for me to run it manually with an "execute" button or something
Hello, same as title. I do not care about the drawdown I just need a trading strategy that can do 100% return per month return, simple as that. It would be nice if it can be automated into a bot/EA. Most important is the return of at least 100% per month!!! The strategy you provide need to be tested and work fine and have been doing well in the live market by you or someone for a long time. To be clear again - I need
1. **Daily Opening Price:** - On MT15, use a horizontal line to mark the daily opening price. 2. **Key Levels:** - Calculate key levels by adding 90 points to the opening price. For example, if the opening price is 1800.12, the key levels will be: - +90 points: 1890.12 - +180 points: 1980.12 - +270 points: 2070.12 - +360 points: 2160.12 - For levels below the opening price, subtract 90 points: -
I need an expert advisor based on MACD and MA signals. It must have check and handling of trade operations errors. The main criteria for opening and closing positions: ◇Both Main and Signal direction must be shown by Arrows which is going to be for buy and sell positions
I need an expert to help me with adding more features to my existing mt4 EA I think the addition I want added to this EA is fairly simple--but I don't really understand how programming works, Contact me for a long term work, This is not the only project, I will explain the features in the inbox, Let me know if you can do it
Hft live account 30 - 200 USD
i need a high frequency trading (hft) expert advisor, that can be used to trade on demo and live accounts icmarket and 8cap. The EA has to be highly profitable, giving daily profit. If a test version is available, please send, to foster a faster transaction. like the ones that pass prop firm and demo but adjustment where it work on live with low latency
Hello [Programmer's Name], I hope this message finds you well. I am seeking your expertise to develop a forex Expert Advisor (EA) capable of identifying trading opportunities based on crossover signals from the following indicators: - MACD - RSI (including Connor RSI) - Stochastic RSI - Stochastic - Moving Averages (MA) with periods: 5, 10, 20, 50, 100, and 200 Key requirements for the EA include: - Integration of

Informazioni sul progetto

Budget
30+ USD
IVA (19%): 5.7 USD
Totale: 35.7 USD
Per lo sviluppatore
27 USD