// --- original calculation (with high and low added by TLR)for(int i=limit; i>=0; i--)
{
ExtMapBuffer1[i]=34.38805726*MathPow(iClose("EURUSD",0,i),0.3155) *
MathPow(iClose("EURGBP",0,i),0.3056)* MathPow(iClose("EURJPY",0,i),0.1891) *
MathPow(iClose("EURCHF",0,i),0.1113)* MathPow(iHigh("EURAUD",0,i),0.0785);
ExtMapBuffer2[i]=34.38805726*MathPow(iHigh("EURUSD",0,i),0.3155) *
MathPow(iHigh("EURGBP",0,i),0.3056)* MathPow(iHigh("EURJPY",0,i),0.1891) *
MathPow(iHigh("EURCHF",0,i),0.1113)* MathPow(iHigh("EURAUD",0,i),0.0785);
ExtMapBuffer3[i]=34.38805726*MathPow(iLow("EURUSD",0,i),0.3155) *
MathPow(iLow("EURGBP",0,i),0.3056)* MathPow(iLow("EURJPY",0,i),0.1891) *
MathPow(iLow("EURCHF",0,i),0.1113)* MathPow(iLow("EURAUD",0,i),0.0785);
}
And I obtain this result in the subwindow :
And now, the idea is to get the highs and lows of each day. Like this code (but not for the price chart, but from and for the subwindow's values) :
// This code is from one of my personnal work to draw range-rectangle's days ;// And i want to do the same thing with the index subwindow indicator.//+-------------------------------------------------------------------+//| draw Days | |//+-------------------------------------------------------------------+datetime Prev_Day_Start=iTime(Symbol(),PERIOD_D1,1);
datetime This_Day_Start=iTime(Symbol(),PERIOD_D1,0);
double Days_Prev_High= iHigh(NULL,PERIOD_D1,1);
double Days_Prev_Low = iLow(NULL,PERIOD_D1,1);
for(int id=0;id<Days_To_Process;id++)
{
tname=TimeToString(iTime(NULL,PERIOD_D1,id+1));
t_Start=iTime(NULL,PERIOD_D1,id+1);
t_End=iTime(NULL,PERIOD_D1,id+0);
high=iHigh(NULL,PERIOD_D1,id+1);
low=iLow(NULL,PERIOD_D1,id+1);
open=iOpen(NULL,PERIOD_D1,id+1);
close=iClose(NULL,PERIOD_D1,id+1);
TLR_OHLC_Candle_Draw_Boxes("TLR_OHLC_Lines_Day_High_Low"+tname,
t_Start,high,t_End,low,
Levels_Day_Dark_clr,
0,false,false,true,
"TLR_OHLC_Lines_Day_Open_Close"+tname,
t_Start,0,
t_End,0,
TLR_Candle_clr,
0,
true,
false,
true,
"TLR_OHLC_Lines_Day_Bg"+tname,
Levels_Day_Bg_clr);
}
To have this result (in subwindow)
At this point, my skills are limited, so I really need deep help with good lines of code very please.
Данный индикатор вычисляет и показывает индекс евро и скользящую и экспоненциальную средние. Для того, чтобы индикатор работал, нужно чтобы брокер предоставлял котировки по парам EURUSD, EURGBP, EURJPY, EURCHF, EURSEK. Код для индикатора взят из http://codebase.mql4.com/ru/code/9397 . Формулы для расчета взяты из...
// Here are my questions illustrated in code lines
tname=TimeToString(iTime(NULL,PERIOD_D1,id+1)); // we keep it as it is
t_Start=iTime(NULL,PERIOD_D1,id+1); // same...
t_End=iTime(NULL,PERIOD_D1,id+0); // same...
high=iHigh(NULL,PERIOD_D1,id+1); // How to get the "iHigh" of the indicator in the subwindow ?
low=iLow(NULL,PERIOD_D1,id+1); // How to get the "iLow" ... ?
open=iOpen(NULL,PERIOD_D1,id+1); // How to get the "iOpen" ... ?
close=iClose(NULL,PERIOD_D1,id+1); // How to get the "iClose" ... ?// Can I do something like this :
high=ExtMapBuffer2(NULL,PERIOD_D1,id+1); // ?
As i have no response, i think maybe i have gone too far away from the initial title of this thread. So i will open another one with the focus of my new and last point.
Thierry Ramaniraka: As i have no response, i think maybe i have gone too far away from the initial title of this thread. So i will open another one with the focus of my new and last point.
Hence the example with price.
Hello,
I will do it without histogram, but with line.
Thank you very much for your help.
I have give up the candle ihstogram idea for better one (to me).
Nb : anyway, thank you very much for your help.
Always from this work https://www.mql5.com/go?link=https://www.mql5.com/ru/code/9780
I have added the high and low lines like this.
And I obtain this result in the subwindow :

And now, the idea is to get the highs and lows of each day.
Like this code (but not for the price chart, but from and for the subwindow's values) :
To have this result (in subwindow)

At this point, my skills are limited, so I really need deep help with good lines of code very please.
Kind regards.
There is really no way to get the highs and lows for each day on the indicator in the subwindow (like we can do it with the cross price ) ?
So i will open another one with the focus of my new and last point.
Regards.
As i have no response, i think maybe i have gone too far away from the initial title of this thread.
So i will open another one with the focus of my new and last point.
Regards.
Here it is : https://www.mql5.com/en/forum/282065#comment_8908614