명시
//+------------------------------------------------------------------+
//| Moving Average Crossover EA for MT5 |
//+------------------------------------------------------------------+
#include <Trade\Trade.mqh>
CTrade trade;
input int FastMAPeriod = 50;
input int SlowMAPeriod = 200;
input int StopLossPips = 50;
input int TakeProfitPips = 100;
input double RiskPercent = 2.0;
double lotSize;
//+------------------------------------------------------------------+
//| Calculate lot size based on 2% risk |
//+------------------------------------------------------------------+
double CalculateLotSize(double stopLossPoints)
{
double riskAmount = AccountBalance() * RiskPercent / 100.0;
double tickValue = SymbolInfoDouble(_Symbol, SYMBOL_TRADE_TICK_VALUE);
double tickSize = SymbolInfoDouble(_Symbol, SYMBOL_TRADE_TICK_SIZE);
double point = SymbolInfoDouble(_Symbol, SYMBOL_POINT);
double contractSize = SymbolInfoDouble(_Symbol, SYMBOL_TRADE_CONTRACT_SIZE);
double lossPerLot = stopLossPoints * point * contractSize / tickSize * tickValue;
return NormalizeDouble(riskAmount / lossPerLot, 2);
}
//+------------------------------------------------------------------+
//| Expert Tick Function |
//+------------------------------------------------------------------+
void OnTick()
{
// Get the current and previous MAs
double maFastCurrent = iMA(_Symbol, _Period, FastMAPeriod, 0, MODE_EMA, PRICE_CLOSE, 0);
double maFastPrevious = iMA(_Symbol, _Period, FastMAPeriod, 0, MODE_EMA, PRICE_CLOSE, 1);
double maSlowCurrent = iMA(_Symbol, _Period, SlowMAPeriod, 0, MODE_EMA, PRICE_CLOSE, 0);
double maSlowPrevious = iMA(_Symbol, _Period, SlowMAPeriod, 0, MODE_EMA, PRICE_CLOSE, 1);
// Check for crossover
if (maFastPrevious < maSlowPrevious && maFastCurrent > maSlowCurrent) // BUY Signal
{
if (PositionSelect(_Symbol) && PositionGetInteger(POSITION_TYPE) == POSITION_TYPE_SELL)
trade.Close(_Symbol); // Close opposite position
if (!PositionSelect(_Symbol)) // Only if no open position
{
double stopLoss = StopLossPips * _Point;
double takeProfit = TakeProfitPips * _Point;
lotSize = CalculateLotSize(StopLossPips * 10); // pip to point conversion
trade.Buy(lotSize, _Symbol, SymbolInfoDouble(_Symbol, SYMBOL_ASK), stopLoss, takeProfit, "Buy on crossover");
}
}
else if (maFastPrevious > maSlowPrevious && maFastCurrent < maSlowCurrent) // SELL Signal
{
if (PositionSelect(_Symbol) && PositionGetInteger(POSITION_TYPE) == POSITION_TYPE_BUY)
trade.Close(_Symbol); // Close opposite position
if (!PositionSelect(_Symbol)) // Only if no open position
{
double stopLoss = StopLossPips * _Point;
double takeProfit = TakeProfitPips * _Point;
lotSize = CalculateLotSize(StopLossPips * 10); // pip to point conversion
trade.Sell(lotSize, _Symbol, SymbolInfoDouble(_Symbol, SYMBOL_BID), stopLoss, takeProfit, "Sell on crossover");
}
}
}
응답함
1
등급
프로젝트
186
41%
중재
24
58%
/
21%
기한 초과
13
7%
무료
2
등급
프로젝트
22
9%
중재
6
33%
/
50%
기한 초과
1
5%
작업중
3
등급
프로젝트
481
23%
중재
58
55%
/
26%
기한 초과
55
11%
로드됨
4
등급
프로젝트
35
46%
중재
0
기한 초과
0
무료
게재됨: 3 코드
5
등급
프로젝트
3
33%
중재
1
0%
/
100%
기한 초과
0
무료
6
등급
프로젝트
400
27%
중재
39
41%
/
49%
기한 초과
1
0%
무료
7
등급
프로젝트
472
40%
중재
103
40%
/
23%
기한 초과
78
17%
바쁜
게재됨: 2 코드
8
등급
프로젝트
333
35%
중재
66
12%
/
58%
기한 초과
87
26%
무료
9
등급
프로젝트
8
13%
중재
6
33%
/
33%
기한 초과
0
무료
10
등급
프로젝트
0
0%
중재
0
기한 초과
0
무료
11
등급
프로젝트
19
42%
중재
6
0%
/
50%
기한 초과
3
16%
작업중
12
등급
프로젝트
11
0%
중재
4
0%
/
100%
기한 초과
2
18%
작업중
13
등급
프로젝트
0
0%
중재
4
0%
/
75%
기한 초과
0
무료
14
등급
프로젝트
35
23%
중재
4
0%
/
50%
기한 초과
2
6%
작업중
15
등급
프로젝트
3
0%
중재
3
33%
/
67%
기한 초과
1
33%
무료
16
등급
프로젝트
67
37%
중재
5
40%
/
40%
기한 초과
1
1%
무료
17
등급
프로젝트
0
0%
중재
0
기한 초과
0
무료
18
등급
프로젝트
5
0%
중재
2
50%
/
50%
기한 초과
2
40%
무료
19
등급
프로젝트
945
47%
중재
309
58%
/
27%
기한 초과
125
13%
무료
비슷한 주문
MT5 backtestest helper
30 - 200 USD
Sure 😊 — here’s a simple file-style write-up about your robot that you ordered on MetaTrader 4. You can copy it into Word or save it as a document. Title: My Trading Robot on MetaTrader 4 Introduction I recently ordered a trading robot on MetaTrader 4 to help me trade in the financial markets. A trading robot, also known as an Expert Advisor (EA), is a program that automatically analyzes the market and places trades
I am looking for a professional MQL5 developer to build a structured MT5 Expert Advisor. This is NOT a martingale or high-risk grid bot. Platform: • MT5 only (MQL5 source code required) Symbols: • XAUUSD • GBPUSD • GBPJPY Timeframe: • M5 Risk Management: • Adjustable risk per trade (default 0.5% equity) • Daily drawdown protection (max 3%, auto-lock trading for the day) • Maximum 2 open trades • Minimum 120 seconds
What informtion would you need for Ninjatrader futures automated trading and how long would it take ? if anyone can give me answer i will be happy to discuss more about the project thanks fill free to bid to the project thanks
Custom Indicators MT5
30+ USD
iwant to get indicator for both trades including forex gold algo and other . all FOREX MT 5 TRADING MARKETING must be analyses by and give me indicator or signal on how or where market go next at a specific time
Hello, I need a MetaTrader 5 manual trading assistant panel (NOT an auto trading EA). MAIN IDEA This tool should work like the TradingView long/short position tool inside MT5. Trader workflow: 1) Enter Risk % 2) Enter RR ratio 3) Click SET ENTRY 4) Drag Stop Loss line on chart 5) Lot size and Take Profit calculate automatically 6) Press BUY or SELL to execute trade No trailing stop, no breakeven, no automatic trade
MT5 DEV NEEDED
60+ USD
Hello I'm looking to develop an Expert Advisor (EA) based on my existing indicator EA that uses TrendX600 on the 1-minute timeframe. My objective is to create a scalping bot that can successfully capture one box (60-second candle movement) at a time. If the EA can consistently capture one clean 60-second box without spikes, and repeat this process 4 to 5 times within 24 hours, that would meet my trading goal. To work
Requirements: - Convert my written trading rules into TradingView Pine strategy - Then convert into MT5 EA - Entry must be next candle open after signal candle close - Stop loss on signal candle high/low - Position sizing: fixed % risk per trade - Portfolio risk cap across symbols - One trade per symbol at a time - Must understand backtesting differences (spread, slippage, fill logic) Important: I want to be able to
Hey guys, I’ve been trading for 6 years now and I need to automate a strategy that is really simple and ove developed by myself. Can you help me on that? Here is my e-mail angelocherubini24@gmail.com
SavannaFX Pro
100+ USD
//+------------------------------------------------------------------+ //| SavannaFX Pro | //| Created for Junior | //+------------------------------------------------------------------+ #property strict input int FastMA = 20; input int SlowMA = 50; input int RSIPeriod = 14; input double LotSize = 0.1; input int StopLoss = 300; input int TakeProfit = 600; int
Convert Pinescript indicador to MQL5
100 - 120 USD
Hello, I have a strategy written in Pine Script (TradingView) that used to send signals to MetaTrader 5 via PineConnector. Now I want a native MT5 Expert Advisor (EA) written in MQL5, so I can do full backtesting and trading inside MetaTrader without any external bridge. I will provide: - Full Pine Script code - Entry and exit rules (based on BOS and OB logic) - SL/TP and dynamic risk management (R:R) - Breakeven
프로젝트 정보
예산
30+ USD