명시

//+------------------------------------------------------------------+
//| Simple Robo Trader MT5 |
//| Works on any pair & timeframe |
//+------------------------------------------------------------------+
#property strict

// Input settings
input double LotSize = 0.01;
input int FastMA = 10;
input int SlowMA = 30;
input int RSIPeriod = 14;
input int StopLoss = 200; // in points
input int TakeProfit = 400;// in points

// Indicator handles
int fastMAHandle;
int slowMAHandle;
int rsiHandle;

//+------------------------------------------------------------------+
int OnInit()
{
   fastMAHandle = iMA(_Symbol, _Period, FastMA, 0, MODE_EMA, PRICE_CLOSE);
   slowMAHandle = iMA(_Symbol, _Period, SlowMA, 0, MODE_EMA, PRICE_CLOSE);
   rsiHandle = iRSI(_Symbol, _Period, RSIPeriod, PRICE_CLOSE);

   return(INIT_SUCCEEDED);
}

//+------------------------------------------------------------------+
void OnTick()
{
   if(PositionsTotal() > 0) return;

   double fastMA[2], slowMA[2], rsi[1];

   CopyBuffer(fastMAHandle, 0, 0, 2, fastMA);
   CopyBuffer(slowMAHandle, 0, 0, 2, slowMA);
   CopyBuffer(rsiHandle, 0, 0, 1, rsi);

   // BUY Condition
   if(fastMA[1] < slowMA[1] && fastMA[0] > slowMA[0] && rsi[0] > 50)
   {
      BuyTrade();
   }

   // SELL Condition
   if(fastMA[1] > slowMA[1] && fastMA[0] < slowMA[0] && rsi[0] < 50)
   {
      SellTrade();
   }
}

//+------------------------------------------------------------------+
void BuyTrade()
{
   double price = SymbolInfoDouble(_Symbol, SYMBOL_ASK);
   double sl = price - StopLoss * _Point;
   double tp = price + TakeProfit * _Point;

   MqlTradeRequest req;
   MqlTradeResult res;

   ZeroMemory(req);

   req.action = TRADE_ACTION_DEAL;
   req.symbol = _Symbol;
   req.volume = LotSize;
   req.type = ORDER_TYPE_BUY;
   req.price = price;
   req.sl = sl;
   req.tp = tp;
   req.deviation = 10;

   OrderSend(req, res);
}

//+------------------------------------------------------------------+
void SellTrade()
{
   double price = SymbolInfoDouble(_Symbol, SYMBOL_BID);
   double sl = price + StopLoss * _Point;
   double tp = price - TakeProfit * _Point;

   MqlTradeRequest req;
   MqlTradeResult res;

   ZeroMemory(req);

   req.action = TRADE_ACTION_DEAL;
   req.symbol = _Symbol;
   req.volume = LotSize;
   req.type = ORDER_TYPE_SELL;
   req.price = price;
   req.sl = sl;
   req.tp = tp;
   req.deviation = 10;

   OrderSend(req, res);
}

응답함

1
개발자 1
등급
(13)
프로젝트
14
36%
중재
3
0% / 100%
기한 초과
0
무료
게재됨: 1 기고글
2
개발자 2
등급
(64)
프로젝트
144
46%
중재
21
38% / 19%
기한 초과
32
22%
작업중
3
개발자 3
등급
(4)
프로젝트
3
33%
중재
2
0% / 100%
기한 초과
0
무료
4
개발자 4
등급
프로젝트
0
0%
중재
0
기한 초과
0
무료
5
개발자 5
등급
(3)
프로젝트
1
100%
중재
3
0% / 100%
기한 초과
0
무료
6
개발자 6
등급
프로젝트
0
0%
중재
0
기한 초과
0
무료
7
개발자 7
등급
(369)
프로젝트
452
55%
중재
24
54% / 17%
기한 초과
30
7%
로드됨
8
개발자 8
등급
(1)
프로젝트
1
0%
중재
3
0% / 100%
기한 초과
1
100%
무료
9
개발자 9
등급
프로젝트
0
0%
중재
0
기한 초과
0
무료
10
개발자 10
등급
프로젝트
0
0%
중재
1
0% / 0%
기한 초과
0
작업중
11
개발자 11
등급
(6)
프로젝트
7
14%
중재
1
0% / 100%
기한 초과
1
14%
무료
12
개발자 12
등급
(119)
프로젝트
169
38%
중재
9
78% / 22%
기한 초과
15
9%
무료
13
개발자 13
등급
(8)
프로젝트
8
0%
중재
2
50% / 0%
기한 초과
1
13%
작업중
14
개발자 14
등급
(3)
프로젝트
3
0%
중재
0
기한 초과
0
무료
15
개발자 15
등급
프로젝트
0
0%
중재
0
기한 초과
0
무료
16
개발자 16
등급
프로젝트
0
0%
중재
1
0% / 100%
기한 초과
0
무료
17
개발자 17
등급
프로젝트
0
0%
중재
0
기한 초과
0
무료
18
개발자 18
등급
프로젝트
0
0%
중재
0
기한 초과
0
무료
19
개발자 19
등급
(8)
프로젝트
9
22%
중재
0
기한 초과
0
무료
20
개발자 20
등급
프로젝트
0
0%
중재
0
기한 초과
0
무료
21
개발자 21
등급
(45)
프로젝트
63
52%
중재
5
0% / 40%
기한 초과
1
2%
무료
22
개발자 22
등급
(2)
프로젝트
1
0%
중재
1
0% / 100%
기한 초과
0
무료
비슷한 주문
i need some tradingview strategy that i want to use as a tester, i have something that i am working on currently and i need someone that can provide me with tradingview strategies that doesn't have a win rate, the one with 1:1 RR it need to have low win rate like 10% or 5% profitability, i am not paying $30 for,i dont have up to that for this cause i only want to use it as a test, if anyone have any to send me please
Create a bot that can trade and read indicators easy to read for first time users. Bot that can be used on a phone and connect to MT5. It should be easy to install or use on any device especially phone and laptop, preferably the bot that can run over night and controllable when needed
Project Description I am looking for an experienced MQL5/MT5 Expert Advisor developer to develop an automated trading EA for XAUUSD on the M3 timeframe , running on an Exness account . The EA will automate a manual strategy based on SNR/GAP zones , using two setup types: Price Rejection Price Correction The EA should identify valid BUY/SELL setups around predefined SNR/GAP areas, apply configurable RSI, SMA, EMA and
Hi i need help to connect my chat gtp with ninja trader I have all tools. Just need supervision and seeking a professional who can do that for me. This the bridge extension https://crosstrade.io/blog/chatgpt-to-ninjatrader-mcp-walkthrough
MetaTrader 5 (MT5) Price-Level Monitoring & Automated Phone Call Alert System Developer Needed Project Overview I am looking for an experienced developer to build a custom trading assistant for MetaTrader 5 (MT5) that monitors important price levels I manually mark on my charts and immediately calls my phone when the market reaches or interacts with those levels. This is Phase 1 of a larger trading assistant project
take your time better make it for days and have good bot than never benefits both of us. Make the bot have zero errors and backtest it for a 2 year period

프로젝트 정보

예산
40 - 10000 USD