JHHO

MQL5 Conversão

Termos de Referência

// גרסה 5 של MetaTrader
// הגדרת פרמטרים בסיסיים של הבוט
קלט כפול lot_size = 0.1; // גודל העסקה
קלט כפול stop_loss = 100; // סטופ לוס ב-פיפס
קלט כפול take_profit = 200; // טייק פרופיט ב-פיפס
קלט כפול סיכון_למסחר = 0.25; // אחוז סיכון בעסקה (0.25%)

// משתנים גלובליים
מחיר כניסה כפול;
כרטיס int;

// פונקציה לפתיחת עסקה
void OpenTrade(כיוון מחרוזת) {
    כפול sl, tp;
    if (כיוון == "קנה") {
        sl = שאל - stop_loss * נקודה; // חישוב סטופ לוס
        tp = Ask + take_profit * נקודה; // חישוב טייק פרופיט
        ticket = OrderSend(Symbol(), OP_BUY, lot_size, Ask, 2, sl, tp, "Buy Order", 0, 0, Blue);
    } 
    else if (כיוון == "SELL") {
        sl = הצעת מחיר + stop_loss * נקודה;
        tp = הצעת מחיר - take_profit * נקודה;
        ticket = OrderSend(Symbol(), OP_SELL, lot_size, Bid, 2, sl, tp, "Sell Order", 0, 0, Red);
    }

    if (כרטיס < 0) {
        Print("שגיאה בהזמנת עסקה: ", GetLastError());
    }
}

// פונקציה לסגירת עסקה
void CloseTrade() {
    if (כרטיס > 0) {
        OrderClose(כרטיס, lot_size, Bid, 2, Red);
    }
}

// בדוק אם התנאים לפתיחת עסקה מתקיימים (FVG)
bool CheckFVG() {
    // הגדרת חוב (Fair Value Gap) - דוגמת קוד (צריך התאמה לדרישות האישיות)
    if (נמוך[2] > גבוה[0] && גבוה[2] < נמוך[0]) {
        החזר אמיתי; // חוב קיים
    }
    החזר שקר;
}

// פונקציה ראשית של הבוט
void OnTick() {
    // בודק אם יש חובה ומבצע עסקה אם התנאים מתקיימים
    if (CheckFVG()) {
        // אם יש חוב (FVG), אז נבצע עסקה לקנייה
        OpenTrade("BUY");
    }

    // סגירת עסקה אם תנאים מתאימים (לדוגמה, רווח/הפסד)
    if (OrderSelect(כרטיס, SELECT_BY_TICKET)) {
        רווח כפול = OrderProfit();
        if (profit >= 50) { // אם רווח גבוה מ-50 דולר, נסגור
            CloseTrade();
        }
    }
}

// פונקציה להחלת סיכון/סיכוי
void SetRiskManagement() {
    // חישוב סיכון על כל עסקה
    double account_balance = AccountBalance();
    סכום_סיכון כפול = יתרת_חשבון * (סיכון_למסחר / 100);
    גודל_מיקום כפול = סכום_סיכון / הפסקת_הפסד;

    // הצגת גודל העסקה
    Print("גודל העסקה: ", position_size);
}

Respondido

1
Desenvolvedor 1
Classificação
(7)
Projetos
8
38%
Arbitragem
0
Expirado
1
13%
Livre
2
Desenvolvedor 2
Classificação
(239)
Projetos
448
26%
Arbitragem
130
21% / 58%
Expirado
99
22%
Livre
3
Desenvolvedor 3
Classificação
(8)
Projetos
10
30%
Arbitragem
1
100% / 0%
Expirado
0
Trabalhando
Pedidos semelhantes
Hello experts, I’m looking for a professional and experienced developer to assist with a project involving the conversion of an existing MQL4 indicator to Pine Script (TradingView). The goal is to replicate the full functionality of the indicator accurately in Pine Script, ensuring that all the signals, logic, and features work seamlessly on TradingView. Clean, optimized code and proper testing are essential
I need a professional developer who we can work on my current project and other project i have in Que. Hello I need exactly that! Already have a mt5 strategy…. I need to convert the same to ninja and TradeLocker let me know price timing and what you need. I need it Asap
I have my own renko chart. When the first block closes above RSi level (X) I want to buy then when the first block closes below rsi level (x) I want the trade to close and a sell to open. When the first block closes below rsi level (x) i want the ea to sell and not close until the first block closes above rsi level (x) then a buy should open If there is a loss, 2 trades should be taken at the same time. A regular
Good day, Im looking for someone who can convert my MQ4 indicator to MQ5. Add some buffers and variables into it that i can use to declare sooner. Attached is the specifications I need. Codes will be sent after accepting the job. If you do not want this, kindly do not bother to message on this job
Good day, Im looking for someone who can convert my MQ4 indicator to MQ5. Add some buffers and variables into it that i can use to declare sooner. I also want someone who can explain to me the codes i am confused on
I have a pine script that I am running on TradingView. I have used the crosstrade software to automatically take the trades on my ninjatrader. The execution delay is making things super difficult. Also, the strategy is taking multiple positions when it hits the entry price twice on the same bar. I’d like to have only one position open each time it hits the entry price on one bar. Can anyone convert my pinescript into
Zigzag 30+ USD
المؤشرات على معالجة مخططات الأسعار أو تسلسلات الأسعار. والغرض من هذه المعالجة هو توفير أداة تحليل فني مرئية. لذلك، عند طلب مؤشر، عليك تقديم إجابات لبعض الأسئلة، مما يساعد المبرمج على
Hello I need exactly that! Already have a mt5 Indicator strategy…. I need to convert the same Indicator to ninja and TradeLocker let me know price timing and what you need Let me know if you can work on this
hello great developer i just want a conversation,I am simply trying to get it work in ninjatrader the same as it would in tradingview just to Simple, Maintain indicator's core functionality and accuracy Clear communication throughout conversion Testing, validation, and one revision included we can start as long as you can maintain indicator's core functionality and accuracy any small changes in visuals can be worked
Hello I need exactly that! Already have a mt5 strategy…. I need to convert the same to ninja and TradeLocker let me know price timing and what you need Let me know if you can work on this

Informações sobre o projeto

Orçamento
30 - 200 USD

Cliente

Pedidos postados1
Número de arbitragens0