Spécifications

// Define the properties
input int ShortPeriod = 12;
input int LongPeriod = 26;
input double LotSize = 0.1;

// OnTick function is called every time there is a price update
void OnTick()
{
    double shortMA = iMA(NULL, 0, ShortPeriod, 0, MODE_SMA, PRICE_CLOSE, 0);
    double longMA = iMA(NULL, 0, LongPeriod, 0, MODE_SMA, PRICE_CLOSE, 0);

    double prevShortMA = iMA(NULL, 0, ShortPeriod, 0, MODE_SMA, PRICE_CLOSE, 1);
    double prevLongMA = iMA(NULL, 0, LongPeriod, 0, MODE_SMA, PRICE_CLOSE, 1);

    if (prevShortMA < prevLongMA && shortMA > longMA)
    {
        // Buy signal
        OrderSend(Symbol(), OP_BUY, LotSize, Ask, 3, 0, 0, "Buy Order", 0, 0, clrGreen);
    }
    else if (prevShortMA > prevLongMA && shortMA < longMA)
    {
        // Sell signal
        OrderSend(Symbol(), OP_SELL, LotSize, Bid, 3, 0, 0, "Sell Order", 0, 0, clrRed);
    }
}

Répondu

1
Développeur 1
Évaluation
(93)
Projets
119
50%
Arbitrage
4
50% / 50%
En retard
3
3%
Gratuit
2
Développeur 2
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
3
Développeur 3
Évaluation
(45)
Projets
46
24%
Arbitrage
34
9% / 85%
En retard
10
22%
Gratuit
4
Développeur 4
Évaluation
(45)
Projets
91
13%
Arbitrage
34
26% / 59%
En retard
37
41%
Gratuit
5
Développeur 5
Évaluation
(152)
Projets
228
80%
Arbitrage
22
27% / 50%
En retard
11
5%
Gratuit
Publié : 24 articles, 1882 codes
6
Développeur 6
Évaluation
(9)
Projets
19
16%
Arbitrage
3
67% / 0%
En retard
0
Gratuit
7
Développeur 7
Évaluation
(252)
Projets
258
30%
Arbitrage
0
En retard
3
1%
Gratuit
Publié : 2 codes
8
Développeur 8
Évaluation
(511)
Projets
549
53%
Arbitrage
13
69% / 15%
En retard
3
1%
Gratuit
9
Développeur 9
Évaluation
(7)
Projets
9
0%
Arbitrage
1
0% / 100%
En retard
2
22%
Gratuit
10
Développeur 10
Évaluation
(4)
Projets
5
20%
Arbitrage
2
0% / 100%
En retard
1
20%
Gratuit
Publié : 3 codes
11
Développeur 11
Évaluation
(2)
Projets
5
0%
Arbitrage
3
0% / 100%
En retard
1
20%
Travail
12
Développeur 12
Évaluation
(270)
Projets
552
49%
Arbitrage
57
40% / 37%
En retard
227
41%
Travail
13
Développeur 13
Évaluation
(4)
Projets
5
20%
Arbitrage
0
En retard
2
40%
Gratuit
Publié : 2 articles, 1 code
14
Développeur 14
Évaluation
(1)
Projets
1
100%
Arbitrage
0
En retard
0
Gratuit
15
Développeur 15
Évaluation
Projets
1
0%
Arbitrage
1
100% / 0%
En retard
0
Gratuit
Commandes similaires
Mt5 30+ USD
Hi, I've purchased a licensed Expert Advisor (EA), but the seller isn't the original developer. Can we remove the license so I can use it on multiple accounts? Or what do you recommend we do
simple automated trading system with adaptive risk management and trend-based execution. The EA manages trades with dynamic position handling and built-in stability filters. Designed for single-position trading and disciplined execution 30 usd budget
Hi I have a simple task (hopefully) I have a custom strategy that I built with the help of Claude Anthropic - everything is finished and I zipped it with power shell but when importing it NT8 gives me the error message that the file was made from an older, incompatible version or not a NinjaScript. My folder structure is correct as far I can see so I don't know what the issues is and it's costing me too much to go
Do you happen to have a profitable strategy for MNQ? it is urgent if any one can help me with this i will be happy to discuss with you and move forward to pay for it kindly let me know the amount thank fill free to bid
Subject: Development of Ultra-High Precision Confluence Indicator - M1 Binary Options (Non-Repaint) ​ Hello, I am looking for a Senior MQL5 Developer to create a custom "Surgical Precision" indicator for MetaTrader 5, specifically optimized for 1-minute (M1) Binary Options trading. The system must integrate three distinct layers of algorithmic analysis. ​ 1. Core Logic: Triple-Layer Confluence ​The signal (Call/Put)
Looking for an experienced MQL5 developer to design and develop a custom Expert Advisor (EA) for MetaTrader 5. The purpose of this EA is not just automated trading, but also to help me better structure, test, and refine my personal trading strategy
Freeallfree 400 - 800 USD
Professional MT5 EA – XAUUSD I need a professional Expert Advisor for MT5 (MQL5) to trade XAUUSD only. This is not a random scalping bot. The EA must trade only high-probability liquidity breakouts during active sessions and avoid ranging or low-volatility markets. Symbol: XAUUSD Timeframe: M15 (optional H1 confirmation) Session filter (Dubai GMT+4): Trade only London and New York sessions Adjustable session times No
Project Overview I am looking to acquire high-quality, algorithmic trading strategies or specialized strategy testers developed in MQL5 . My primary focus is on the underlying logic and code architecture rather than historical performance (Track Record/Myfxbook). I require full ownership of the source code (.mq5) for further research, optimization, and scaling. Requirements & Scope I am interested in systems that
Automated trading system 150 - 250 USD
Anyone I need my own bot with my own licenses keys I will pay up please the bot must make good profit and I will pay up good money just hope it helps me
Develop a fully automated MT5 Expert Advisor based on a multi-timeframe institutional trend-pullback strategy with: Regime filtering (H4) Execution logic (H1) ATR-based stop model Multi-stage trailing system Risk-based position sizing Portfolio-level risk protection Detailed performance logging This EA will be used for client capital (PAMM/MAM environment). Stability and risk control are higher priority than high

Informations sur le projet

Budget
30 - 250 USD
Délais
de 1 à 7 jour(s)