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);
}
Похожие заказы
Develop the EA according to my provided trading strategy and rules. The EA must open and close trades automatically according to the specified conditions. Include configurable Stop Loss, Take Profit, lot size and risk-management settings. Include an option for fixed lot size or percentage-based risk. Include Magic Number and trade-comment settings. The EA must work correctly on the requested MT4/MT5 platform and
I need an Expert Advisor (EA) developed for MetaTrader 5 (MT5) tailored for trading on Exness accounts. Account & Server Details: Trading Platform: MetaTrader 5 (MT5) Broker: Exness Execution Type: Market / Pending Orders Account Type: [Specify: Standard / Pro / Raw Spread / Zero] Target Instruments: [Specify pairs, e.g., XAUUSD, EURUSD, BTCUSD] Strategy Requirements: Entry Rules: [Insert your buy/sell entry
Monthly Report: August 2026 World PEACE Multi FX Algo generated a total realized profit of approximately 31,966 JPY during August. The provider account is normally operated with approximately 200,000 JPY of capital. Compared with this standard operating amount, the realized profit for August was approximately 15.98%. Please note that this is not a compounded monthly return. Realized profits are withdrawn regularly
I am looking for an experienced MQL5/MT5 Expert Advisor developer to build a custom XAUUSD (Gold) HFT/ultra-fast scalping EA for MetaTrader 5. I have attached a reference video showing exactly how I want the EA to behave. Please watch the video carefully before applying. The video should give you a clear understanding of the desired entry behavior, trade frequency, execution style, and overall system behavior. The EA
I’m looking for an experienced developer who can build a Martingale trading bot. I’m willing to pay a fair price for the right developer. I have an example trading account that demonstrates exactly how I want the bot to operate. The strategy is straightforward: the bot trades continuously using a Martingale system. The only exception is that it should automatically pause trading during high-impact news events or
This is a Tradingview project. Would you be able to make this? With a win rate and profit factor and percentage made and profit made and max dd reached. How many modifications would I be able to do? Could there be a table that shows win percentage profit factor and trading window where trades shouldn’t be placed and follows the rules of the pdf How long would it take and would it work on ninjatrader also
I need a professional MQL5 developer to build a high-frequency trading (HFT) Expert Advisor for MT5. Key Requirements & Risk Management Rules: 1. Max Trade Limit: The bot must execute a strict maximum of 1,000 trades. 2. Lot Size Cap: Every trade must be capped at a maximum of 0.50 lots. 3. Execution Speed: Optimized for low-latency, rapid execution. 4. Clean code with proper error handling and clear parameter
I need fully automatic scalping robots for XAUUSD Gold the robot should work on M1 and M5 timeframe and open trades based on the scalping logic using EMA and RSI confirmation it should analyze the market on its own and only take high probability trades
I am looking for an experienced MQL5 / MetaTrader 5 developer to help me add alert notifications to an existing MT5 indicator. What I Have I have an indicator that I am currently using on MetaTrader 5 , but I do not have the source code (.mq5) . I only have the compiled indicator file, or I can provide the indicator file that I currently have. What I Need I want to add alerts when the indicator generates its specific
I have attached the video of the EA I want to reproduce in MQL5. Please study the video carefully and build an EA that follows the same trading behavior shown in it. The EA is for XAUUSD (Gold) and appears to use an automated scalping/grid-style strategy with multiple positions opened around the market price. I want the entry sequence, spacing between positions, lot progression, direction of trades, and