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

MQL5 지표 전문가

작업 종료됨

실행 시간 1 일
피고용인의 피드백
Nice customer!!!
고객의 피드백
The work was done perfectly and very fast. I am very satisfied with the result.

명시

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

 

   

}


응답함

1
개발자 1
등급
(513)
프로젝트
776
63%
중재
33
27% / 45%
기한 초과
23
3%
무료
2
개발자 2
등급
(5)
프로젝트
7
14%
중재
1
0% / 100%
기한 초과
0
무료
3
개발자 3
등급
(261)
프로젝트
427
38%
중재
86
44% / 19%
기한 초과
71
17%
로드됨
비슷한 주문
I have simple EA i want to modify its parameters. If you are good at modifying EAs contact me for more details. I will issue the source code then you return after finishing without changing the buy or sell conditions
the code wasn't mine, i have got it somewhere on the web, but i like the performance of the EA, so i want to use it on mt5 platform. the given code based on price movements with ladder entry concept
* Advanced level dev only, NDA required * Hi, I have a multi timeframe, multiindicator expert that requires additional features added to it. First started development 5 years ago. Upgrading with new features. To be added Entry - Add Stochastic and CCI options for trade entry to be added to existing signal options. Add config options to existing menu Bulk Exit - Master switch for close all trades based on basket
I am developing a master EA that integrates several sub-EAs. The project is complex, and the documentation is thoroughly structured, spanning 50 pages with detailed step-by-step procedures. 1st sub-EA: This EA opens trades without using indicators. Instead, it opens a new trade based on the color or status of the last candle. For instance, if the last candle was green, a new buy trade is opened. 2nd sub-EA: This EA
Good Day I would like to order a trading robot. Pairs: XAUUSD (GOLD) EUR/USD USD/JPY The robot should be trading daily with TP/SL build in, would like to have trailing and stop loss, should execute up to 5 trades (preffarable setting choice) up to 10 trades Los sizes to be choise setting, must also trade major US vews events Like:US- PPI, CPI, NFP, Sales m/m and so on Must also show/display alert when opening
Hello Guys, I need a trading bot for the MT5 to place order based on my trading strategy which is based on - >> entry based on EMA with rejection from specific levels like support and resistance area - levels and time frame i will apply into the robot manually on daily basis. also need - trailing stoploss , shift to breakeven after gaining some points. need a highly expert developer
Trade Manger EA 30+ USD
Hello Programmer! I am looking to build an EA that will place my trade and manage it. Once i have manually found my setup, I will want an EA to open the trade, set the R:R and manage it according to my specifications. please take a look at the attached to get an Idea of what I would like. I will require the source code once completed
Hello there i need someone who will create a robot that will calculate the movement between buy/sell and show where to take profit the robot should work with all currency and indices including stock
EA to send account history to web request. It should send every 5 mins or when there is an update. It then sends the json to a web request where gain, drawdown, balance, equity will be displayed
I have a full strategy based on indicator and candle based on . i would like to make it into a robot which will trade for me on a specific time and specific rules. i need a person who can do this project for me. If you have done this type of job . you are most welcome for this. Apply only if you know binary trading option and binomo trading platform well and how it works

프로젝트 정보

예산
30 - 50 USD
개발자에게
27 - 45 USD
기한
에서 1  2 일