Specifiche
*MQL5 Bot: “HH_HL_Simple.mq5”*
Copy → Paste → Compile in MetaEditor.
//+------------------------------------------------------------------+
//| HH_HL_Simple.mq5 |
//| WARNING: FOR EDUCATION/DEMO ONLY. YOU CAN LOSE MONEY. |
//| @kasii_trader_nela - Learn first, trade later |
//+------------------------------------------------------------------+
#property copyright "Educational use only"
#property strict
#include <Trade/Trade.mqh>
CTrade trade;
//=== INPUTS YOU CAN CHANGE IN MT5 ===
input double RiskPercent = 1.0; // 1% risk per trade. R150 = R1.50 max loss
input int SL_Points = 200; // 200 points = 20 pips on EURUSD 5-digit
input int TP_Points = 400; // TP = 2x SL. Risk:Reward 1:2
input bool TradeBuy = true; // Allow buy trades
input bool TradeSell = false; // Turn off sell for now. Learn 1 direction first
//+------------------------------------------------------------------+
void OnTick()
{
// Don't trade if position already open
if(PositionsTotal() > 0) return;
// Don't trade on weekend/market closed
if(!SymbolInfoInteger(_Symbol, SYMBOL_TRADE_MODE)) return;
// Get last 3 candles on H1
double h1 = iHigh(_Symbol, PERIOD_H1, 1); // 1 candle ago high
double h2 = iHigh(_Symbol, PERIOD TV_H1, 2); // 2 candles ago high
double l1 = iLow(_Symbol, PERIOD_H1, 1); // 1 candle ago low
double l2 = iLow(_Symbol, PERIOD_H1, 2); // 2 candles ago low
// Check structure
bool HH = h1 > h2; // Higher High
bool HL = l1 > l2; // Higher Low
bool LH = h1 < h2; // Lower High
bool LL = l1 < l2; // Lower Low
// BUY RULE: HH + HL = Uptrend
if(TradeBuy && HH && HL)
{
double lot = GetLotSize(SL_Points);
double price = SymbolInfoDouble(_Symbol, SYMBOL_ASK);
double sl = price - SL_Points * _Point;
double tp = price + TP_Points * _Point;
trade.Buy(lot, _Symbol, price, sl, tp, "HH_HL_BUY_DEMO");
Print("BUY SIGNAL: HH=",h1,">",h2," HL=",l1,">",l2," Lot=",lot);
}
// SELL RULE: LH + LL = Downtrend
if(TradeSell && LH && LL)
{
double lot = GetLotSize(SL_Points);
double price = SymbolInfoDouble(_Symbol, SYMBOL_BID);
double sl = price + SL_Points * _Point;
double tp = price - TP_Points * _Point;
trade.Sell(lot, _Symbol, price, sl, tp, "HH_HL_SELL_DEMO");
Print("SELL SIGNAL: LH=",h1,"<",h2," LL=",l1,"<",l2," Lot=",lot);
}
}
//+------------------------------------------------------------------+
//| Calculate lot size based on 1% risk |
//+------------------------------------------------------------------+
double GetLotSize(int sl_points)
{
double balance = AccountInfoDouble(ACCOUNT_BALANCE);
double risk_money = balance * RiskPercent / 100.0;
double tick_value = SymbolInfoDouble(_Symbol, SYMBOL_TRADE_TICK_VALUE);
double tick_size = SymbolInfoDouble(_Symbol, SYMBOL_TRADE_TICK_SIZE);
double point_value = tick_value / (tick_size / _Point);
double lot = risk_money / (sl_points * point_value);
lot = NormalizeDouble(lot, 2);
// Respect broker min/max lot
double min_lot = SymbolInfoDouble(_Symbol, SYMBOL_VOLUME_MIN);
double max_lot = SymbolInfoDouble(_Symbol, SYMBOL_VOLUME_MAX);
if(lot < min_lot) lot = min_lot;
if(lot > max_lot) lot = max_lot;
return lot;
}
//+------------------------------------------------------------------+
Con risposta
1
Valutazioni
Progetti
690
33%
Arbitraggio
43
44%
/
44%
In ritardo
12
2%
Caricato
2
Valutazioni
Progetti
2
0%
Arbitraggio
0
In ritardo
0
Gratuito
3
Valutazioni
Progetti
127
24%
Arbitraggio
23
30%
/
52%
In ritardo
8
6%
Gratuito
4
Valutazioni
Progetti
2928
63%
Arbitraggio
124
44%
/
26%
In ritardo
429
15%
In elaborazione
5
Valutazioni
Progetti
8
0%
Arbitraggio
2
50%
/
0%
In ritardo
1
13%
In elaborazione
6
Valutazioni
Progetti
827
62%
Arbitraggio
33
27%
/
45%
In ritardo
23
3%
In elaborazione
Pubblicati: 1 codice
7
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
8
Valutazioni
Progetti
1
0%
Arbitraggio
1
0%
/
100%
In ritardo
0
Gratuito
9
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
10
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
11
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
12
Valutazioni
Progetti
68
25%
Arbitraggio
12
42%
/
42%
In ritardo
4
6%
Gratuito
13
Valutazioni
Progetti
49
29%
Arbitraggio
4
25%
/
25%
In ritardo
0
Gratuito
14
Valutazioni
Progetti
7
43%
Arbitraggio
1
0%
/
100%
In ritardo
0
Gratuito
15
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
16
Valutazioni
Progetti
36
33%
Arbitraggio
5
0%
/
80%
In ritardo
0
In elaborazione
Pubblicati: 2 codici
17
Valutazioni
Progetti
287
77%
Arbitraggio
13
77%
/
0%
In ritardo
4
1%
In elaborazione
18
Valutazioni
Progetti
244
74%
Arbitraggio
7
100%
/
0%
In ritardo
1
0%
Gratuito
Pubblicati: 1 articolo
Ordini simili
Simple bot for opening range
30+ USD
I need a simple bot for opening range. Simple Entry / Exit rules, to be able to customize the timeframe, time zone (entry candle) and other normal settings like size, etc
Nyctrad1
30+ USD
Free link free land free land free land free land free free land free land free things free land free land free land free land free land free land free land free Finch I will do it
Professional AI Automation Trading Bot for Forex & Crypto
500 - 1500 USD
Title Professional AI Automation Trading Bot for Forex & Crypto Solution Language Python (preferred) or MQL5 depending on integration requirements. Categories Expert Advisor (EA) for MetaTrader 5 Automated trading strategies AI/ML-based signal generation Risk management automation Required Skills Strong knowledge of MQL5/Python Experience with MetaTrader API integration Machine learning model deployment
BullyMax Pro
30+ USD
"Act as an expert MQL5 algorithmic trading developer. I want you to create a profitable and efficient Expert Advisor for MetaTrader 5. Do not write the code yet; read the following trading rules, analyze them, and ask me any clarifying questions if needed. Timeframe: [e.g.15 minutes Chart] Entry Logic: [e.g.MACD + RSI + REVERSAL PRICE ACTION. Enter buy when Macd line crosses above the signal line ,RSI above 30 and
Risk Reward Ratio Indicator
30 - 200 USD
I want an indicator that displays the risk reward ratio of each chart candle as a sub window histogram. If the candle closes above the open the histogram displays a green bar above zero the size of which is dependant on the size of the RRR. If the candle closes below the open the histogram displays a red bar below zero the size of which is dependant on the size of the RRR. My attempt that does not work is attached
Hi, I am looking for an experienced MQL5 developer to modify an existing, fully functional MetaTrader 5 Expert Advisor (Source code .mq5 Version 2.62 will be provided). Brief Overview of the EA: It executes trades based on 4 custom Supply/Demand levels (R1, R2, S1, S2) which are inputted manually . It uses two custom indicators for confirmation: SPA (Price Action filter) and AMG (Volume/Momentum filter). The code
Robots in C++ (cAlgo trading platform)
5000+ USD
I really like this platform. I am interested in trading and need funds for it. I enjoy both crypto and forex trading.I"really appreciate this platform. I am keen on trading and am looking for trading funds. I enjoy trading in both cryptocurrency and forex."
Titan Quantum Algo Engine V2🏆
30 - 200 USD
Titan Quantum Algo Engine V2 is an advanced MT5 Expert Advisor designed to identify high-probability market opportunities using trend analysis, breakout detection, and intelligent risk management. The EA automatically executes trades, manages stop-loss and take-profit levels, and helps traders maintain disciplined trading with optimized entry and exit strategies
The striker robot
30 - 2000 USD
I would like a trend and pullback strategy for the robot timeframe:15 minutes(m15) or 1 hour(h1) indicators:50 EMA (Exponential Moving Average)/200 EMA/RSI (14) BUY SET UP 1.Confirm The Trend .50 EMA must be above 200 EMA .Price must be above both EMAs 2.Wait for a pullback .Do not buy when the price shoots up. .Wait for the price to come back near the 50 EMA 3.Confirm entry .ENTER BUY WHEN: .A bullish candlestick
I do not have any startegy, and I want you to create one with your experience, you will provide me EA along with source code. you may use Grid or any logic, but the EA should keep generating profit during Newyourk and Asian session
Informazioni sul progetto
Budget
30+ USD
Cliente
Ordini effettuati1
Numero di arbitraggi0