Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 720
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Can you tell me how to set all drawings in the indicator as a background instead of on top of candlesticks?
Use ChartSetInteger(chart_id,CHART_FOREGROUND,value) property setting;
This is not only for indicators.
Hello, I have a Pulse Flat histogram indicator and would like to convert it from a histogram to a line indicator. Where do I start?!
I replaced DRAW-HISTOGRAM with DRAW_LINE and deleted the last 2 buffers that draw the line at level 0 and got this.
was - is
I replaced DRAW-HISTOGRAM with DRAW_LINE and deleted the last 2 buffers that draw the line at level 0 and got this.
was - is
Worked it out for yourself :)
Figured it out :)
Yes))), it looks awful because there are 4 buffers left, I figured it needs to be either 2 or 1, am I right?!
Who can tell me how to write code for example not last day but the day before and so on backwards at least the former seven days or where to look for it here on the forum or in the function directory. Here is an example of the previous day:
#property indicator_chart_window
extern bool Show_LABELS=true;
extern inttern Shift_Prev_LABEL=10; // number indicates the horizontal shift
double DHi,DLo;
//---- Previous
DHi =iHigh(NULL,PERIOD_D1,1);
DLo =iLow(NULL,PERIOD_D1,1);
if (Show_LABELS==true)
{
if(ObjectFind("Pre_day_maximum")!=0)
{
ObjectCreate("Pre_day_Maximum", OBJ_TEXT, 0, Time[Shift_Prev_LABEL+196], DHi);
ObjectSetText("Prev_D1"+DoubleToStr(DHi,Digits)+" ", 9, "Arial", Magenta);
}
else
{
ObjectMove("Prev_D1", 0, Time[Shift_Prev_LABEL+196], DHi);
}
if(ObjectFind("Pre_day_minimum")!=0)
{
ObjectCreate("Pre_day_minimum", OBJ_TEXT, 0, Time[Shift_Prev_LABEL+196], DLo);
ObjectSetText("Pre_day_minimum", "Prev_D1"+DoubleToStr(DLo,Digits)+" ", 9, "Arial", LawnGreen);
}
else
{
ObjectMove("Prev_day_minimum", 0, Time[Shift_Prev_LABEL+196], DLo);
}
}
Code not written in inite, deinite and start.
double DHi,DLo; // Apparently, we need to start here, but I don't know what exactly and then I would write everything myself.
We've figured it out :)
Hi ! Please tell me how to make a solid line.
DHi =iHigh(NULL,PERIOD_D1,1);
DLo =iLow(NULL,PERIOD_D1,1);
double DHi,DLo; // Apparently, we need to start here, and what exactly do not know, and then write everything myself.
Start with help! Just change a digit to the desired bar shift iHigh(NULL,PERIOD_D1,1);
Hi ! Please tell me how to make a solid line.
Read "indicator_style" help
indicator_styleN
int
Line style in graphical series indicated with value of ENUM_LINE_STYLE. N - graphic series number, numbering from 1