Forex
Google
New signals service!

Go Back   Forex Trading > Downloads > Indicators - 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 01-09-2008, 10:31 PM
TheRumpledOne's Avatar
Banned
 
Join Date: Nov 2006
Posts: 806
TheRumpledOne is an unknown quantity at this point
Need Help: Display problem

I can't seem to figure this one out.

I want to add a set of buffers that are for output so I can turn the display on/off.

I also want to be able to turn the EASY TO READ DISPLAY on/off.

Can someone figure out why when I turn the chart off, the display values are set to 0?

I have the "z" buffers that I want to use as the output buffers. When I use them in the SetIndexBuffer ( 0 , zbuf0 ); the display is 0!

But I am assigning them a value with: zbuf0[i] = buf0[i] ;

I know it has to be so dang simple it isn't funny.

Thanks.
Attached Files
File Type: mq4 _Amplitude_allHistAvg.mq4 (6.5 KB, 13 views)

Last edited by TheRumpledOne; 01-09-2008 at 10:34 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-09-2008, 11:43 PM
Senior Member
 
Join Date: Jan 2006
Posts: 1,119
omelette is on a distinguished road
Quote:
Originally Posted by TheRumpledOne View Post
I can't seem to figure this one out.

I want to add a set of buffers that are for output so I can turn the display on/off.

I also want to be able to turn the EASY TO READ DISPLAY on/off.

Can someone figure out why when I turn the chart off, the display values are set to 0?

I have the "z" buffers that I want to use as the output buffers. When I use them in the SetIndexBuffer ( 0 , zbuf0 ); the display is 0!

But I am assigning them a value with: zbuf0[i] = buf0[i] ;

I know it has to be so dang simple it isn't funny.

Thanks.
It's an age since I wrote an indicator, but I seem to recall that for indicators, Metaquotes, in their infinite wisdom, reset all variables (including arrays) whenever the user settings are changed. This does not happen with EA's - and it shouldn't happen with indicators either, but it does!

That's how I remember it, but I may be completely wrong
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-10-2008, 01:42 AM
TheRumpledOne's Avatar
Banned
 
Join Date: Nov 2006
Posts: 806
TheRumpledOne is an unknown quantity at this point
Quote:
Originally Posted by omelette View Post
It's an age since I wrote an indicator, but I seem to recall that for indicators, Metaquotes, in their infinite wisdom, reset all variables (including arrays) whenever the user settings are changed. This does not happen with EA's - and it shouldn't happen with indicators either, but it does!

That's how I remember it, but I may be completely wrong
Thanks.

But that's not the problem.

I know it's something simple.
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 Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
indicator won't display ace Indicators - Metatrader 4 2 11-13-2007 03:06 AM
Indicator that can display value of close at 23 GMT 1Dave7 Indicators - Metatrader 4 0 08-16-2007 12:12 AM
Chart display in MT4 oneprint Metatrader 4 4 11-07-2006 04:48 PM
I Trend Display 006 Metatrader 4 6 08-22-2006 12:52 PM
Can an EA display Indicators? FXGamer Metatrader 4 1 05-19-2006 06:06 PM


All times are GMT. The time now is 01:34 AM.



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