Forex



Go Back   Forex Trading > Discussion Areas > Metatrader 4
Forex Forum Register More recent Blogs Calendar Advertising Others Help






Register
Welcome to Forex-TSD!, one of the largest Forex forums worldwide, where you will be able to find the most complete and reliable Forex information imaginable.

From the list below, select the forum that you want to visit and register to post, as many times you want. It’s absolutely free. Click here for registering on Forex-TSD.

Exclusive Forum
The Exclusive Forum is the only paid section. Once you subscribe, you will get free access to real cutting-edge Trading Systems (automated and not), Indicators, Signals, Articles, etc., that will help and guide you, in ways that you could only imagine, with your Forex trading.
  • Elite Section
    Get access to private discussions, specialized support, indicators and trading systems reported every week.
  • Advanced Elite Section
    For professional traders, trading system developers and any other member who may need to use and/or convert, the most cutting-edge exclusive indicators and trading systems for MT4 and MT5.
See more

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 06-25-2007, 11:55 AM
Junior Member
 
Join Date: Dec 2005
Posts: 11
Jetheat is on a distinguished road
How... change a solid line to a dotted line

I have a pivot indicator plotted.

In the code, it simply asks the indicator to draw lines:

Code:
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #2 (permalink)  
Old 06-25-2007, 12:16 PM
mart-hart's Avatar
Senior Member
 
Join Date: Oct 2005
Posts: 452
mart-hart is on a distinguished road
DRAW_LINE,STYLE_DOT



Mart
__________________
----o00o--°(_)°--o00o----
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #3 (permalink)  
Old 06-25-2007, 12:26 PM
Junior Member
 
Join Date: Dec 2005
Posts: 11
Jetheat is on a distinguished road
Naa, that doesn't work Mart.

It doesn't show up under teh indicators if I do that.

JH
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #4 (permalink)  
Old 06-25-2007, 12:39 PM
mart-hart's Avatar
Senior Member
 
Join Date: Oct 2005
Posts: 452
mart-hart is on a distinguished road
Did you press the compile button at the top ?

Post it if your having problerms


Mart
__________________
----o00o--°(_)°--o00o----
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #5 (permalink)  
Old 06-25-2007, 12:49 PM
Senior Member
 
Join Date: Nov 2006
Posts: 308
luxinterior is on a distinguished road
SetIndexStyle(0,DRAW_LINE,STYLE_DOT,1,Pink);

Line width can only be 1 with dot style.

Lux
__________________
Build An Expert Advisor. FREE E-course As Seen On TV
ForexArea.com
Users of Gap Trader from 'Forex-Assistant' MUST Read This
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #6 (permalink)  
Old 06-25-2007, 12:51 PM
Junior Member
 
Join Date: Dec 2005
Posts: 11
Jetheat is on a distinguished road
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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #7 (permalink)  
Old 06-25-2007, 01:26 PM
Junior Member
 
Join Date: Dec 2005
Posts: 11
Jetheat is on a distinguished road
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

Attached Files
File Type: mq4 Pivot_Everyday.mq4 (4.5 KB, 21 views)
File Type: mq4 Pivot_AllLevels.mq4 (5.1 KB, 19 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #8 (permalink)  
Old 06-26-2007, 06:23 AM
zuijlen's Avatar
Member
 
Join Date: Jan 2006
Location: Arlington, VA, USA
Posts: 91
zuijlen is on a distinguished road
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:

Code:
//---- indicator line
   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);
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 Pink
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #9 (permalink)  
Old 06-26-2007, 09:55 AM
Junior Member
 
Join Date: Dec 2005
Posts: 11
Jetheat is on a distinguished road
Thanks for that.

I kinda figured it. I use code 158 for small dots.

JH
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
Reply

Bookmarks

Tags
forex


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Line labels cja Setup Questions 7 11-13-2009 04:34 AM
One Line different Colors forex_trader Indicators - Metatrader 4 1 07-11-2006 01:58 AM
Line at 17:00 DOMIANDR000 Metatrader 4 1 05-29-2006 09:41 PM
How to change line colour billm Metatrader 4 3 12-10-2005 06:39 PM


All times are GMT. The time now is 05:58 PM.



Search Engine Friendly URLs by vBSEO 3.2.0 ©2008, Crawlability, Inc.