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

MQL5 Indicators Experts

Job finished

Execution time 1 day
Feedback from employee
Nice customer!!!
Feedback from customer
The work was done perfectly and very fast. I am very satisfied with the result.

Specification

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

 

   

}


Responded

1
Developer 1
Rating
(538)
Projects
814
62%
Arbitration
33
27% / 45%
Overdue
23
3%
Free
Published: 1 code
2
Developer 2
Rating
(5)
Projects
7
14%
Arbitration
1
0% / 100%
Overdue
0
Free
3
Developer 3
Rating
(296)
Projects
475
40%
Arbitration
105
40% / 24%
Overdue
80
17%
Busy
Published: 2 codes
Similar orders
I need an MT5 Expert Advisor built as a high-precision volumizer for Forex. Its core purpose is to generate controlled trading volume for rebates, while still maintaining low-risk account growth. I am not looking for aggressive profit chasing. I am looking for a stable, intelligent EA that can produce volume in a disciplined way without damaging the account. The ideal system should trade major currency pairs, avoid
1. IF price forms: - Higher highs + higher lows → TREND = BUY - Lower highs + lower lows → TREND = SELL ELSE → NO TRADE 2. IF: - Trend = BUY - Price retraces to support zone - Bullish engulfing candle forms - TDI green crosses above red (optional) THEN: - Execute BUY 3. IF: - Trend = SELL - Price retraces to resistance - Bearish engulfing forms - TDI confirms THEN: - Execute SELL 4. Risk per trade = 1% of account Lot
I need a high frequency trading robot for gold in one or 5 minute timeframe the robot should have spread filter where it should only open trades below a set spread should have news filter to allow trading during fundal news or not the robot should have input in number of minutes to close all open trades and remove pending orders before fundamental news as part of news filter. It should also have the number of minutes
Hello! I want to programm EA that uses volume profile indicator, but I am not sure if this is possible. Only experienced programmers please, I will not select a programmer who did only few jobs. Before starting I need to make sure you understand everything and that this is for sure technically possible
Hello, I am looking for a professional trading system including: 1- Trading Bot (Expert Advisor): - Good profit performance - High security and strong risk management - Works efficiently during high market volatility (news and strong movements) - Works on all pairs (Forex + Gold) 2- Signal Indicator: - Provides clear Buy and Sell signals - Includes Take Profit and Stop Loss - No repaint (signals must not change or
Hi, I’m looking for a top-tier, profit-optimized EA that has the potential to scale trading returns significantly. My goal is to maximize growth over time. Can you help develop a bespoke EA that could potentially scale to high six or seven figures
Max amount grid 30+ USD
max amount grid step for magic number do keep deleting .only when it is in negative floating .but when it is profit allow to go over the max and replays to grid step
Apply with a screen of your work . Symbol Specific Logic . Live Chart Optimization Check the Core logic . [back tests as well] Change points to pips . Create buffer for the zone
I will pay 3000+ USD (negotiable) for an EA for existing MT5 that generates a minimum of 15-20% or higher a month consistently (provide source code after final deal) Looking for a highly profitable EA Please send demo version directly subject (Buying profitable EA Budget up to $ 3000 USD), past results and optimal settings so I can test, if it performs in a strategy tester i will also need option to forward test it

Project information

Budget
30 - 50 USD
Deadline
from 1 to 2 day(s)