DRAW_LINE,STYLE_DOT
Mart
Naa, that doesn't work Mart.
It doesn't show up under teh indicators if I do that.
JH
Did you press the compile button at the top ?
Post it if your having problerms
Mart
SetIndexStyle(0,DRAW_LINE,STYLE_DOT,1,Pink);
Line width can only be 1 with dot style.
Lux
Ok, I managed to get the dots that I wanted but now I want the dots to NOT connect with the next day with the use of up/down lines.
Can that be done?
JH
I have uploaded 2 files here.
The first file (Pivots Everyday) is the one I need edited so that the lines stop dead and then a new line starts at a new level. At the moment, it connects the 2 lines by moving up and down. I don't want this up and down movement.
The 2nd file (Pivots All Levels) does this exactly right. This is how I want it to be.
Sadly, this file doesn't have a fix for Mondays whereas the first file does. This is why I need to use the 2nd files capabilities within the first file.
I'd appreciate it if someone with true programming power can take a look and make some changes to the first file to make it work.
See the image below
Appreciate the help,
JH
The difference is that Pivots Everyday draws lines and Pivots All Levels draws symbols, which are not connected.
In Pivots Everyday, change the group of lines with SetIndexStyle with the following:
SetIndexStyle(0,DRAW_ARROW);
SetIndexArrow(0,160);
SetIndexStyle(1,DRAW_ARROW);
SetIndexArrow(1,160);
SetIndexStyle(2,DRAW_ARROW);
SetIndexArrow(2,160);
SetIndexStyle(3,DRAW_ARROW);
SetIndexArrow(3,160);
SetIndexStyle(4,DRAW_ARROW);
SetIndexArrow(4,160);
SetIndexStyle(5,DRAW_ARROW);
SetIndexArrow(5,160);
SetIndexStyle(6,DRAW_ARROW);
SetIndexArrow(6,160);[/CODE]
The rest of the code remains unchanged.
In case you want to change them, the colors are defined in the top of the code, starting with:
[CODE]#property indicator_color1 PinkThanks for that.
I kinda figured it. I use code 158 for small dots.
JH
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
I have a pivot indicator plotted.
In the code, it simply asks the indicator to draw lines:
SetIndexStyle(0,DRAW_LINE,0,2,Pink);
How do I change the code so it will draw a dotted line instead of a solid line?
Appreciate the help,
JH