| 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 (1) | Thread Tools | Display Modes |
|
||||
|
You might add the following function
PHP Code:
PHP Code:
|
|
|||
|
If the trading period does not include midnight:
PHP Code:
|
|
||||
|
Quote:
thank you again |
|
|||
|
Dear Expert Advisors! pl. advise on refreshing buffers code
Dear Experts Advisors! Please give me advise on refreshing buffers (just good advise)
![]() there is code (patch, fix, upgrade) by Raff 4 multitimeframe (MTF) indicators, working pretty good; what could be similar code you can add to regular (not mtf) indicators? If possible, please, give example, thank you //---- Refresh buffers +++++++++++++++++++++ upgrade by Raff if (TimeFrame>Period()) { int PerINT=TimeFrame/Period()+1; datetime TimeArr[]; ArrayResize(TimeArr,PerINT); ArrayCopySeries(TimeArr,MODE_TIME,Symbol(),Period( )); for(i=0;i<PerINT+1;i++) {if (TimeArr[i]>=TimeArray[0]) { //---- /************************************************** *** Refresh buffers: buffer[i] = buffer[0]; ************************************************** ****/ Buffer1[i]= Buffer1[0]; Buffer2[i]= Buffer2[0]; Buffer3[i]= Buffer3[0]; //---- } } } //+++++++++++++++++++++++++++++++++++++++++ Raff ++++++ |
![]() |
| Bookmarks |
| Tags |
| CHinGsMAroonCLK, I_XO_A_H |
| Thread Tools | |
| Display Modes | |
|
|
LinkBacks (?)
LinkBack to this Thread: http://www.forex-tsd.com/metatrader-programming/554-how-code.html
|
||||
| Posted By | For | Type | Date | |
| Need an experienced programmer? - Page 2 | Post #0 | Refback | 09-24-2008 06:24 AM | |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to code this? | iscuba11 | Metatrader 4 mql 4 - Development course | 1 | 08-03-2007 04:22 PM |