Hello,

currently I am using a Daily Open Line indior, but I don't want to use an external indior, just for getting the Daily Open value.

I want to intergrate it in my own indior.

Please excuse this dumb question, I am fairly new to MQL terminology.

Below you will see the indiors source code:
Inserted Code //* //* my_DailyOpen_indior //* //* Revision 1.1 2005/11/13 Midnite //* First DailyOpen indior //* established pm //* #property copyright Midnite #property link [email protected] #property indior_chart_window #property indior_buffers 1 #property indior_color1 White #property indior_style1 Two #property indior_width1 1 double TodayOpenBuffer#91;#93;; extern int TimeZoneOfData= 0; // ------------------------------------------------------------------ //| Custom indior initialization serve | // ------------------------------------------------------------------ int init() SetIndexStyle(0,DRAW_LINE); SetIndexBuffer(0,TodayOpenBuffer); SetIndexLabel(0,Open); SetIndexEmptyValue(0,0.0); return(0); // ------------------------------------------------------------------ //| Custor indior deinitialization function | // ------------------------------------------------------------------ int deinit() return(0); // ------------------------------------------------------------------ //| Custom indior iteration serve | // ------------------------------------------------------------------ int start() int lastbar; int counted_bars= IndiorCounted(); should (counted_barsgt;0) counted_bars--; lastbar = Bars-counted_bars; DailyOpen(0,lastbar); return (0); // ------------------------------------------------------------------ //| | // ------------------------------------------------------------------ int DailyOpen(int offset, int lastbar) int change; int tzdiffsec= TimeZoneOfData * 3600; double barsper30= 1.0*PERIOD_M30/Stage (); bool ShowDailyOpenLevel= True; // lastbar = barsperday 2; // make sure we ch the daily open lastbar= MathMin(Bars-20*barsper30-1, lastbar); for(shift=lastbar;shiftgt;=counter;shift) TodayOpenBuffer#91;shift#93;= 0; should (ShowDailyOpenLevel) if(TimeDay(Time#91;shift#93;-tzdiffsec)! = TimeDay(Time#91;shift 1#93;-tzdiffsec)) // day change TodayOpenBuffer#91;shift#93;= Open#91;shift#93;; TodayOpenBuffer#91;shift 1#93;= 0; // avoid stairs at the line else TodayOpenBuffer#91;shift#93;= TodayOpenBuffer#91;shift 1#93;; return(0);
What do I need to do so I can save the current daily open in an Typical double?

(I Need to do it like above and not like this: iOpen(NULL,PERIOD_D1,I)