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

//+------------------------------------------------------------------+
//|                                                      MyBot.mq5   |
//|                        Created using MQL5                        |
//+------------------------------------------------------------------+
#include <Trade\Trade.mqh>

CTrade trade; // Create a trade object

// Define input parameters
input int FastMAPeriod = 10;
input int SlowMAPeriod = 50;
input int RSI_Period = 14;
input int MACD_FastEMA = 12;
input int MACD_SlowEMA = 26;
input int MACD_SignalSMA = 9;

// Function to calculate support and resistance (simple example)
double FindSupport(int candles) {
    double lowest = iLow(NULL, 0, iLowest(NULL, 0, MODE_LOW, candles, 0));
    return lowest;
}

double FindResistance(int candles) {
    double highest = iHigh(NULL, 0, iHighest(NULL, 0, MODE_HIGH, candles, 0));
    return highest;
}

//+------------------------------------------------------------------+
//| Expert initialization function                                   |
//+------------------------------------------------------------------+
int OnInit() {
    return INIT_SUCCEEDED;
}

//+------------------------------------------------------------------+
//| Expert deinitialization function                                 |
//+------------------------------------------------------------------+
void OnDeinit(const int reason) {
}

//+------------------------------------------------------------------+
//| Expert tick function                                             |
//+------------------------------------------------------------------+
void OnTick() {
    // Get current prices
    double priceCurrent = iClose(NULL, 0, 0);
    double priceHigh = iHigh(NULL, 0, 10); // High over the past 10 candles
    double priceLow = iLow(NULL, 0, 10);   // Low over the past 10 candles

    // Calculate indicators
    double FastMA = iMA(NULL, 0, FastMAPeriod, 0, MODE_SMA, PRICE_CLOSE, 0);
    double SlowMA = iMA(NULL, 0, SlowMAPeriod, 0, MODE_SMA, PRICE_CLOSE, 0);
    double RSI = iRSI(NULL, 0, RSI_Period, PRICE_CLOSE, 0);

    double MACD_Main, MACD_Signal;
    MACD_Main = iMACD(NULL, 0, MACD_FastEMA, MACD_SlowEMA, MACD_SignalSMA, PRICE_CLOSE, MODE_MAIN, 0);
    MACD_Signal = iMACD(NULL, 0, MACD_FastEMA, MACD_SlowEMA, MACD_SignalSMA, PRICE_CLOSE, MODE_SIGNAL, 0);

    // Calculate stop-loss and take-profit distances
    double SL_Distance = MathAbs(priceCurrent - (priceHigh + priceLow) / 2);
    double TP_Distance = SL_Distance * 2; // Minimum TP, adjustable

    // Check Buy Condition
    if (FastMA > SlowMA && RSI > 30 && RSI < 70 && MACD_Main > MACD_Signal) {
        double tpLevel = priceCurrent + TP_Distance;
        double slLevel = priceCurrent - SL_Distance;

        // Ensure TP is below the nearest resistance level
        double resistance = FindResistance(20);
        if (tpLevel > resistance) {
            tpLevel = resistance;
        }

        trade.Buy(0.1, priceCurrent, slLevel, tpLevel, "Buy Order");
    }

    // Check Sell Condition
    if (FastMA < SlowMA && RSI > 30 && RSI < 70 && MACD_Main < MACD_Signal) {
        double tpLevel = priceCurrent - TP_Distance;
        double slLevel = priceCurrent + SL_Distance;

        // Ensure TP is above the nearest support level
        double support = FindSupport(20);
        if (tpLevel < support) {
            tpLevel = support;
        }

        trade.Sell(0.1, priceCurrent, slLevel, tpLevel, "Sell Order");
    }
}

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

1
Разработчик 1
Оценка
(70)
Проекты
99
52%
Арбитраж
24
21% / 54%
Просрочено
8
8%
Работает
2
Разработчик 2
Оценка
(19)
Проекты
21
33%
Арбитраж
3
33% / 33%
Просрочено
1
5%
Работает
Опубликовал: 2 примера
3
Разработчик 3
Оценка
Проекты
0
0%
Арбитраж
0
Просрочено
0
Свободен
4
Разработчик 4
Оценка
(25)
Проекты
29
21%
Арбитраж
20
10% / 50%
Просрочено
8
28%
Работает
5
Разработчик 5
Оценка
(1)
Проекты
0
0%
Арбитраж
2
0% / 100%
Просрочено
0
Свободен
6
Разработчик 6
Оценка
Проекты
0
0%
Арбитраж
0
Просрочено
0
Свободен
Похожие заказы
Hello, I’m looking for an experienced MT4 (MQL4) developer to convert the Lucky Reversal indicator from indicatorspot.com into a fully functional Expert Advisor (EA). Project Scope Code an MT4 EA that replicates the exact logic and signals of the Lucky Reversal indicator Trades should open and close automatically based on the indicator’s rules Must match indicator behavior 1:1 (no approximations) EA Requirements MT4
specification High-Frequency Candle Momentum Scalper 1. Strategy Overview Core Logic: The EA identifies the current color of the active candle (Bullish or Bearish). Entry Trigger: It opens positions only after a specific duration of the candle has passed (e.g., after 30 seconds on a 1-minute candle) to confirm the direction. 2. Entry Logic (The "Half-Candle" Rule) Timeframe: M1 (Default, but adjustable). Time Filter
Looking for experience MT5 developer to build a rule-based EA using Volume Profile concept. Only developer with proven past experience working with Volume Profile indicator (ie, VAH, VAL, POC, session profiles or anchored profiles) will be considered. Interested developer must submit a screenshot or video clip of a past project involving Volume Profile, before being shortlisted. Specification will only be shared and
My expert already has the rest of the required features implemented . Bring in your support and resistance expert to save time . My expert already has money management , session filter etc . Trailing is threshold based . Please send a picture as well to show your expert on a live chart . Most specific is the 5m tf , to 1m execution
Ai bot 100 - 300 USD
I’m looking for one person who is both a Forex trader and a programmer . I don’t want a coder who only writes code without understanding the market, and I don’t want a trader who can’t program. I want someone who actively trades and understands market behavior, liquidity, volatility, and risk management. Most importantly, the bot must be built using real artificial intelligence that learns and adapts , not just
can anyone help me with building a complete automated pine code strategy and indicator that work for both FXs & CFDs and have a high winning rate proved through back testing. I have a very complex current code that developed mostly using AI but lots of gaps are there although it translate exactly what I have in my mind. So, you are free to decide whether wo build a complete new code or fix my current working code ( i
SMC, etc.) - Backtest results and the set files you used - Whether you’re willing to make minor tweaks so I can use it as my own If the performance looks good, we can discuss adjustments and next steps. My requirements are screenshot, backtes results, demo fileS Let me know if you have anything that fits the bill
I’m looking for a NinjaTrader 8 developer to build or customize a fully automated futures strategy . Goals: Target ~$100/day (consistency over aggression) Long-term survivability (not scalping hype) Requirements: Trade ES/MES or NQ/MNQ Fixed risk per trade Daily profit & loss limits Time/session filters Break-even & trailing stop logic Full NT8 strategy (not indicator) Nice to have: Backtest + optimization
Je cherche un développeur pour un bot Fundednext pour le passage de challenge jusqu'au trading quotidien après le passage.le robot va s'occuper du compte du début à la suite du compte de 15k chez Fundednext.après le passage aux challenges,le robot doit être capable de me fournir 6-10% mensuel de rendement de ce compte. Il doit être capable de passer le challenge dans un bref délai de 2-3 semaine ou soit 10-15 jours
Job Title MT5 Developer Needed – Sync Data Feed Between Two MT5 Accounts Job Description I am a trader using multiple MT5 accounts and need a reliable way to have the same market data from one MT5 account reflected in another MT5 account. One account already has a stable and accurate data feed, and I want the second MT5 account to receive identical pricing and symbols for analysis and execution purposes. What I Need

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

Бюджет
30 - 50 USD