I need some code assistance with my Ichimoku Indicator EA Trading Robot (MQL5)

MQL5 Indicadores Experts

Trabalho concluído

Tempo de execução 1 dia
Comentário do desenvolvedor
Nice customer!!!
Comentário do cliente
The work was done perfectly and very fast. I am very satisfied with the result.

Termos de Referência

Hi

I have added the  Ichimoku Indicator into my EA (MQL5) and I want to use the cloud values to indicate entry conditions, (or not to enter) based on the position of the cloud.

I am having an issue. When I retrieve the value of the SENKOUSPAN A LINE, I am getting a number such as 30, 35 or 40 etc. I am not getting the actual underlying price value e.g. 1.08995.

I would have expected to be getting the price value. I have done much research to find out how I can get the price value at the SENKOUSPAN A LINE and I still haven't been able to resolve. I am very keen for someone to offer your expert advice in this and tell me what I am doing wrong.

 

Here is the code I wrote to retrieve the value for SENKOUSPAN A LINE. Please note, than visually on my screen, if I hover over the  SENKOUSPAN A LINE, I can see the price value I am after. I just cant seem to retrieve this problematically in MQL5.

 

//---------------------------------------------------------------------

//  ReGetIchimokuValues

//---------------------------------------------------------------------

//---------------------------------------------------------------------

string MyTrend::ReGetIchimokuValues(int Indicator_Handle=INVALID_HANDLE)

{

 

//The buffer numbers: 0 - TENKANSEN_LINE, 1 - KIJUNSEN_LINE, 2 - SENKOUSPANA_LINE, 3 - SENKOUSPANB_LINE, 4 - CHIKOUSPAN_LINE.

 

  double iTENKANSEN_LINE_Buffer[];

  double iKIJUNSEN_LINE_Buffer[];             

  double iSENKOUSPANA_LINE_Buffer[];

  double iSENKOUSPANB_LINE_Buffer[];

  double iCHIKOUSPAN_LINE_Buffer[];

  

  string s = "";

 

  ArraySetAsSeries(iTENKANSEN_LINE_Buffer,true);

  ArraySetAsSeries(iKIJUNSEN_LINE_Buffer,true);

  ArraySetAsSeries(iSENKOUSPANA_LINE_Buffer,true);

  ArraySetAsSeries(iSENKOUSPANB_LINE_Buffer,true);

  ArraySetAsSeries(iCHIKOUSPAN_LINE_Buffer,true);

  

  CopyBuffer(Indicator_Handle,0,0,3,iTENKANSEN_LINE_Buffer); //0 - TENKANSEN_LINE

  CopyBuffer(Indicator_Handle,1,0,3,iKIJUNSEN_LINE_Buffer); //1 - KIJUNSEN_LINE

  CopyBuffer(Indicator_Handle,2,0,3,iSENKOUSPANA_LINE_Buffer); //2 - SENKOUSPANA_LINE

  CopyBuffer(Indicator_Handle,3,0,3,iSENKOUSPANB_LINE_Buffer); //3 - SENKOUSPANB_LINE

  CopyBuffer(Indicator_Handle,4,0,3,iCHIKOUSPAN_LINE_Buffer); //4 - CHIKOUSPAN_LINE

 

   //https://www.mql5.com/en/forum/172986

   //This indicator is based on the 4 time intervals and because of that we may see the 5 different line:

   //- Tenkan-sen is the average value of the price for the first time interval calculated as sum of maximum and minimum for this period of time devided by 2;

   //- Kijun-sen is the average value of the price for the second time interval;

   //- Senkou Span A is the middle of interval between two above mentioned lines (Tenkan-sen and Kijun-sen) shifted onward on the value of the second time interval;

   //- Senkou Span B is the average value of the price for the third time interval shifted onward on the value of the second time interval;

   //- Chinkou Span is the closing price of the current candle shifted back on the value of the second time interval.

   

 

   

   TENKANSEN_LINE_Value =  NormalizeDouble(iTENKANSEN_LINE_Buffer[0],5);

   KIJUNSEN_LINE_Value =  NormalizeDouble(iKIJUNSEN_LINE_Buffer[0],5);            

   SENKOUSPANA_LINE_Value =  NormalizeDouble(iSENKOUSPANA_LINE_Buffer[0],5);

   SENKOUSPANB_LINE_Value =  NormalizeDouble(iSENKOUSPANB_LINE_Buffer[0],5);

   CHIKOUSPAN_LINE_Value =  NormalizeDouble(iCHIKOUSPAN_LINE_Buffer[0],5);   

   

   s = "TENKANSEN_LINE=" + (string)TENKANSEN_LINE_Value + " | KIJUNSEN_LINE=" + (string)KIJUNSEN_LINE_Value + " | SENKOUSPANA_LINE=" + (string)SENKOUSPANA_LINE_Value + " | SENKOUSPANB_LINE=" + (string)SENKOUSPANB_LINE_Value + " | CHIKOUSPAN_LINE=" + (string)CHIKOUSPAN_LINE_Value;

   

   return(s);  

 

   

}


Respondido

1
Desenvolvedor 1
Classificação
(508)
Projetos
764
63%
Arbitragem
33
27% / 45%
Expirado
23
3%
Livre
2
Desenvolvedor 2
Classificação
(5)
Projetos
7
14%
Arbitragem
1
0% / 100%
Expirado
0
Livre
3
Desenvolvedor 3
Classificação
(253)
Projetos
407
38%
Arbitragem
85
42% / 19%
Expirado
70
17%
Carregado
Pedidos semelhantes
I have an EA and want to add few new logic to fetch profit taking factors and other values from an external master data and use it in existing EA
Hello Every one, Good day, I want from someone professional to create an EA is working on Mt5, This EA is working by depend on some indicators, and all those indicators must be working on MACD window, not on the chart, for more details please read my attached pdf file carefully. Many Thanks
I'm looking for an expert MQL5 developer that can create an EA that's based on my price action trading strategy with no indicators. The EA must analyze trades based on my price action rules, enter trades based on my price action rules, manage trades based on my price action rules and exit trades based on my price action rules
hi hi there i have an strategy on tradingview and i want to automate it like metatrader EA so i want the strategy to open and close trade automaticlly on tradingview
We are looking for an experienced Expert Advisor Developer who can build a customized MT5 Expert Advisor for us. The Expert Advisor would use two built-in indicators as entry/exit signals and our own risk management strategy with customizable inputs. The goal is to create a reliable and efficient trading tool that can automate our trading process on the MT5 platform. Skills required: - Strong understanding of
I need stochastic div (hidden &regular ea) that should perform task in all tf's ..divergence is a repaint stly so i want to use it with candlestick flips .. so bet for it
Hello, I have an indicator from a friend and I'd like to replicate it on my own TradingView or MT5 platform. Could you assist me with that?. Here is the link
so basically I have an EA(mql5), AI script(python), flask server and socket server both on python. Now this is an experimental script as I am trying to learn. However the EA is not entering any trades. How much would it cost for you to troubleshoot this for me? Thank you in advance
NEW FUNCTION 50+ USD
La idea es la siguiente, sería un EA semi automático. Yo como trader opero en zonas. En adelante las vamos a denominar ``zonas calientes´´. El EA debe que necesito debe operar conforme a 4 zonas calientes que yo configure en el mismo. ¿Qué hará el EA en cada una de esas zonas calientes que yo he configurado? En cada una de estas zonas el EA debe realizar hedging (crear un rango en el cual el EA entrara en sell o en
I have the bot just over half made, from another developer who let me down and decided they no longer wished to finish the project, so I have a basic example of the fundamentals of what it could look like, although multiple functions I require do not work, but I can show this to you on request. There are multiple features that I require, so please read the in depth requirement sheet on the attachment. Function: To

Informações sobre o projeto

Orçamento
30 - 50 USD
Desenvolvedor
27 - 45 USD
Prazo
de 1 para 2 dias