These are the other 2.cladi53 wrote: Thu Oct 31, 2024 1:41 am Sorry mrtools whats the indicators you have in that picture? Can you share pls? Thanks soo much.
Re: Coding Help
1691Shabbat Shalom!
These are the other 2.cladi53 wrote: Thu Oct 31, 2024 1:41 am Sorry mrtools whats the indicators you have in that picture? Can you share pls? Thanks soo much.
Like this?Lwqa wrote: Tue Nov 05, 2024 11:59 pm Dear Mr Tools ,
I think this is the last puzzle piece so that I can improve in Trading, I love this Business.
I am asking you if it is possible to create an indicator that draws a vertical line in D1 on a particular date. By zooming in to Low Time Frame, the whole day is marked by a color on the font.
With respect, I hope this little hint gives you inspiration :
int lookBack = 100; // no of days you wanna look back
for(int i=100;i>=0;i--)
{
datetime dailyTime=iTime(Symbol(),1440,i);
string name=TimeToStr(dailyTime)+" Time_Vertical_Line";
if(TimeDay(dailyTime)==14 && ObjectFind(0,name)<0)
{
if(!ObjectCreate(0,name,OBJ_VLINE,0,dailyTime,0))
Print("Fail to draw the line ERROR CODE : ",GetLastError());
ObjectSet(name,OBJPROP_WIDTH,width);
ObjectSet(name,OBJPROP_COLOR,Color);
ObjectSet(name,OBJPROP_BACK,true);
}
}
Thank you always for your help!
Thank you for your contribution Friend!
Hello, sorry but think that indicator needs to be completely recoded.KingReason wrote: Fri Nov 08, 2024 7:35 pm Hello... Please is it possible to add HistoryBars to this indicator, so that one may have control on how far back it will show it's history? It slows down MT4 performance and I think that's because of too much historical data being displayed. 2ndly a capability to change to any color of one choosing will be much appreciated as well. And 3rdly adding an alert also will be perfect. I thank you in advance.
Try;KingReason wrote: Fri Nov 08, 2024 7:35 pm Hello... Please is it possible to add HistoryBars to this indicator, so that one may have control on how far back it will show it's history? It slows down MT4 performance and I think that's because of too much historical data being displayed. 2ndly a capability to change to any color of one choosing will be much appreciated as well. And 3rdly adding an alert also will be perfect. I thank you in advance.