| 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 |
|
||||
|
Attachment 63594
Attachment 63595 Attachment 63596 Ok, the plot thickens... Code:
int start()
{
int limit;
int counted_bars=IndicatorCounted();
if(counted_bars<0) return(-1); // YOU CAN ACTIVATE THIS ONE
if(counted_bars>0) counted_bars--;
limit=Bars-counted_bars;
if( limit >= my.stop )
{
for(int i=limit; i>=0; i--)
{
// LOAD BUFFERS
TestBuffer[i] = limit ;
} //for
} // if( limit >= my.stop )
Comment( "Limit=", limit, "\n",
"counted_bars=", counted_bars, "\n",
"Bars=", Bars, "\n",
"my.stop=", my.stop, "\n",
" ") ;
return(0);
}
extern int my.stop = 3 ; is set to 3. So the loop should not execute if limit is less than 3. The current buffer, TestBuffer[0], has not been assigned a value so... where's it coming from? There's something I need to learn about MT4!! |
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| THE BUY ZONE - TheRumpledOne | TheRumpledOne | Indicators - Metatrader 4 | 253 | 08-24-2008 03:02 PM |
| TheRumpledOne Indicators | TheRumpledOne | Commercial Trading Systems and indicators | 163 | 07-23-2008 09:25 AM |