Detect cross of 2 lines accurately

MQL4 Uzman Danışmanlar

İş Gereklilikleri

I used the following code to detect crossover on conversion and base line, but it is not very accurate.

I need a way to detect crossover on conversion and base line very accurate. I tested on EURUSD daily chart from 2017-1-1 to 2018-1-1.


------------------------------------


   double t0, k0, t1, k1;

   

   t0=iIchimoku(NULL, 0, 9, 26, 52, MODE_TENKANSEN, 0); // Conversion Line

   k0=iIchimoku(NULL, 0, 9, 26, 52, MODE_KIJUNSEN, 0); // Base Line

   t1=iIchimoku(NULL, 0, 9, 26, 52, MODE_TENKANSEN, 1); // Conversion Line

   k1=iIchimoku(NULL, 0, 9, 26, 52, MODE_KIJUNSEN, 1); // Base Line

     

   // Conversion line cross above Base line(Close all Sell orders)

   if (t0 > k0 && t1 < k1){

CloseAllSellOrders();

   }

   

   // Conversion line cross below Base line(Close all Buy orders)

   if (t0 < k0 && t1 > k1){

      CloseAllBuyOrders();

   } 


Yanıtlandı

1
Geliştirici 1
Derecelendirme
(73)
Projeler
85
44%
Arabuluculuk
10
40% / 50%
Süresi dolmuş
9
11%
Serbest
2
Geliştirici 2
Derecelendirme
(339)
Projeler
809
73%
Arabuluculuk
30
33% / 37%
Süresi dolmuş
194
24%
Serbest
3
Geliştirici 3
Derecelendirme
(114)
Projeler
154
47%
Arabuluculuk
2
0% / 50%
Süresi dolmuş
4
3%
Serbest
4
Geliştirici 4
Derecelendirme
(117)
Projeler
138
41%
Arabuluculuk
30
7% / 77%
Süresi dolmuş
17
12%
Serbest
5
Geliştirici 5
Derecelendirme
(213)
Projeler
255
78%
Arabuluculuk
3
67% / 33%
Süresi dolmuş
19
7%
Serbest
6
Geliştirici 6
Derecelendirme
(277)
Projeler
334
55%
Arabuluculuk
14
36% / 29%
Süresi dolmuş
1
0%
Serbest
7
Geliştirici 7
Derecelendirme
(563)
Projeler
932
47%
Arabuluculuk
302
59% / 25%
Süresi dolmuş
124
13%
Yüklendi
Benzer siparişler
EA DEJA FABRIQUE ? MODIFIER QUELQUE LIGNE POUR LE RENDRE RENTABLE /////////////////////++++++++++++++++++++++++++++++++++ EA AVEC UN SYTEME SIMPLE ; SEULEMENT A MODIFIER %%%%%%%%%%%%%%%%%% SI PERSONNE SACHANT CODER CORRECTEMENT , CE TRAVAIL EST POUR TOI
Trade methodology based on Red and Green lines entering Overbought / Oversold zone. Using confluence of Higher time frame, Moving Average a trade can enter when there is a strong slope angle. Market Base Line is used to determine overall market sentiment. This is designed to be an established trend scalping strategy on lower time frames. To be used initially on demo then real account when settings have been fine
There are six conditions in total . source code from an existing expert will be provided to aid the completion of this job . - Install the following by the Panel (copy paste form my existing Expert ) 1. Pips Lost : number of pips lost ( monthly reset ) 2. Pips Gained : number of pips gained ( monthly reset ) 3. Have a black background to avoid the
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: function (A) Add Transform combine the 4 Expert Advisors into just 1 Expert Advisor, maintaining the individuality of each one Leave in extern (false) or (true)
Description: I am seeking an experienced MQL5 developer to create a custom Expert Advisor (EA) for MetaTrader 5 based on a specific trend-following strategy. The strategy includes precise risk management, advanced trade management features, and additional risk management tools. The EA should be adaptable to any timeframe on which it is attached. Below are the detailed requirements and parameters for the EA: Strategy
I need an EA trading frequently (HFT or something like), and it sould have some features below: 1、Have a clear trading logic 2、Have a good backtest result 3、Have a demonstrated benefitable result in a live account trading 4、Can avoid the news time period or not sensitive to news
Tenho um EA mql4 que está com funcionalidades funcionando e outras com funcionalidades sem funcionar. Tenho um vídeo do EA funcionando como deve funcionar perfeitamente. O meu não consegue seguir o mesmo programa pois quando coloca os pontos de parada e retirada são bem diferentes. Não tenho pressa para tempo, só queria que conseguisse renovar o EA. O arquivo do grafico anexo é como ele se encontra agora. O certo é
New york session based strategy 9:30 open Price takes out buy side or sell side liquidity Usually using 15min high and lows 5m entry Price takes out that high/low and price must close strongly back into the zone Is price is above price we have a sell bias vis versa for buys Sl is at the high or low with option for “offset” for cushion Tp is usually the opposite High or low. Would like the option for set pips-points &
Hello, I am looking for a skilled developer to create an Expert Advisor (EA) for MT4. The EA should close an open trade automatically when a Golden or Death Cross occurs in the Alligator Indicator. Please let me know if you have experience with similar projects and how we can discuss the details further
Hello there! I have a ATAS bot that would be discussed properly with you once you bid to this project, But majorly what i need is either: An update to my bot that allows it to watch one chart and trade on another within ATAS. Or an add on of some kind that allows it to watch one ATAS chart and then communicate with a bot that can execute trades in MT4/5. Bid now for more proper details

Proje bilgisi

Bütçe
30+ USD
Geliştirici için
27 USD
Son teslim tarihi
to 1 gün