|
|||||||
| 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 |
|
||||
|
Not sure I'm better at this, but WindowFind - MQL4 Documentation
does tell you that -1 is what you get in the init() function.... Perhaps you should make a second init() function, to be called once from the start() function, and that second init() function (init2() maybe?) would include all the sl(..) calls. |
|
||||
|
I've figured out that the indicator is working fine until a new bar is formed, then the indicator is stopping. Can someone look at the code in the first post and see if they can fix this? It doesn't seem to be continuing when a new bar is formed.
![]() Thank you to anyone that can help! |
|
||||
|
Quote:
![]() |
|
||||
|
I was thinking a design like the following outline....
PHP Code:
|
|
||||
|
Quote:
As it currently stands: apart from at the first start() call, the counted_bars value will always be in the vicinity of Bars, while All_Bars by the looks of it remains 10, and therefore limit becomes a large negative number. Maybe you wanted PHP Code:
|
|
||||
|
Quote:
![]() |
|
||||
|
Ralph,
Your suggestions seem to have done the trick! Thank you for spending your time to help another. The indicator is now staying current with the current bar. I hope someday to be able to repay the favor. I've posted the working indicator for all who are interested. Thanks again! |
|
||||
|
How do you read it?
Quote:
|
|
||||
|
Still experimenting with it. I want to incorporate it into an EA. Info about how it works can be found here.
Theoretical Basis of Building Cluster Indicators for FOREX - MQL4 Articles Last edited by wolfe : 09-25-2007 at 04:08 AM. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Documents Bureau-crazy in live account opening | mpforex | Metatrader brokers | 4 | 04-12-2007 09:10 AM |
| invalid stop driving me nuts | caldolegare | Expert Advisors - Metatrader 4 | 11 | 05-04-2006 08:03 PM |
| Crazy Expert | hosein9f | Expert Advisors - Metatrader 4 | 10 | 03-09-2006 11:16 AM |