Forex



Go Back   Forex Trading > Training > Metatrader > Metatrader 4 mql 4 - Development course
Forex Forum Register More recent Blogs Calendar Advertising Others Help






Register
Welcome to Forex-TSD!, one of the largest Forex forums worldwide, where you will be able to find the most complete and reliable Forex information imaginable.

From the list below, select the forum that you want to visit and register to post, as many times you want. It’s absolutely free. Click here for registering on Forex-TSD.

Exclusive Forum
The Exclusive Forum is the only paid section. Once you subscribe, you will get free access to real cutting-edge Trading Systems (automated and not), Indicators, Signals, Articles, etc., that will help and guide you, in ways that you could only imagine, with your Forex trading.
  • Elite Section
    Get access to private discussions, specialized support, indicators and trading systems reported every week.
  • Advanced Elite Section
    For professional traders, trading system developers and any other member who may need to use and/or convert, the most cutting-edge exclusive indicators and trading systems for MT4 and MT5.
See more

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 07-12-2007, 08:28 PM
iscuba11's Avatar
Senior Member
 
Join Date: May 2006
Location: Houston
Posts: 398
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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #2 (permalink)  
Old 07-12-2007, 09:02 PM
HerbertH's Avatar
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 wishing to be out.....
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #3 (permalink)  
Old 07-12-2007, 09:58 PM
Senior Member
 
Join Date: Feb 2006
Posts: 587
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 10:38 PM. Reason: I am stupid
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #4 (permalink)  
Old 07-12-2007, 10:17 PM
iscuba11's Avatar
Senior Member
 
Join Date: May 2006
Location: Houston
Posts: 398
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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #5 (permalink)  
Old 07-12-2007, 10:36 PM
HerbertH's Avatar
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 wishing to be out.....
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #6 (permalink)  
Old 07-12-2007, 11:05 PM
Senior Member
 
Join Date: Feb 2006
Posts: 587
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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #7 (permalink)  
Old 07-13-2007, 12:24 AM
iscuba11's Avatar
Senior Member
 
Join Date: May 2006
Location: Houston
Posts: 398
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-13-2007 at 12:35 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #8 (permalink)  
Old 07-13-2007, 02:15 AM
Member
 
Join Date: Apr 2006
Posts: 83
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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #9 (permalink)  
Old 07-13-2007, 02:34 AM
Member
 
Join Date: Apr 2006
Posts: 83
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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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
Has anyone got this error? wolfe Metatrader 4 7 03-13-2009 10:40 PM
Error JoZo General Discussion 2 06-28-2006 08:45 PM
has anybody seen this message on MT ? trevtrade Suggestions for Trading Systems 3 03-24-2006 01:16 PM


All times are GMT. The time now is 11:52 AM.



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