Forex



Go Back   Forex Trading > Downloads > Indicators - 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 12-11-2007, 06:05 PM
Junior Member
 
Join Date: Sep 2007
Posts: 15
deuxmille is on a distinguished road
my first indicator, i hope you like it.

and does anyone know how to add it to the seperate window?
mainly use it in H4
Attached Files
File Type: mq4 2000Grimace.mq4 (3.4 KB, 147 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
  #2 (permalink)  
Old 12-11-2007, 06:18 PM
sunwest's Avatar
Member
 
Join Date: Jan 2006
Location: London
Posts: 94
sunwest is on a distinguished road
Smile

Hello,

Just replace in indicator line:

#property indicator_chart_window

by:

#property indicator_separate_window

That should do the trick

Sunwest
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 12-11-2007, 06:24 PM
Junior Member
 
Join Date: Sep 2007
Posts: 15
deuxmille is on a distinguished road
Quote:
Originally Posted by sunwest View Post
Hello,

Just replace in indicator line:

#property indicator_chart_window

by:

#property indicator_separate_window

That should do the trick

Sunwest

but it paints different HISTOGRAM.
you know HISTOGRAM acts different in chart and in seperate window.
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 12-11-2007, 06:38 PM
sunwest's Avatar
Member
 
Join Date: Jan 2006
Location: London
Posts: 94
sunwest is on a distinguished road
Hello,

Yes it acts differently, you do not need to have 2 buffers for green and 2 buffers for red to link 2 points of a Line since it is a Histogram. You just need 1 value for green or red, so 2 buffers are enough.

Also if you only want 1 color drawn (red or green) for each time interval (bar) you will have to ensure that you set the value 0 in one of them.

Exemple, it is going up and the bar displayed should be green so you set the redbuffer to 0 and the green buffer with the desired value:

redbuffer0[i]=0;
greenbuffer0[i]=iClose(NULL,0,i+1)-p*Point;

Let me know exactly what you need to have:

Only 1 bar of 1 color at a time? red or green?

Sunwest

Last edited by sunwest; 12-11-2007 at 06:48 PM.
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 12-11-2007, 09:10 PM
Junior Member
 
Join Date: Sep 2007
Posts: 15
deuxmille is on a distinguished road
Quote:
Originally Posted by sunwest View Post
Hello,

Yes it acts differently, you do not need to have 2 buffers for green and 2 buffers for red to link 2 points of a Line since it is a Histogram. You just need 1 value for green or red, so 2 buffers are enough.

Also if you only want 1 color drawn (red or green) for each time interval (bar) you will have to ensure that you set the value 0 in one of them.

Exemple, it is going up and the bar displayed should be green so you set the redbuffer to 0 and the green buffer with the desired value:

redbuffer0[i]=0;
greenbuffer0[i]=iClose(NULL,0,i+1)-p*Point;

Let me know exactly what you need to have:

Only 1 bar of 1 color at a time? red or green?

Sunwest
thanks for your advices.
i think the conditions don't have logical errors.
two colors in one bar means the thread weakens ,and have the possibility to reverse.
but if i want to draw a histogram in chart window,should'nt i use two buffers which are limit the lenth of the histogram and the place where to draw it?

and i still dont know why cannot i put it proper in seperate window.
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 12-11-2007, 10:33 PM
Senior Member
 
Join Date: Jan 2007
Location: not so remote
Posts: 3,272
fxbs is on a distinguished road
would help if you put chart and explain what indi 4 and what it does
- people would get interested
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 12-12-2007, 06:55 AM
Junior Member
 
Join Date: Sep 2007
Posts: 15
deuxmille is on a distinguished road
double color means the trend seems to reverse

and if color doesn't change, you can safely hold your orders.
Attached Images
File Type: jpg snap001.jpg (87.2 KB, 365 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 12-12-2007, 07:24 AM
fairwind's Avatar
Member
 
Join Date: Nov 2005
Location: West Australia
Posts: 55
fairwind is on a distinguished road
Interesting indicator, thanks.

Why have you arranged "up" in RED and "down" in GREEN ??

I would have thought that the reverse colours would be more appropriate.
__________________
Good trading to all...............

fairwind
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 12-12-2007, 11:29 AM
Junior Member
 
Join Date: Sep 2007
Posts: 15
deuxmille is on a distinguished road
about the colors....
it's a chinese habite,red for bull and green for bear
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
  #10 (permalink)  
Old 12-12-2007, 05:17 PM
Senior Member
 
Join Date: Jan 2007
Location: not so remote
Posts: 3,272
fxbs is on a distinguished road
interesting

if(iClose(NULL,0,i+1)< iOpen(NULL,0,i+1))
{
if(iClose(NULL,0,i) > MathMax(iClose(NULL,0,i+1),iClose(NULL,0,i+2)))
{
greenbuffer0[i]=MathMax(iClose(NULL,0,i+1),iClose(NULL,0,i+2))
greenbuffer1[i]=iClose(NULL,0,i+1)
________
& w asctrend:
Attached Images
File Type: gif grim5.gif (20.0 KB, 280 views)
File Type: gif grim6asctr1.gif (11.6 KB, 259 views)

Last edited by fxbs; 12-12-2007 at 11:58 PM.
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


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


All times are GMT. The time now is 02:32 AM.



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