Simple MA Crossover with very powerful money management for MQL5 (BOT)

MQL5 Эксперты

Техническое задание

i would like someone to create a bot for me that trades volatility 50 (1s) and volatility 75 index. Setting the required stop losses and take profit, following trends while using the martingale function. i start with 5usd......and please tell me the cost of this bot. this is a bot i tried creating on chatgpt.

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

//| Expert Advisor using CCI (200), Stochastic (60,1,2), and ATR    |

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

#include <Trade/Trade.mqh>

CTrade trade;


// Indicator Handles

int cciHandle, stochHandle, atrHandle;


// Indicator Buffers

double cciBuffer[];

double kBuffer[];

double atrBuffer[];


// Risk Management Parameters

input double ATRMultiplier = 1.5;  // Multiplier for ATR-based SL/TP

input double BreakEven = 10;       // Move SL to break-even after this profit (in points)

input double LotSize = 0.007;      // User-defined lot size

input double ProfitLock = 20;      // Lock in profits after this amount

input double MaxDrawdownPerTrade = 2; // Maximum drawdown per trade in percentage

input double MaxAccountDrawdown = 10; // Maximum account drawdown in percentage

double AdjustedLotSize;            // Internal adjustable lot size


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

//| Function to check and adjust lot size                           |

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

void CheckLotSize()

{

    double minLot = SymbolInfoDouble(_Symbol, SYMBOL_VOLUME_MIN);

    double stepLot = SymbolInfoDouble(_Symbol, SYMBOL_VOLUME_STEP);


    AdjustedLotSize = LotSize;

    if (AdjustedLotSize < minLot)

    {

        Print("Warning: Lot size too small. Adjusting to minimum allowed: ", minLot);

        AdjustedLotSize = minLot;

    }

    AdjustedLotSize = NormalizeDouble(AdjustedLotSize / stepLot, 0) * stepLot;

}


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

//| Initialization function                                         |

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

int OnInit()

{

    CheckLotSize();

    

    cciHandle = iCCI(_Symbol, PERIOD_M5, 200, PRICE_TYPICAL);

    stochHandle = iStochastic(_Symbol, PERIOD_M5, 60, 1, 2, MODE_SMA, STO_LOWHIGH);

    atrHandle = iATR(_Symbol, PERIOD_M5, 14);

    

    return INIT_SUCCEEDED;

}


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

//| Main trading logic                                              |

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

void OnTick()

{

    if (CopyBuffer(cciHandle, 0, 0, 2, cciBuffer) <= 0) return;

    if (CopyBuffer(stochHandle, 0, 0, 2, kBuffer) <= 0) return;

    if (CopyBuffer(atrHandle, 0, 0, 1, atrBuffer) <= 0) return;

    

    double cciCurrent = cciBuffer[0];

    double cciPrevious = cciBuffer[1];

    double stochK = kBuffer[0];

    double atrValue = atrBuffer[0] * ATRMultiplier;

    

    double priceAsk = SymbolInfoDouble(_Symbol, SYMBOL_ASK);

    double priceBid = SymbolInfoDouble(_Symbol, SYMBOL_BID);


    Print("CCI Current: ", cciCurrent, " Stochastic K: ", stochK, " ATR: ", atrValue);

    

    // Buy condition: CCI crosses above -100 and Stochastic is below 50

    if (cciPrevious < -100 && cciCurrent > -100 && stochK < 50)

    {

        double sl = priceAsk - atrValue;

        double tp = priceAsk + (atrValue * 1.5);

        trade.Buy(AdjustedLotSize, _Symbol, priceAsk, sl, tp);

        Print("Buy order executed at ", priceAsk);

    }

    

    // Sell condition: CCI crosses below 100 and Stochastic is above 50

    if (cciPrevious > 100 && cciCurrent < 100 && stochK > 50)

    {

        double sl = priceBid + atrValue;

        double tp = priceBid - (atrValue * 1.5);

        trade.Sell(AdjustedLotSize, _Symbol, priceBid, sl, tp);

        Print("Sell order executed at ", priceBid);

    }

}


Откликнулись

1
Разработчик 1
Оценка
(21)
Проекты
20
10%
Арбитраж
2
50% / 50%
Просрочено
0
Свободен
2
Разработчик 2
Оценка
(117)
Проекты
141
45%
Арбитраж
10
80% / 0%
Просрочено
0
Свободен
3
Разработчик 3
Оценка
(379)
Проекты
533
53%
Арбитраж
25
56% / 24%
Просрочено
6
1%
Работает
4
Разработчик 4
Оценка
(21)
Проекты
23
26%
Арбитраж
2
100% / 0%
Просрочено
0
Свободен
5
Разработчик 5
Оценка
(43)
Проекты
59
22%
Арбитраж
11
18% / 27%
Просрочено
5
8%
Загружен
6
Разработчик 6
Оценка
(1)
Проекты
3
0%
Арбитраж
0
Просрочено
0
Работает
7
Разработчик 7
Оценка
(92)
Проекты
113
24%
Арбитраж
12
42% / 25%
Просрочено
8
7%
Свободен
8
Разработчик 8
Оценка
(523)
Проекты
597
33%
Арбитраж
33
39% / 42%
Просрочено
9
2%
Занят
9
Разработчик 9
Оценка
(5)
Проекты
6
17%
Арбитраж
0
Просрочено
0
Свободен
10
Разработчик 10
Оценка
(64)
Проекты
71
6%
Арбитраж
32
16% / 38%
Просрочено
6
8%
Занят
11
Разработчик 11
Оценка
(10)
Проекты
9
11%
Арбитраж
5
0% / 80%
Просрочено
2
22%
Работает
12
Разработчик 12
Оценка
(4)
Проекты
4
0%
Арбитраж
1
0% / 0%
Просрочено
1
25%
Работает
13
Разработчик 13
Оценка
Проекты
0
0%
Арбитраж
0
Просрочено
0
Свободен
14
Разработчик 14
Оценка
(145)
Проекты
191
19%
Арбитраж
18
44% / 17%
Просрочено
0
Свободен
15
Разработчик 15
Оценка
(587)
Проекты
1389
59%
Арбитраж
30
80% / 0%
Просрочено
10
1%
Свободен
16
Разработчик 16
Оценка
(493)
Проекты
527
53%
Арбитраж
12
67% / 17%
Просрочено
3
1%
Свободен
17
Разработчик 17
Оценка
(149)
Проекты
267
35%
Арбитраж
12
25% / 58%
Просрочено
42
16%
Свободен
18
Разработчик 18
Оценка
(80)
Проекты
116
16%
Арбитраж
4
25% / 25%
Просрочено
10
9%
Работает
19
Разработчик 19
Оценка
(11)
Проекты
11
36%
Арбитраж
1
100% / 0%
Просрочено
0
Свободен
20
Разработчик 20
Оценка
(214)
Проекты
219
29%
Арбитраж
0
Просрочено
3
1%
Свободен
21
Разработчик 21
Оценка
(1)
Проекты
0
0%
Арбитраж
1
0% / 0%
Просрочено
0
Свободен
22
Разработчик 22
Оценка
(2514)
Проекты
3168
66%
Арбитраж
77
48% / 14%
Просрочено
340
11%
Работает
23
Разработчик 23
Оценка
(19)
Проекты
23
30%
Арбитраж
2
50% / 50%
Просрочено
0
Работает
24
Разработчик 24
Оценка
(42)
Проекты
88
14%
Арбитраж
32
28% / 59%
Просрочено
36
41%
Работает
25
Разработчик 25
Оценка
(270)
Проекты
546
49%
Арбитраж
55
40% / 36%
Просрочено
226
41%
Работает
Похожие заказы
Hello here, i need an expert to help me convert my Tradingview indicator to mt5 I have indicator on MT5 I want to convert them to Tradingview I have the source code of it
Hello great developer I want converted pine script to a ninja script without any of the functionality gone Can you do that? Also the time filter should have an on/off toggle. I will be looking for a great developer and ready for Job in few day to bid for it
I need someone experienced in Quantower scripting and debugging to help with: Testing the strategy to ensure it runs correctly Identifying and fixing errors in execution or logic Optimizing the code for better performance If you have experience with C# scripting, Quantower automation, or algo trading, kindly drop your comment or text me on Tel. (@pextron)
In Tradovate it is possible to create groups and trade several accounts at the same time. But the group is not displayed in Tradingview, you can only trade groups in Tradovate itself. Is it possible to program an app in Tradingview that does the following: 1. Display the Tradovate group and trade it? 2. Select an account that then automatically sends the trades to the group in Tradovate? 3. Select a main account in
EA Modification; (Appologies the text format window here did not display the requirement format properly so took a screenshot from words and copied that here instead both for the requirement below and the EA summary (for reference only) further below) Context of the Existing EA; Please give a meaningful description for the job. Text must contain at least 30 words. Replication of phrases via copy and paste is
First of all the expert advisor must come with the things to put before it starts or if not put the default will work. 1input - Pattern - any pattern detected like head and shoulder , double top , gartley 2,2,2 2nd input - Market sentiments - says overall market trends - bearish , bullish 3rd input - Priority timeframe - like 30min 4th input - moving average priority timeframe 5th input -liquidation zone
MT5 INDICATOR/EA 30 - 150 USD
I'm looking for an experienced MQL5 developer to clean up and complete a partially coded Market Structure Indicator for MT5. This indicator will identify key Breaks of Structure (BOS) and Change of Character (CHOC) events in price action. I will provide the work-in-progress (WIP) code and can walk you through the logic in a video call if needed to ensure clear understanding. Scope of Work: 1. Fix and complete the
A supertrend ea with: - martingale that resets back to initial lot size only after a specified number of wins in a row. - Immediately when I place it on the chart, I want it to check the past signals and determine the current number of losses in a row according to the set TradeDirection, TakeProfit and StopLoss. (Look at the historical data to check the past signals and determine the current number of losses in a
I Need Scalping EA 50 - 150 USD
I need to use stochastic oscillator indicator to develop a n EA based. The rule of buy is when the fast moving average on the Stochastic Oscillator oscillator is moving from below to upwards the set level say 10 and the candle close we open a buy the the stop loss is to be put below the the previous low then opposite for the sell order exit on opposite signal if the price moves above the 45 level we go at break even
Trader 30+ USD
Ea must be able to duplicate buy or sell trades. Also put in sl and tp. And also ttailing disablr and enable. So if i buy from my android the ea that is on a vps must be able to dublicate the buy and put in 2 more trades, if i chose 3 on ea, with sl and tp

Информация о проекте

Бюджет
30 - 100 USD

Заказчик

Размещено заказов1
Количество арбитражей0