Thobo ea fx

명시

// === INPUT PARAMETERS ===
input int FastMA = 9;     // Fast moving average for trend
input int SlowMA = 21;    // Slow moving average for trend
input double Risk = 1.0;  // Risk percentage per trade
input int ATRPeriod = 14; // ATR period for dynamic SL/TP
input double ATRMultiplier = 1.5; // Multiplier for ATR-based SL/TP
input int RSI_Period = 14; // RSI period
input int RSI_Overbought = 70;
input int RSI_Oversold = 30;
input int MACD_Fast = 12, MACD_Slow = 26, MACD_Signal = 9; // MACD settings

// === STRUCTURE DETECTION ===
double HighPrev, LowPrev, HighCurrent, LowCurrent;
bool BreakOfStructure;

// === FAIR VALUE GAP DETECTION ===
bool FairValueGapFound(double high1, double low1, double high2, double low2) {
    return (low2 > high1);  // FVG occurs when the second candle's low is above the first candle's high
}

// === ORDER BLOCK DETECTION ===
bool IsOrderBlock(double open1, double close1, double open2, double close2) {
    return (close1 < open1 && close2 > open2); // Bullish order block: Strong rejection from a bearish candle
}

// === MAIN FUNCTION ===
void OnTick() {
    // Get latest candle data
    HighPrev = iHigh(Symbol(), PERIOD_M15, 1);
    LowPrev = iLow(Symbol(), PERIOD_M15, 1);
    HighCurrent = iHigh(Symbol(), PERIOD_M15, 0);
    LowCurrent = iLow(Symbol(), PERIOD_M15, 0);

    // === CHECK FOR BREAK OF STRUCTURE (BOS) ===
    BreakOfStructure = (HighCurrent > HighPrev || LowCurrent < LowPrev);

    // === CHECK FOR FAIR VALUE GAP (FVG) ===
    bool FVG = FairValueGapFound(HighPrev, LowPrev, HighCurrent, LowCurrent);

    // === CHECK FOR ORDER BLOCKS ===
    bool OrderBlock = IsOrderBlock(iOpen(Symbol(), PERIOD_M15, 1), iClose(Symbol(), PERIOD_M15, 1), 
                                   iOpen(Symbol(), PERIOD_M15, 0), iClose(Symbol(), PERIOD_M15, 0));

    // === TREND FILTER USING MOVING AVERAGES ===
    double maFast = iMA(Symbol(), PERIOD_M15, FastMA, 0, MODE_SMA, PRICE_CLOSE, 0);
    double maSlow = iMA(Symbol(), PERIOD_M15, SlowMA, 0, MODE_SMA, PRICE_CLOSE, 0);
    bool Uptrend = (maFast > maSlow);
    bool Downtrend = (maFast < maSlow);

    // === RSI FILTER ===
    double RSI_Value = iRSI(Symbol(), PERIOD_M15, RSI_Period, PRICE_CLOSE, 0);
    bool RSI_Buy = (RSI_Value < RSI_Oversold);
    bool RSI_Sell = (RSI_Value > RSI_Overbought);

    // === MACD FILTER ===
    double macdMain, macdSignal, macdHist;
    iMACD(Symbol(), PERIOD_M15, MACD_Fast, MACD_Slow, MACD_Signal, PRICE_CLOSE, macdMain, macdSignal, macdHist);
    bool MACD_Buy = (macdMain > macdSignal);
    bool MACD_Sell = (macdMain < macdSignal);

    // === ATR for DYNAMIC SL/TP ===
    double ATR_Value = iATR(Symbol(), PERIOD_M15, ATRPeriod, 0);
    double DynamicSL = ATRMultiplier * ATR_Value;
    double DynamicTP = 4 * DynamicSL; // 1:4 Risk-Reward

    // === TRADE CONDITIONS ===
    if (BreakOfStructure && FVG && OrderBlock && Uptrend && RSI_Buy && MACD_Buy && OrdersTotal() == 0) {
        // Buy Setup
        double lotSize = 0.1; 
        double entryPrice = Ask;
        double stopLoss = entryPrice - DynamicSL; 
        double takeProfit1 = entryPrice + (DynamicTP * 0.5); // 50% TP
        double takeProfit2 = entryPrice + (DynamicTP); // 100% TP

        // Place Buy Order
        int orderTicket = OrderSend(Symbol(), OP_BUY, lotSize, entryPrice, 10, stopLoss, takeProfit2, "BUY Order", 0, 0, clrBlue);

        // Set Partial TP
        if (orderTicket > 0) {
            Sleep(5000); // Wait before modifying order
            OrderModify(orderTicket, entryPrice, stopLoss, takeProfit1, 0, clrBlue);
        }
    }

    if (BreakOfStructure && FVG && OrderBlock && Downtrend && RSI_Sell && MACD_Sell && OrdersTotal() == 0) {
        // Sell Setup
        double lotSize = 0.1; 
        double entryPrice = Bid;
        double stopLoss = entryPrice + DynamicSL;
        double takeProfit1 = entryPrice - (DynamicTP * 0.5); // 50% TP
        double takeProfit2 = entryPrice - (DynamicTP); // 100% TP

        // Place Sell Order
        int orderTicket = OrderSend(Symbol(), OP_SELL, lotSize, entryPrice, 10, stopLoss, takeProfit2, "SELL Order", 0, 0, clrRed);

        // Set Partial TP
        if (orderTicket > 0) {
            Sleep(5000);
            OrderModify(orderTicket, entryPrice, stopLoss, takeProfit1, 0, clrRed);
        }
    }
}

응답함

1
개발자 1
등급
(274)
프로젝트
346
29%
중재
36
28% / 64%
기한 초과
10
3%
작업중
2
개발자 2
등급
(33)
프로젝트
38
21%
중재
5
0% / 60%
기한 초과
0
무료
3
개발자 3
등급
(23)
프로젝트
34
53%
중재
1
100% / 0%
기한 초과
1
3%
무료
4
개발자 4
등급
(17)
프로젝트
21
14%
중재
8
38% / 38%
기한 초과
3
14%
로드됨
5
개발자 5
등급
(329)
프로젝트
515
19%
중재
35
46% / 31%
기한 초과
34
7%
작업중
6
개발자 6
등급
(13)
프로젝트
20
40%
중재
1
0% / 100%
기한 초과
1
5%
무료
7
개발자 7
등급
(62)
프로젝트
90
29%
중재
24
13% / 58%
기한 초과
7
8%
작업중
8
개발자 8
등급
(24)
프로젝트
26
73%
중재
1
0% / 100%
기한 초과
0
무료
9
개발자 9
등급
(33)
프로젝트
35
20%
중재
5
40% / 40%
기한 초과
0
무료
게재됨: 1 코드
10
개발자 10
등급
프로젝트
0
0%
중재
0
기한 초과
0
무료
11
개발자 11
등급
(2)
프로젝트
3
0%
중재
8
13% / 88%
기한 초과
1
33%
무료
12
개발자 12
등급
(613)
프로젝트
716
33%
중재
46
48% / 41%
기한 초과
14
2%
로드됨
13
개발자 13
등급
(7)
프로젝트
6
0%
중재
4
25% / 75%
기한 초과
2
33%
무료
14
개발자 14
등급
(206)
프로젝트
267
21%
중재
24
50% / 17%
기한 초과
0
작업중
15
개발자 15
등급
(3)
프로젝트
1
0%
중재
5
0% / 100%
기한 초과
0
무료
16
개발자 16
등급
(162)
프로젝트
289
35%
중재
18
22% / 61%
기한 초과
43
15%
무료
17
개발자 17
등급
(78)
프로젝트
246
74%
중재
7
100% / 0%
기한 초과
1
0%
무료
게재됨: 1 기고글
18
개발자 18
등급
(45)
프로젝트
91
13%
중재
34
26% / 59%
기한 초과
37
41%
무료
19
개발자 19
등급
프로젝트
0
0%
중재
0
기한 초과
0
무료
20
개발자 20
등급
(7)
프로젝트
8
0%
중재
4
0% / 100%
기한 초과
3
38%
무료
21
개발자 21
등급
프로젝트
0
0%
중재
0
기한 초과
0
무료
22
개발자 22
등급
프로젝트
0
0%
중재
0
기한 초과
0
무료
23
개발자 23
등급
(574)
프로젝트
945
47%
중재
309
58% / 27%
기한 초과
125
13%
무료
비슷한 주문
​1. General Overview: I am looking for an experienced developer to build (or debug/optimize) an MQL5 Expert Advisor. The EA will primarily trade Gold (XAU/USD) and US Indices (US30, US100). ​2. Platform & Broker Requirements: ​Platform: MetaTrader 5 (MQL5) ​Broker: Must be fully compatible with XM Broker execution. ​Account Types: Must support both Standard and Micro lot sizing seamlessly. ​3. Technical & Skill
A simple hedge robot 30 - 50 USD
Eu gostaria de um robot de Hedge, em uma conta ele vende na outra conta ele compra, mas que seja de forma bem perfeita, ou seja, com comissao, spread e lot ajustados para que nas duas contas os trades fiquem exatos -30$ e +30$ . very simple strategy smc that makes 50 trades at least on a period of 24h
I Have an existing Mql5 Expert advisor (source code), I want a professional programmer to help me Modify the EA... so that it can stop taking new trades once it Gets to a Pacific Lots Size or Floating loss
Hi, can you define entry conditions based on 100 or 200 trades? If you need more history, i can give you more trades. It is EURUSD with great results! If you can do it, contact me
take your time better make it for days and have good bot than never benefits both of us. Make the bot have zero errors and backtest it for a 2 year period
Wise Legend 30 - 500 USD
I want this robot to alert me on a good entry point on the trading flat form ether to buy or to sell. And also alert me when to close the market. And alert me on market continuations
I have an existing MT5 Expert Advisor with the original MQ5 source code. I need an experienced MQL5 developer to review, debug and professionally improve the existing EA, not build an unrelated EA from scratch. The EA is mainly for XAUUSD and already contains entry signals, EMA filters, automatic lot sizing, basket profit management, spread/margin protection, news filtering and recovery logic. The main problem is the
Exact Pine Script Conversion: The EA must replicate my Pine Script exactly — including Support/Resistance, Liquidity Grab/Sweep, 30 EMA, Entry, SL, TP, Partial Booking and Breakeven . No assumptions or changes to the logic. Accurate Entries: The EA must enter exactly according to the Pine Script conditions, including the correct candle and price level after the Support/Resistance or Liquidity Sweep setup. SL & TP: SL
I buy EA for USDEUR or XAUUSD for FTMO with proven backtest. Send me images with backtest reports where daily max dd is 1% on 200k account. I can buy several eas if you have them with proofs. Need images of backtesting for 5 years
Cerco uno sviluppatore MQL5 esperto per lavorare su un Expert Advisor (EA) XAUUSD per MetaTrader 5 già esistente , versione attuale XAU_V59.mq5 . L'obiettivo è modificare, correggere e sviluppare il codice esistente senza stravolgere la logica già presente , mantenendo le regole ei parametri già definiti, salvo le modifiche espressamente richieste. REQUISITI FONDAMENTALI Il codice deve essere scritto in MQL5 nativo e

프로젝트 정보

예산
30 - 200 USD