object create
  #1 (permalink)  
Old 04-18-2007, 12:52 PM
Sophomore
 
Join Date: Nov 2006
Posts: 73
Thanks: 1
Thanked 22 Times in 18 Posts
hayseed is on a distinguished road
Default object create

i'm sure you've all seen the monitor type indicators that monitor various indicators on multiple time frames in the same indicator window..... so in a quick glance we can see if the macd is positive , stoch is rising and so on, on all time frames......

i'm trying to improve the look of my version.... presently the monitor just returns text in color.... buy sell for each labeled time frame..... you've probably seen this style......

so this is the macd component.....

if (macd > macdsig && macd2 < macdsig2) {macdbuy= "buy";}

here's my delima..... instead of text i would prefer either a small rectangle or a solid bar....

now i can change the "buy" to "-"

if (macd > macdsig && macd2 < macdsig2) {macdbuy= "-";}

that returns - which is a nickel and dime way of obtaining a bar/rectangle... and of course "=" is closer.....

can someone think of a way to code a rectangle which can be called..... the rest of the code will place the rectangle in the correct location and proper color..... i've googled the code to death and can't seem to find anything......

or can you think of an indicator in mq4 form that contains a rectangle....

i'll post the completed indicator in mq4 form when complete, which should allow everyone to customize it to their liking...... thanks......h

-------------------------

ObjectSetText("signal4",StringSubstr(macdbuy,0),12 , "Veranda Bold", Lime);
ObjectSet("signal4", OBJPROP_CORNER, 0);
ObjectSet("signal4", OBJPROP_XDISTANCE, 210);
ObjectSet("signal4", OBJPROP_YDISTANCE, 15);

----------------------------
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


Similar Threads
Thread Thread Starter Forum Replies Last Post
ZeroCode Sample: Create "10-Minute" Strategy Expert scorpion Tutorials, Tips & Tricks 16 04-13-2008 11:29 PM
Use mouse to create experts for MT3 (ZeroCode) scorpion Tools / Utilities 0 05-06-2006 03:19 AM
ZeroCode: Create a simple MACD Cross expert scorpion Tutorials, Tips & Tricks 2 06-08-2005 03:23 PM


All times are GMT. The time now is 02:07 AM.
Powered by vBulletin Version 3.6.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0

Registered members have access to special online forex currency trading tools, software, mt4 expert advisors and indicators. Register now

Main Menu

Economic Forecast