명시

#include <Trade/Trade.mqh>
CTrade trade;

input double LotSize = 0.1;
input int FastMA = 10;
input int SlowMA = 20;

int fastHandle, slowHandle;

// Initialize indicators
int OnInit()
{
   fastHandle = iMA(_Symbol, PERIOD_CURRENT, FastMA, 0, MODE_SMA, PRICE_CLOSE);
   slowHandle = iMA(_Symbol, PERIOD_CURRENT, SlowMA, 0, MODE_SMA, PRICE_CLOSE);
   return(INIT_SUCCEEDED);
}

void OnTick()
{
   double fastMA[2];
   double slowMA[2];

   CopyBuffer(fastHandle, 0, 0, 2, fastMA);
   CopyBuffer(slowHandle, 0, 0, 2, slowMA);

   // Previous and current values
   double fastPrev = fastMA[1];
   double fastCurr = fastMA[0];
   double slowPrev = slowMA[1];
   double slowCurr = slowMA[0];

   // Check if no open position
   if(PositionSelect(_Symbol) == false)
   {
      // BUY signal
      if(fastPrev < slowPrev && fastCurr > slowCurr)
      {
         trade.Buy(LotSize, _Symbol);
      }

      // SELL signal
      if(fastPrev > slowPrev && fastCurr < slowCurr)
      {
         trade.Sell(LotSize, _Symbol);
      }
   }
}

응답함

1
개발자 1
등급
(210)
프로젝트
282
46%
중재
27
59% / 37%
기한 초과
36
13%
무료
2
개발자 2
등급
(22)
프로젝트
21
10%
중재
4
25% / 75%
기한 초과
0
무료
3
개발자 3
등급
(15)
프로젝트
19
16%
중재
5
40% / 40%
기한 초과
0
무료
4
개발자 4
등급
프로젝트
0
0%
중재
0
기한 초과
0
무료
5
개발자 5
등급
(18)
프로젝트
23
9%
중재
6
33% / 50%
기한 초과
1
4%
로드됨
6
개발자 6
등급
(6)
프로젝트
5
0%
중재
3
33% / 33%
기한 초과
2
40%
작업중
7
개발자 7
등급
(378)
프로젝트
486
24%
중재
59
54% / 25%
기한 초과
55
11%
바쁜
8
개발자 8
등급
(25)
프로젝트
33
24%
중재
3
33% / 33%
기한 초과
4
12%
작업중
9
개발자 9
등급
프로젝트
0
0%
중재
0
기한 초과
0
무료
10
개발자 10
등급
프로젝트
0
0%
중재
0
기한 초과
0
무료
11
개발자 11
등급
(1)
프로젝트
1
0%
중재
0
기한 초과
0
무료
12
개발자 12
등급
(73)
프로젝트
257
53%
중재
16
50% / 38%
기한 초과
83
32%
무료
비슷한 주문
MODIFY AN EA TO OPEN MULTIPLE TRADES AT SAME TIME WITH DIFFERENT PRE-SET-TP LEVELS AND DIFFERENT ENTRY TECHNIQUES. (personal job) 30+ USD1 application Hie, either way is ok, i will open job in a moment, with only a few requirements ,which i have observed now 1--To completely remove martingale 2-its confusing how SL FROM and SL TYPE differ, also the fact 2 types of SL s can be selected at the same time , so its
In need of an automated bot that strongly detect support and resistance zones where price has a high probability of reacting ,rejecting or reversing. The zones should be built on combibation of of : (a)swing high and swing low.(b)repeated price reaction c)rejection strength (d)break and retest behaviour (e) consolidation origin before implusive move (f) strong displacement candles
I need a mt5 Expert advisor ea to manage intraday trades with strict risk management. The EA must -Handle between 5 to 8 clean trades a day max altogether throughout all 3 sessions. no big news trading times and no overnight trades -Use 1% on forex pairs and upto 2% on XAUUSD risk per trade - Automatically calculate lot size based on stop loss -use fixed RR ratio [1:2] For forex pairs, the stop loss should be
Ninjatrdaer Script 500 - 1000 USD
I am looking to purchase a ninjatrader script, if there is any for sale, i mean a ready made ninjatrdaer script that trade futures, i need the seller to show me a backtest of the system, you know send some results, I would like to see a 1 year and YTD backtest
I need a clean, bug-free MT5 Expert Advisor (MQL5) based on this exact mechanical scalping strategy on M5 timeframe for EURUSD. Indicators (built-in): - EMA 9 and EMA 21 on M5 - RSI 14 - ADX 14 (>25 for strong trend) - H1 EMA 21 above/below H1 EMA 9 for trend alignment Entry Rules (ALL must be true): BUY: EMA9 crosses above EMA21 (on closed bar) + RSI > 50 + ADX > 25 + H1 EMA21 > H1 EMA9 SELL: Mirror (cross below
Im after a person to copy, exactly MACD in TRADINGVIEW to use on MT5. Ive tryed alot of the apps available...Tradingview works for me. Im also after a person to make a real time chart, overlayed on the delayed chart Thanks
I will like to purchase tradingview strategy with high winning rate, i mean already made, tested and trusted and powerful strategy, i have tried to code my own strategy with lot of freelancers but nothing to me i am just wasting money, i have wasted lot of money already, so i need a high winning rate tradingview strategy, we can discuss price in chat, I will need to see some test result as well
Hi everyone, I am hoping that you would be able to help me with possibly an easy fix. I have exhausted all avenues to try and optimise a 3 min US100 / USTEC and convert from line script to MQL5 so I can automate through MT5. The trades are not correlating and there is a clear consistent discrepancy of approximately 123 minutes between a significant number of trades when comparing the same time period. I really hope
need a dots marking of a simple rules pullback indicator. in the .tpl file look at 28 Jan 2026, TF M5 basically it is just overlaping lows or highs of the previous candle price. there are 2 scenario to accomodate: 1. simple pullbacks 2. pullbacks with inside bar and outside bar involved
READ BEFORE MESSAGING PLEASE Developer Requirements (Strict): - Expert Level Only: This is a professional-grade, robust trading engine. Please do not apply if you are a beginner or intermediate developer. ​ - Asynchronous Proficiency: You must have deep experience with CTrade and handling asynchronous order execution (Requotes, Busy Servers, and Order Integrity Sync). ​ - Proven Track Record: I require a developer

프로젝트 정보

예산
30+ USD
기한
 365 일

고객

넣은 주문1
중재 수0