명시

//+------------------------------------------------------------------+
//| M65 PRO ROBOT |
//| Trend + RSI + Risk Management |
//+------------------------------------------------------------------+
#property strict

input double LotSize = 0.01;
input int StopLoss = 100; // points
input int TakeProfit = 200; // points
input int RSI_Period = 14;

int rsiHandle;
int ema50Handle;
int ema200Handle;

//+------------------------------------------------------------------+
int OnInit()
{
   rsiHandle = iRSI(_Symbol, PERIOD_M5, RSI_Period, PRICE_CLOSE);
   ema50Handle = iMA(_Symbol, PERIOD_M5, 50, 0, MODE_EMA, PRICE_CLOSE);
   ema200Handle = iMA(_Symbol, PERIOD_M5, 200, 0, MODE_EMA, PRICE_CLOSE);
   return(INIT_SUCCEEDED);
}
//+------------------------------------------------------------------+
void OnTick()
{
   double rsi[], ema50[], ema200[];
   CopyBuffer(rsiHandle, 0, 0, 1, rsi);
   CopyBuffer(ema50Handle, 0, 0, 1, ema50);
   CopyBuffer(ema200Handle, 0, 0, 1, ema200);

   if(PositionSelect(_Symbol)) return;

   double Ask = SymbolInfoDouble(_Symbol, SYMBOL_ASK);
   double Bid = SymbolInfoDouble(_Symbol, SYMBOL_BID);

   // BUY CONDITION
   if(ema50[0] > ema200[0] && rsi[0] > 55)
   {
      trade.Buy(LotSize, _Symbol, Ask, Ask - StopLoss * _Point, Ask + TakeProfit * _Point);
   }

   // SELL CONDITION
   if(ema50[0] < ema200[0] && rsi[0] < 45)
   {
      trade.Sell(LotSize, _Symbol, Bid, Bid + StopLoss * _Point, Bid - TakeProfit * _Point);
   }
}

응답함

1
개발자 1
등급
(28)
프로젝트
39
23%
중재
14
0% / 93%
기한 초과
4
10%
무료
2
개발자 2
등급
(153)
프로젝트
240
34%
중재
20
45% / 30%
기한 초과
3
1%
무료
3
개발자 3
등급
프로젝트
0
0%
중재
0
기한 초과
0
무료
게재됨: 8 코드
4
개발자 4
등급
(1304)
프로젝트
1733
49%
중재
55
67% / 16%
기한 초과
38
2%
작업중
5
개발자 5
등급
(2346)
프로젝트
2951
63%
중재
125
44% / 26%
기한 초과
429
15%
무료
6
개발자 6
등급
(2)
프로젝트
2
0%
중재
1
0% / 100%
기한 초과
0
무료
7
개발자 7
등급
(1)
프로젝트
1
0%
중재
1
0% / 0%
기한 초과
0
작업중
8
개발자 8
등급
(5)
프로젝트
7
0%
중재
8
13% / 75%
기한 초과
3
43%
무료
9
개발자 9
등급
(298)
프로젝트
478
40%
중재
105
40% / 24%
기한 초과
82
17%
로드됨
게재됨: 2 코드
10
개발자 10
등급
프로젝트
0
0%
중재
0
기한 초과
0
무료
11
개발자 11
등급
프로젝트
0
0%
중재
0
기한 초과
0
무료
비슷한 주문
Bonjour, Je souhaite créer un Expert Advisor (EA) en MQL5 optimisé pour opérer sur les paires Forex (EURUSD) et les métaux précieux (GOLD / XAUEUR / GAUUSD) Fonctionnalités requises : 1. Stratégie directionnelle : Le bot doit identifier le début d'un mouvement de tendance (hausse ou baisse) et exécuter des entrées rapides dans le sens de la tendance. 2. Sortie anticipée : Le bot doit sécuriser la position rapidement
Un bot de trading automatique conçu pour s’adapter au marché : il suit la tendance quand le marché est directionnel et passe en scalping M1 lorsque le marché est en range. 💰 Gestion du capital dynamique 📊 Lot adapté au capital ⚡ Scalping M1 🛡️ Gestion du risque et protection du compte 🤖 Trading automatique Commence petit, maîtrise ton risque et laisse la technologie travailler

프로젝트 정보

예산
30 - 200 USD
기한
에서 3  5 일