Forex
Google
New signals service!

Go Back   Forex Trading > Downloads > Expert Advisors - 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 11-14-2006, 03:25 PM
babarmughal's Avatar
Senior Member
 
Join Date: Apr 2006
Posts: 315
babarmughal is on a distinguished road
Smile Guys what does this mean????

HI Guys ,

I wonder if someone can please explain what does this code mean...

/----
for(i = limit; i >= 0; i--)
{
if(High[i+1] > LastHigh)
LastHigh = High[i+1];
//----
if(Low[i+1] < LastLow)
LastLow=Low[i+1];
if(TimeDay(Time[i]) != TimeDay(Time[i+1]))
{
Print(DoubleToStr(Close[i], Digits));
Print(DoubleToStr(High[0], Digits));
Print(DoubleToStr(Low[0], Digits));

Thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 11-14-2006, 04:35 PM
Member
 
Join Date: Nov 2005
Posts: 49
4xCoder is on a distinguished road
/----
for(i = limit; i >= 0; i--) For each Bar starting at the oldest
{
if(High[i+1] > LastHigh) If the previous bar is a new high
LastHigh = High[i+1]; Cache the new High
//----
if(Low[i+1] < LastLow) If the previous bar is a new low
LastLow=Low[i+1];Cache the new low
if(TimeDay(Time[i]) != TimeDay(Time[i+1]))
{ If this bar is the start of a new day, print the open close and high
Print(DoubleToStr(Close[i], Digits));
Print(DoubleToStr(High[0], Digits));
Print(DoubleToStr(Low[0], Digits));


Basically it's collecting the highest high and the lowest low from limit bars back in time.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 11-14-2006, 07:16 PM
babarmughal's Avatar
Senior Member
 
Join Date: Apr 2006
Posts: 315
babarmughal is on a distinguished road
Smile

Quote:
Originally Posted by 4xCoder
/----
for(i = limit; i >= 0; i--) For each Bar starting at the oldest
{
if(High[i+1] > LastHigh) If the previous bar is a new high
LastHigh = High[i+1]; Cache the new High
//----
if(Low[i+1] < LastLow) If the previous bar is a new low
LastLow=Low[i+1];Cache the new low
if(TimeDay(Time[i]) != TimeDay(Time[i+1]))
{ If this bar is the start of a new day, print the open close and high
Print(DoubleToStr(Close[i], Digits));
Print(DoubleToStr(High[0], Digits));
Print(DoubleToStr(Low[0], Digits));


Basically it's collecting the highest high and the lowest low from limit bars back in time.

Tanks 4xcoder for you help,
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 On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
for russian guys canados General Discussion 5 04-14-2007 02:43 PM
When will you guys EVER learn?? sfxtrader Indicators - Metatrader 4 13 07-04-2006 06:12 AM
Guys what does it mean.... babarmughal Expert Advisors - Metatrader 4 2 05-09-2006 10:46 AM
Ok Guys and Gals... I need help Qbert006 Indicators - Metatrader 4 3 03-05-2006 04:08 PM


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



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