명시
//+------------------------------------------------------------------+
//| ScalperEA.mq5 |
//+------------------------------------------------------------------+
#property copyright "Template"
#property version "1.00"
#property strict
input int FastEMA = 8;
input int SlowEMA = 21;
input int AtrPeriod = 14;
input double StopAtrMult = 1.2;
input double TpAtrMult = 1.0;
input double RiskPercent = 0.5; // percent account risk per trade
input int Magic = 123456;
input double Lots = 0.01;
double EMAFast[], EMASlow[], ATRArr[];
int OnInit()
{
SetIndexBuffer(0, EMAFast);
SetIndexBuffer(1, EMASlow);
// nothing to set for ATR; we'll compute using iATR
return(INIT_SUCCEEDED);
}
void OnTick()
{
// get last two closed candles
int shift = 1; // last closed bar
double fast_prev = iMA(NULL, PERIOD_CURRENT, FastEMA, 0, MODE_EMA, PRICE_CLOSE, shift+1);
double fast_last = iMA(NULL, PERIOD_CURRENT, FastEMA, 0, MODE_EMA, PRICE_CLOSE, shift);
double slow_prev = iMA(NULL, PERIOD_CURRENT, SlowEMA, 0, MODE_EMA, PRICE_CLOSE, shift+1);
double slow_last = iMA(NULL, PERIOD_CURRENT, SlowEMA, 0, MODE_EMA, PRICE_CLOSE, shift);
double atr = iATR(NULL, PERIOD_CURRENT, AtrPeriod, shift);
if (atr <= 0) return;
// simple crossover signals
if (fast_prev <= slow_prev && fast_last > slow_last)
{
// buy signal
double entry = SymbolInfoDouble(_Symbol, SYMBOL_BID); // or use Ask for buy market entry
double stop = entry - StopAtrMult * atr;
double tp = entry + TpAtrMult * atr;
double lots = Lots;
// optionally compute lots from RiskPercent and stop distance
// place market buy
trade_buy(lots, stop, tp);
}
else if (fast_prev >= slow_prev && fast_last < slow_last)
{
// sell signal
double entry = SymbolInfoDouble(_Symbol, SYMBOL_ASK);
double stop = entry + StopAtrMult * atr;
double tp = entry - TpAtrMult * atr;
trade_sell(Lots, stop, tp);
}
}
void trade_buy(double lots, double stop, double tp)
{
MqlTradeRequest req;
MqlTradeResult res;
ZeroMemory(req);
req.action = TRADE_ACTION_DEAL;
req.symbol = _Symbol;
req.volume = lots;
req.type = ORDER_TYPE_BUY;
req.price = SymbolInfoDouble(_Symbol, SYMBOL_ASK);
req.sl = stop;
req.tp = tp;
req.deviation = 5;
req.magic = Magic;
OrderSend(req, res);
}
void trade_sell(double lots, double stop, double tp)
{
MqlTradeRequest req;
MqlTradeResult res;
ZeroMemory(req);
req.action = TRADE_ACTION_DEAL;
req.symbol = _Symbol;
req.volume = lots;
req.type = ORDER_TYPE_SELL;
req.price = SymbolInfoDouble(_Symbol, SYMBOL_BID);
req.sl = stop;
req.tp = tp;
req.deviation = 5;
req.magic = Magic;
OrderSend(req, res);
}
응답함
1
등급
프로젝트
972
47%
중재
32
38%
/
34%
기한 초과
96
10%
작업중
게재됨: 6 코드
2
등급
프로젝트
154
20%
중재
22
9%
/
77%
기한 초과
14
9%
작업중
3
등급
프로젝트
0
0%
중재
0
기한 초과
0
무료
4
등급
프로젝트
396
27%
중재
38
39%
/
50%
기한 초과
1
0%
무료
5
등급
프로젝트
1
0%
중재
0
기한 초과
0
작업중
6
등급
프로젝트
1
0%
중재
0
기한 초과
0
무료
7
등급
프로젝트
2
0%
중재
4
25%
/
50%
기한 초과
1
50%
무료
8
등급
프로젝트
0
0%
중재
0
기한 초과
0
무료
9
등급
프로젝트
0
0%
중재
0
기한 초과
0
무료
10
등급
프로젝트
35
34%
중재
3
0%
/
67%
기한 초과
0
로드됨
게재됨: 2 코드
11
등급
프로젝트
253
30%
중재
0
기한 초과
3
1%
무료
게재됨: 2 코드
12
등급
프로젝트
0
0%
중재
0
기한 초과
0
작업중
13
등급
프로젝트
2
0%
중재
0
기한 초과
0
무료
14
등급
프로젝트
7
0%
중재
3
33%
/
33%
기한 초과
3
43%
로드됨
15
등급
프로젝트
0
0%
중재
4
0%
/
75%
기한 초과
0
작업중
16
등급
프로젝트
167
39%
중재
8
50%
/
0%
기한 초과
29
17%
로드됨
17
등급
프로젝트
8
13%
중재
3
0%
/
33%
기한 초과
2
25%
무료
게재됨: 1 코드
18
등급
프로젝트
5
0%
중재
1
100%
/
0%
기한 초과
1
20%
작업중
19
등급
프로젝트
1
100%
중재
2
0%
/
100%
기한 초과
0
무료
20
등급
프로젝트
0
0%
중재
0
기한 초과
0
무료
21
등급
프로젝트
0
0%
중재
0
기한 초과
0
무료
22
등급
프로젝트
8
38%
중재
0
기한 초과
1
13%
무료
게재됨: 1 코드
비슷한 주문
Developing MT5 EA for Gold
100 - 500 USD
I asked ChatGPT to come up with a strategy to trade the downside of gold. I'm looking for someone who can tell me whether the suggestion is feasible and, if not, how the scope and purpose of the paper can be achieved differently. At the end, a corresponding code should be created. Thank you for your feedback
I have a perfectly working EA that always gets altered, I need special security features implemented, and I already have a great idea of what I need. Super easy, codes already work, just need tweaking here and there. Cybersecurity proficiency would be a positive
MT4 EA for Kill switch
30 - 200 USD
MT4 EA for automatic kill switch for unrealized p&l mt4 and disable autoTrading button we have EA which does not stop when Drawdowns are high. we need one more EA to monitor and stop this EA
Traingview indicator
30+ USD
I would like to create an indicator for my strategy on trading view , my strategy involves a liquidity sweep , wick or candle body closure , this needs to happen inside a higher time frame pd array such as a fair value gap that’s atleast 5m + and there needs to be an inversion fair value gap for my entry , I want the fair value gaps on all time frames so I can see them all on the 1 minute chart but i want the fair
Hi guys looking for a reversal indicator (including a strategy for it) that places signals on chart (will attach screenshots below for reference and have a look at them before applying) Signals must he placed at candle close without shift and not repaint. Since I'm offering a high budget I want everything to run smoothly in these steps 1. Send screenahots of it 2. I'll give you feedback what to change or we'll skip
Tradingview Pine script
30+ USD
can you help me with making a simple tradingview/script that draws boxes labeling consolidation areas according to my specifications? IF anyone can help with this kindly do well to bid to this so we can discuss more about the project thanka
I need a high-speed trading EA that works on live accounts with IC Markets. I will provide a video of an EA trading on the DE40 pair with high speed; I want that same logic and trading style replicated in my EA. Most importantly, please only apply if you are experienced with HFT trading strategies. You will only be selected for this job after you have successfully explained the logic of the video to me
Using news filter, simple price action, some indicators & statistics inputs to create Conservative BTCUSD and XAUUSD Scalping EA The required EA must: - Continuously working - Be with full source code given to me - Edges cases Solved > 99% - Be from a +5 successful similar projects coder - Be put in Trello for reviewing, validating and back testing - Be of clean
I already have 4 different indicators on tradingview source codes I wanted to merge 2 then 2 the way the are without changing the source codes or the original source. Each drawings and signals should remains same even after merging 2 and 2 separately by making it 2 indicators instead of 4 as they are now. You will make it compatible with tradingview panel without changing the original source of each.I want it within
Subject: Request for Expert MT5 Forex EA Developer Hello, I am looking for a professional MetaTrader 5 Forex Expert Advisor (EA) developer with extensive experience. I want a fast AI-powered trading bot for MT5 that can: Open multiple trades automatically, whether buy or sell, and close them for profit. Execute high-frequency scalping with high precision. Analyze or predict the market trend (buy or sell) and act
프로젝트 정보
예산
30 - 500 USD
고객
넣은 주문2
중재 수0