Dear All,
I tried the below code but it did not work:
ObjectCreate("Main_Trend", obj_Text, 0,Time(0), High(0));
ObjectSet("Main_Trend", OBJPROP_SCREENCOORDS,1);
ObjectSetText("Main_Trend", "Long", 12, "Arial", clBlue);
ObjectSet("Main_Trend", OBJPROP_XDISTANCE,50);
ObjectSet("Main_Trend", OBJPROP_YDISTANCE,50);
What is wrong with that?
Thanks,
Cs
How could I position a Text using absolute coordinates?
-
- Posts: 1
- Joined: Thu Jul 12, 2012 5:28 pm
-
- Posts: 103
- Joined: Sun Jan 02, 2011 6:05 pm
Re: How could I position a Text using absolute coordinates?
turner22 wrote:Dear All,
I tried the below code but it did not work:
ObjectCreate("Main_Trend", obj_Text, 0,Time(0), High(0));
ObjectSet("Main_Trend", OBJPROP_SCREENCOORDS,1);
ObjectSetText("Main_Trend", "Long", 12, "Arial", clBlue);
ObjectSet("Main_Trend", OBJPROP_XDISTANCE,50);
ObjectSet("Main_Trend", OBJPROP_YDISTANCE,50);
What is wrong with that?
Thanks,
Cs
ObjectCreate('Main_Trend', obj_Text, 0, 0, 0);
ObjectSet('Main_Trend', OBJPROP_SCREENCOORDS,1);
ObjectSetText('Main_Trend', 'Long', 12, 'Arial', clBlue);
ObjectSet('Main_Trend', OBJPROP_TIME1,50);
ObjectSet('Main_Trend', OBJPROP_PRICE1,50);
ObjectSet('Main_Trend', OBJPROP_VALIGNMENT, tlBottom);
ObjectSet('Main_Trend', OBJPROP_HALIGNMENT, taRightJustify);
ObjectSet('Main_Trend', OBJPROP_SCRVALIGNMENT, SVA_TOP);
ObjectSet('Main_Trend', OBJPROP_SCRHALIGNMENT, SHA_RIGHT);
http://forextester.com/forum/viewtopic.php?t=2595
Who is online
Users browsing this forum: No registered users and 22 guests