İş Gereklilikleri

// 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);
    }
}

Yanıtlandı

1
Geliştirici 1
Derecelendirme
(69)
Projeler
85
40%
Arabuluculuk
4
50% / 50%
Süresi dolmuş
2
2%
Çalışıyor
2
Geliştirici 2
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
3
Geliştirici 3
Derecelendirme
(38)
Projeler
40
25%
Arabuluculuk
20
15% / 75%
Süresi dolmuş
8
20%
Yüklendi
4
Geliştirici 4
Derecelendirme
(41)
Projeler
88
14%
Arabuluculuk
30
30% / 53%
Süresi dolmuş
36
41%
Çalışıyor
5
Geliştirici 5
Derecelendirme
(140)
Projeler
204
80%
Arabuluculuk
17
29% / 47%
Süresi dolmuş
10
5%
Çalışıyor
6
Geliştirici 6
Derecelendirme
(8)
Projeler
18
17%
Arabuluculuk
3
67% / 0%
Süresi dolmuş
0
Serbest
7
Geliştirici 7
Derecelendirme
(196)
Projeler
200
28%
Arabuluculuk
0
Süresi dolmuş
3
2%
Çalışıyor
8
Geliştirici 8
Derecelendirme
(475)
Projeler
504
53%
Arabuluculuk
10
60% / 20%
Süresi dolmuş
3
1%
Serbest
9
Geliştirici 9
Derecelendirme
(3)
Projeler
4
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
10
Geliştirici 10
Derecelendirme
(3)
Projeler
3
0%
Arabuluculuk
0
Süresi dolmuş
0
Çalışıyor
11
Geliştirici 11
Derecelendirme
(1)
Projeler
3
0%
Arabuluculuk
0
Süresi dolmuş
0
Çalışıyor
12
Geliştirici 12
Derecelendirme
(265)
Projeler
539
50%
Arabuluculuk
55
40% / 36%
Süresi dolmuş
224
42%
Çalışıyor
13
Geliştirici 13
Derecelendirme
(4)
Projeler
5
20%
Arabuluculuk
0
Süresi dolmuş
2
40%
Serbest
14
Geliştirici 14
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
15
Geliştirici 15
Derecelendirme
Projeler
1
0%
Arabuluculuk
1
100% / 0%
Süresi dolmuş
0
Serbest
Benzer siparişler
We are seeking an experienced developer with expertise in converting cTrader bots to MT4 Expert Advisors (EAs). The ideal candidate will have a strong background in both C# (used in cTrader) and MQL4 (used in MT4). You will be responsible for translating trading algorithms and strategies from cTrader to MT4, ensuring that all functionalities and performance criteria are met
Hi, I have an indicator from my friend, I want to copy it to my own Traidingview or MT5 can you do that for me. Here is the link
Hello, I am looking for a programmer to write a universal EA (mql4 file) that works with custom indicators on Renko/RangeBar charts. The description of operation and additional functions that the EA is to have are described in the attached file. If you have any questions, write
Modifying an expert advisor written in mql5 and adding new indicators to it. The result must work both on strategy testing and on live, with no compilation errors and no warnings
see trade open on every tick seconde ok forex pair us us30 if is current running at 40170.00 so open 2 trade buy stop and sell stop both in every tick pending order of buy stop will 40171.00 and sell stop pending order will be 40169.00 buy stop will open at 40171.00 and tp will be 40173.00 and SL will be 40169.50 ok if buy stop hit sell stop order automatically will be close now if sell stop order open at 40169.00 so
Hi, I have an indicator from my friend, I want to copy it to MT5 can you do that for me. Here is the link
I'm seeking assistance in developing a sophisticated trading robot with the following features: Core strategy: Harmonic pattern recognition Supply and demand analysis Fibonacci zigzag for trade optimization Additional components: News filter Dashboard for easy monitoring Customizable settings: Lot size Trailing stop Trading session parameters Maximum number of orders Option to use market or limit orders Resources
Hi, I have an indicator from my friend, I want to copy it to MT5 can you do that for me. Here is the link
I need an experienced programmer to create an automated EA that will open trades based on different candle stick formation strategies and indicators. The EA will first scan the market, find a current market trend and define area of support and resistance. On ranging market the EA doesn’t place trades . (1) EA should use a straddle strategy from either the S/R level, (2) indecision Doji candle from the S/R area, (3)
Requirement Specification : I have an EA that i want to convert from MQ4 to MQ5. I want my EA to be ready as this link says: https://www.mql5.com/en/articles/2555 And I want both EA passes the MQL5 automatic validation, no errors, no warnings, no dll . I need a good and experience programmer that can commit and complete this project. I have an Existing MT4 Expert Advisor and i want to convert to MT5. Exact copy i

Proje bilgisi

Bütçe
30 - 250 USD
Son teslim tarihi
from 1 to 7 gün

Müşteri

Verilmiş siparişler1
Arabuluculuk sayısı0