Forex
Google

Go Back   Forex Trading > Metatrader Training > Metatrader 4 mql 4 - Development course
Forex Forum Register FAQ Members List Calendar Search Today's Posts Mark Forums Read


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 07-12-2007, 07:28 PM
iscuba11's Avatar
iscuba11 iscuba11 is offline
Senior Member
 
Join Date: May 2006
Location: Houston
Posts: 400
iscuba11 is on a distinguished road
Smile Help with error message PLEASE!

PHP Code:
void watermark()
  {
   
ObjectCreate("fxfisherman"OBJ_LABEL000);
   
ObjectSetText("fxfisherman""fxfisherman.com"11"Lucida Handwriting"RoyalBlue);
   
ObjectSet("fxfisherman"OBJPROP_CORNER2);
   
ObjectSet("fxfisherman"OBJPROP_XDISTANCE5);
   
ObjectSet("fxfisherman"OBJPROP_YDISTANCE10);
   return(
0);
  } 
I used fxfisherman's format and put this coding using the name of my ea instead of fxfisherman at the bottom of my ea.

When I compile the ea program again I get an error: Function "watermark" is not referenced and will be removed from exp-file.

Can you help me with this problem???

Thanks in Advance!!!

Dave
<><<<
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 07-12-2007, 08:02 PM
HerbertH's Avatar
HerbertH HerbertH is offline
Member
 
Join Date: May 2006
Posts: 88
HerbertH is on a distinguished road
Error

Quote:
Originally Posted by iscuba11 View Post
PHP Code:
void watermark()
  {
   
ObjectCreate("fxfisherman"OBJ_LABEL000);
   
ObjectSetText("fxfisherman""fxfisherman.com"11"Lucida Handwriting"RoyalBlue);
   
ObjectSet("fxfisherman"OBJPROP_CORNER2);
   
ObjectSet("fxfisherman"OBJPROP_XDISTANCE5);
   
ObjectSet("fxfisherman"OBJPROP_YDISTANCE10);
   return(
0);
  } 
I used fxfisherman's format and put this coding using the name of my ea instead of fxfisherman at the bottom of my ea.

When I compile the ea program again I get an error: Function "watermark" is not referenced and will be removed from exp-file.

Can you help me with this problem???

Thanks in Advance!!!

Dave
<><<<

Somewhere in your own code, you have to call this watermark routine.
Just include:

watermark();

Cheers
__________________
Better being out, wishing to be in than being in and wishing to be out.....
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 07-12-2007, 08:58 PM
Michel Michel is offline
Senior Member
 
Join Date: Feb 2006
Posts: 502
Michel is on a distinguished road
Quote:
Originally Posted by iscuba11 View Post
PHP Code:
void watermark()
  {
   
ObjectCreate("fxfisherman"OBJ_LABEL000);
   
ObjectSetText("fxfisherman""fxfisherman.com"11"Lucida Handwriting"RoyalBlue);
   
ObjectSet("fxfisherman"OBJPROP_CORNER2);
   
ObjectSet("fxfisherman"OBJPROP_XDISTANCE5);
   
ObjectSet("fxfisherman"OBJPROP_YDISTANCE10);
   return(
0);
  } 
I used fxfisherman's format and put this coding using the name of my ea instead of fxfisherman at the bottom of my ea.

When I compile the ea program again I get an error: Function "watermark" is not referenced and will be removed from exp-file.

Can you help me with this problem???

Thanks in Advance!!!

Dave
<><<<
You have the function "watermark()" somewhere in your code but this function is never called, so it's no needed to keep it in the compiled file.
It's not a real error, you can run the ex4 as it is...

Last edited by Michel : 07-12-2007 at 09:38 PM. Reason: I am stupid
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 07-12-2007, 09:17 PM
iscuba11's Avatar
iscuba11 iscuba11 is offline
Senior Member
 
Join Date: May 2006
Location: Houston
Posts: 400
iscuba11 is on a distinguished road
Red face

I have tried sticking the watermark(); in all parts of the program (Top, Middle, and near the bottom) and get a global error all the time.

Without this being resolved, the label will not get located on the program. As they say in the South, I are confused?

Dave
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 07-12-2007, 09:36 PM
HerbertH's Avatar
HerbertH HerbertH is offline
Member
 
Join Date: May 2006
Posts: 88
HerbertH is on a distinguished road
Quote:
Originally Posted by Michel View Post
You have the function "watermark()" somewhere in your code but this function is never called, so it's no needed to keep it in the compiled file.
It's not a real error, you can run the ex4 as it is...

The Herbert's solution (call the function anywhere) may be dangerous : it should be better to understand what does this func before calling it.
I like to live dangerous.....

But then again, it's not that dangerous though, it's just a display routine.
Even if you called it at every tick, the worst thing that could happen is performance degrade during backtesting.

iScuba, if you want it fixed, post the EA, or PM me (or Michel)

Cheers
__________________
Better being out, wishing to be in than being in and wishing to be out.....
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 07-12-2007, 10:05 PM
Michel Michel is offline
Senior Member
 
Join Date: Feb 2006
Posts: 502
Michel is on a distinguished road
Quote:
Originally Posted by HerbertH View Post
I like to live dangerous.....

But then again, it's not that dangerous though, it's just a display routine.
Even if you called it at every tick, the worst thing that could happen is performance degrade during backtesting.

iScuba, if you want it fixed, post the EA, or PM me (or Michel)

Cheers
You are right ! I did not see the function was on the post ! Sorry to have interfere...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 07-12-2007, 11:24 PM
iscuba11's Avatar
iscuba11 iscuba11 is offline
Senior Member
 
Join Date: May 2006
Location: Houston
Posts: 400
iscuba11 is on a distinguished road
Smile

Can you give me a sample of how to call this function Watermark (); so I may learn?

Can I just put the following, and will it work??

ObjectCreate("Forex-Grail", OBJ_LABEL, 0, 0, 0);
ObjectSetText("Forex-Grail", "Forex-Grail", 11, "Lucida Handwriting", RoyalBlue);
ObjectSet("Forex-Grail", OBJPROP_CORNER, 3);
ObjectSet("Forex-Grail", OBJPROP_XDISTANCE, 5);
ObjectSet("Forex-Grail", OBJPROP_YDISTANCE, 10);
return(0);

I just tried the above, it compiled with no errors, but nothing shows on the graph! Frustrating.

I have a good working ea that is still in the test stages, and do not want to reveal the code of the ea.

Dave

<><<<

Last edited by iscuba11 : 07-12-2007 at 11:35 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 07-13-2007, 01:15 AM
ejoi ejoi is offline
Member
 
Join Date: Apr 2006
Posts: 68
ejoi is on a distinguished road
Try this.. you will find it at the bottom left of the chart

PHP Code:
int Table.X.Offset=-825;
int Table.Y.Offset=-105;
      
ObjectCreate("trademark"OBJ_LABEL000);
ObjectSetText("trademark","Your trademark"13"Arial Bold"Red);
ObjectSet("trademark"OBJPROP_CORNER2);
ObjectSet("trademark"OBJPROP_XDISTANCE830 Table.X.Offset);
ObjectSet("trademark"OBJPROP_YDISTANCE117 Table.Y.Offset); 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 07-13-2007, 01:34 AM
ejoi ejoi is offline
Member
 
Join Date: Apr 2006
Posts: 68
ejoi is on a distinguished road
or this.....

PHP Code:
int init()
  {
  
watermark();
  return(
0);
  }

void watermark()
  {
   
ObjectCreate("fxfisherman"OBJ_LABEL000);
   
ObjectSetText("fxfisherman""fxfisherman.com"11"Lucida Handwriting"RoyalBlue);
   
ObjectSet("fxfisherman"OBJPROP_CORNER2);
   
ObjectSet("fxfisherman"OBJPROP_XDISTANCE5);
   
ObjectSet("fxfisherman"OBJPROP_YDISTANCE10);
   return(
0);
  } 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
Has anyone got this error? wolfe Metatrader 4 6 07-14-2007 12:07 AM
Error JoZo General Discussion 2 06-28-2006 07:45 PM
has anybody seen this message on MT ? trevtrade Suggestions for Trading Systems 3 03-24-2006 12:16 PM


All times are GMT. The time now is 10:37 PM.