a little help please

 

Ok I thought I would try mu first indicator from screatch, up till now I have changed and or modified many code with little problem. So I tried one from the beginning. If someone could look at it and tell me my error I would appreciate it very much. i am not looking for you to fix as I need to learn by my errors.

I have been looking at this code for days now and can not see where I went wrong, the code compiles with no errors. When I put it on the chart it shows the label grayed out in the corner. It is just a simple three line color change indicator with day week and month stats.

Thanks for any help you may offer.

Tom

Files:
1test.mq4  6 kb
 

Hi

You should break things down like only test one object and make it simple to start with say just put some test at a location.

Comment out the weekly and monthly bits then use these two lines and see what happens.


ObjectSetText ("Daily", "Test my test first",font_size,"Arial",color_up);
ObjectSetText ("Daily", "Test my test first",font_size,"Arial",color_down);


There are several errors that you could identify by testing things in easy steps.

For instance what is the external variable Arial doing?

Why have you changed the symbol name from "Daily" to "Daily :="

Reason: