Forex
Google
New signals service!

Go Back   Forex Trading > Downloads > Indicators - Metatrader 4


Register in Forex TSD!
Trading Systems Leaders in this forum (automated trading systems) are winning more than 3000 pips in a month (30000$ investing one lot every time).
Click here to register and get more information

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-11-2007, 05:05 PM
Junior Member
 
Join Date: Sep 2007
Posts: 14
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, 127 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 12-11-2007, 05:18 PM
sunwest's Avatar
Member
 
Join Date: Jan 2006
Location: London
Posts: 93
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!
Reply With Quote
  #3 (permalink)  
Old 12-11-2007, 05:24 PM
Junior Member
 
Join Date: Sep 2007
Posts: 14
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!
Reply With Quote
  #4 (permalink)  
Old 12-11-2007, 05:38 PM
sunwest's Avatar
Member
 
Join Date: Jan 2006
Location: London
Posts: 93
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 05:48 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 12-11-2007, 08:10 PM
Junior Member
 
Join Date: Sep 2007
Posts: 14
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!
Reply With Quote
  #6 (permalink)  
Old 12-11-2007, 09:33 PM
Senior Member
 
Join Date: Jan 2007
Location: not so remote
Posts: 1,989
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!
Reply With Quote
  #7 (permalink)  
Old 12-12-2007, 05:55 AM
Junior Member
 
Join Date: Sep 2007
Posts: 14
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, 298 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 12-12-2007, 06: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!
Reply With Quote
  #9 (permalink)  
Old 12-12-2007, 10:29 AM
Junior Member
 
Join Date: Sep 2007
Posts: 14
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!
Reply With Quote
  #10 (permalink)  
Old 12-12-2007, 04:17 PM
Senior Member
 
Join Date: Jan 2007
Location: not so remote
Posts: 1,989
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, 207 views)
File Type: gif grim6asctr1.gif (11.6 KB, 186 views)

Last edited by fxbs; 12-12-2007 at 10:58 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

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
DOSR EA needed - hope someone can help. FXOperator Expert Advisors - Metatrader 4 4 02-17-2007 12:59 PM


All times are GMT. The time now is 06:54 PM.



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