Forex
Google

Go Back   Forex Trading > Metatrader Training > Metatrader 4 mql 4 - Development course
Forex Forum Register FAQ Members List Calendar Search Today's Posts Mark Forums Read


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 03-15-2007, 02:56 PM
iscuba11's Avatar
iscuba11 iscuba11 is offline
Senior Member
 
Join Date: May 2006
Location: Houston
Posts: 400
iscuba11 is on a distinguished road
Question Need help to clarify my comparison statement

PHP Code:
iLow(NULL,0,Lowest(NULL,0,MODE_LOW,0,1)) < iLow(NULL,0,Lowest(NULL,0,MODE_LOW,1,1)) 

I am trying to compare the lowest of the current bar lowest to the lowest of the bar that is 1 bar back. I am confused as to what goes after the MODE_LOW in the statement - Could you clarify please?? From somebodies example in the past they had after the MODE_LOW a 1,1. What does each of these numbers refer to? - Confused??

Thanks in advance!!

Dave
<><<<

Last edited by iscuba11 : 03-15-2007 at 03:03 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 03-15-2007, 03:08 PM
Maji Maji is offline
Senior Member
 
Join Date: Mar 2006
Posts: 787
Maji is on a distinguished road
Try this and see if it is what you are looking for:
PHP Code:
iLow(NULL,0,Lowest(NULL,0,MODE_LOW,1,1))  < 
 
iLow(NULL,0,Lowest(NULL,0,MODE_LOW,1,0))  <-- this is the current bar 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 03-15-2007, 03:21 PM
iscuba11's Avatar
iscuba11 iscuba11 is offline
Senior Member
 
Join Date: May 2006
Location: Houston
Posts: 400
iscuba11 is on a distinguished road
Smile

Thanks my forum friend for the quick response!

Dave
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 03-15-2007, 04:31 PM
ralph.ronnquist's Avatar
ralph.ronnquist ralph.ronnquist is offline
Senior Member
 
Join Date: Oct 2006
Posts: 280
ralph.ronnquist is on a distinguished road
Quote:
Originally Posted by iscuba11
[php]From somebodies example in the past they had after the MODE_LOW a 1,1. What does each of these numbers refer to? - Confused??
The second last argument tells the "period" of bars within which to find the bar of the lowest value (as selected by the third argument), and the last argument tells the bar index of the latest bar in that period.

Thus, "iLowest(...,MODE_LOW,1,1)" points at which bar within a period of 1 bar, ending at bar 1, has the lowest price (of that period).
And "iLowest(...,MODE_LOW,1,0)" points at which bar within a period of 1 bar, ending at bar 0, has the lowest price (of that period).

Obviously, using iLowest for a period of 1 bar is a bit of a waste. That is, "iLow(NULL,0,Lowest(NULL,0,MODE_LOW,1,1))" is exactly the same as "iLow(NULL,0,1)" except that it uses some few more cycles.

Also, as you know, "iLow(NULL,0,0)" is the *currently* lowest of the bar currently being developed, and this might change as the bar develops.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Please Clarify this for Me lizmerrill General Discussion 1 02-06-2007 06:03 PM
How to export and print a statement on MT4? Dance With Lions Metatrader 4 2 01-19-2007 11:46 PM
clarify my doubt knvsantosh Metatrader 4 5 03-07-2006 06:47 PM
Here is my TSD statement noegrahaz Post and compare Trades 8 10-06-2005 01:13 PM


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