| New signals service! | |
|
|||||||
| 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 |
|
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
/----
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. |
|
||||
|
Quote:
Tanks 4xcoder for you help, |
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
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 |