changing width of s&r level for DailyPivotPoints

To add comments, please log in or register
Hisham Mahmoud Younes
115
Hisham Mahmoud Younes  

hi

i am using this indicator but its line width is so thin , i tried to modify it with no hope

so if any one can modify it to be able to modify its lines i appreciate your help 

Files:
Keith Watford
Moderator
13959
Keith Watford  

Try

#property indicator_chart_window
#property indicator_buffers 2
#property indicator_color1 Blue
#property indicator_color2 Red
//---- input parameters
extern int       ExtFormula=0;
extern int       ExtHowManyDays=00;
extern bool      ExtDraw=false;
extern int       LineWidth=2;
extern ENUM_LINE_STYLE       LineStyle=STYLE_SOLID;
//---- buffers
double ExtMapBuffer1[];
double ExtMapBuffer2[];
//+------------------------------------------------------------------+
//| Custom indicator initialization function                         |
//+------------------------------------------------------------------+
int init()
  {
//---- indicators
   SetIndexStyle(0,DRAW_LINE,LineStyle,LineWidth);
   SetIndexBuffer(0,ExtMapBuffer1);
   SetIndexEmptyValue(0,0.0);
   SetIndexStyle(1,DRAW_LINE,LineStyle,LineWidth);
   SetIndexBuffer(1,ExtMapBuffer2);
   SetIndexEmptyValue(1,0.0);

First 2 highlighted lines are additions

Last 2 are changed lines

Hisham Mahmoud Younes
115
Hisham Mahmoud Younes  
Keith Watford:

Try

First 2 highlighted lines are additions

Last 2 are changed lines

did it but not working , still very thin line , i attached pic for it  

Files:
EURJPYM30.png 60 kb
Keith Watford
Moderator
13959
Keith Watford  
Hisham Mahmoud Younes:

did it but not working , still very thin line , i attached pic for it  

Oh I see, I didn't look at the code, just the section re the buffers.

The indicator obviously uses horizontal lines.

Wait a while, I will take another look.

Hisham Mahmoud Younes
115
Hisham Mahmoud Younes  
Keith Watford:

Oh I see, I didn't look at the code, just the section re the buffers.

The indicator obviously uses horizontal lines.

Wait a while, I will take another look.

ok

Keith Watford
Moderator
13959
Keith Watford  
Ok, now the input LineWidth will work with the horizontal lines.
Files:
Hisham Mahmoud Younes
115
Hisham Mahmoud Younes  
Keith Watford:
Ok, now the input LineWidth will work with the horizontal lines.

great job

To add comments, please log in or register