指定

// === 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
評価
(250)
プロジェクト
313
28%
仲裁
34
26% / 65%
期限切れ
10
3%
仕事中
2
開発者 2
評価
(33)
プロジェクト
38
21%
仲裁
5
0% / 60%
期限切れ
0
3
開発者 3
評価
(22)
プロジェクト
33
52%
仲裁
1
100% / 0%
期限切れ
1
3%
仕事中
4
開発者 4
評価
(16)
プロジェクト
20
10%
仲裁
8
38% / 38%
期限切れ
3
15%
仕事中
5
開発者 5
評価
(326)
プロジェクト
508
19%
仲裁
33
45% / 30%
期限切れ
34
7%
取り込み中
6
開発者 6
評価
(13)
プロジェクト
19
37%
仲裁
1
0% / 100%
期限切れ
1
5%
仕事中
7
開発者 7
評価
(60)
プロジェクト
87
29%
仲裁
24
13% / 58%
期限切れ
7
8%
仕事中
8
開発者 8
評価
(23)
プロジェクト
26
73%
仲裁
1
0% / 0%
期限切れ
0
仕事中
9
開発者 9
評価
(33)
プロジェクト
35
20%
仲裁
5
40% / 40%
期限切れ
0
パブリッシュした人: 1 code
10
開発者 10
評価
プロジェクト
0
0%
仲裁
0
期限切れ
0
11
開発者 11
評価
(2)
プロジェクト
3
0%
仲裁
8
13% / 88%
期限切れ
1
33%
12
開発者 12
評価
(553)
プロジェクト
640
33%
仲裁
41
41% / 46%
期限切れ
11
2%
取り込み中
13
開発者 13
評価
(6)
プロジェクト
5
0%
仲裁
2
50% / 50%
期限切れ
2
40%
14
開発者 14
評価
(183)
プロジェクト
236
20%
仲裁
22
41% / 18%
期限切れ
0
取り込み中
15
開発者 15
評価
(3)
プロジェクト
1
0%
仲裁
5
0% / 100%
期限切れ
0
16
開発者 16
評価
(160)
プロジェクト
285
35%
仲裁
18
22% / 61%
期限切れ
42
15%
取り込み中
17
開発者 17
評価
(77)
プロジェクト
243
74%
仲裁
7
100% / 0%
期限切れ
1
0%
パブリッシュした人: 1 article
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%
類似した注文
Società di investimento con attività tra Sanremo e Monaco ricerca un giovane collaboratore con esperienza nell’utilizzo avanzato di MetaTrader 5. Attività: Il collaboratore si occuperà di: • eseguire backtest di strategie di trading su MT5 • effettuare ottimizzazioni parametri tramite Strategy Tester • analizzare risultati e robustezza delle strategie • eseguire forward test • preparare report di test e analisi. Gli
Zone detection is coded , you will be working from that point . Trailing Stop Optimization for live chart . Apply Specific Currency Support . Clean Code . Zone Upper Limit and Lower Limit
حلل لي اصل مالي ) اكتب هنا مثلا XAU EUR USD USD اريد تحليلا تعليما و ليس توصية مالية ۱- نوع التحليل المطلوب : ( فني / اساسي / سلوك سعري ) ٢ - المدي الزمني : ( قصير / متوسط / طويل ) M15 / H1 / H4 / ) اذكر الفريمات المطلوبه + (D1 ما اريد استخراجه من التحليل : الاتجاه العام اقوي مستويات دعم و مقاومة رقمية سيناريو صعود و سيناريو هبوط مع شروط كل سيناريو ( IF / THEN ) اين يصبح السيناريو لاغيا مناطق دخول و خروج تعليمية (
I need modifications to an existing MT5 Expert Advisor. Modification 1 EA must be able to run on indices as well as forex , specifically: SP500 US100 US30 No other changes to the current logic Modification 2 Other alterations/notes: Opening breakout range option for 15min or 30 min from session start. 5 min fair value gap (FVG) break outside of the range (instead of 1 min). At least one of the candles must be within
I am looking for an experienced quantitative developer to analyze and optimize an MT5 Expert Advisor that I have already developed. The EA is relatively complex and includes: Multiple strategies (Trend Pullback, Breakout, Mean Reversion, EMA Reclaim) Scoring system combining technical score and probabilistic filter Regime detection (ADX based) Volatility filters (ATR regime) Correlation and cluster exposure control
Until zone detection is coded , you will be from that point . Trailing Stop Optimization for live chart . Apply with Specific Currency Support . Clean Code . Zone Upper Limit and Lower Limit . Apply with careful understanding of the project requirement
Subject: Professional MT5 Trading Bot Inquiry - Pre-Purchase Requirements Dear [Bot Name/Company Name] Developers, Greetings, I am a professional trader seeking a highly professional and extremely powerful MT5 trading bot , and after extensive research, your product has caught my attention. However, before I click the payment button, I have specific requirements as I am not looking for an ordinary bot, but rather a
hello, please take a moment to review my project. It is for Quanttower. it is very detailed in the instructions. Thank you, Just let me know if you can do it and the whats the cost and timeframe
Exe source code 70+ USD
Need a developer to help with a exe file and provide the source code, if you can do this please kidnly apply and tell me what you need to get this started
XAUUSD - TREND TRADER 30 - 500 USD
Find a good entry point and enter the trade .after the first profit of 25% is done then exit the trade .find the good market analysis of the trend and know when the market is on a good trend. After that now know the entry point and the take profit of the slot you have opened .have also a risk management strategy

プロジェクト情報

予算
30 - 200 USD