- Button - Graphical Objects - Analytical Objects - Price Charts, Technical and Fundamental Analysis
- Chart Settings - Additional Features - Price Charts, Technical and Fundamental Analysis
- Bitmap Label - Graphical Objects - Analytical Objects - Price Charts, Technical and Fundamental Analysis
So what do you think "pixel shift down" does when you increase the value? What happened when you tried it?
Ok, that pic is from a different indicator. but that pic is of an ex4 file (if that’s the right name not at my computer) so I can’t access the code to copy and paste to ‘time indicator’
I just need to move the time clock down a little because its in the way of other indicators at the top left of the screen
Ok, that pic is from a different indicator. but that pic is of an ex4 file (if that’s the right name not at my computer) so I can’t access the code to copy and paste to ‘time indicator’
I just need to move the time clock down a little because its in the way of other indicators at the top left of the screen
Show the code and maybe somebody can help you.
Show the code and maybe somebody can help you.
I need the code myself, that’s what I’m trying to say lol
Ok, that pic is from a different indicator. but that pic is of an ex4 file (if that’s the right name not at my computer) so I can’t access the code to copy and paste to ‘time indicator’
I just need to move the time clock down a little because its in the way of other indicators at the top left of the screen
I meant show the code for the ‘time indicator’ that you want to modify.
I meant show the code for the ‘time indicator’ that you want to modify.
//+------------------------------------------------------------------+ //| Time indicator.mq4 | //| Copyright © 2013, www.FxAutomated.com | //| http://www.FxAutomated.com | //+------------------------------------------------------------------+ #property copyright "Copyright © 2013, www.FxAutomated.com" #property link "http://www.FxAutomated.com" #property indicator_chart_window extern color BrokerTimeColor=Red; extern color ComputerTimeColor=Lime; extern int DistanceFromTopLeft=10; extern double ZoomLevel=1; //+------------------------------------------------------------------+ //| Custom indicator initialization function | //+------------------------------------------------------------------+ int init() { //---- indicators ObjectCreate("Label_bt", OBJ_LABEL, 0, 0, 0); // Creating obj. ObjectSet("Label_bt", OBJPROP_CORNER, 0); // Reference corner ObjectSet("Label_bt", OBJPROP_XDISTANCE, DistanceFromTopLeft*ZoomLevel);// X coordinate ObjectSet("Label_bt", OBJPROP_YDISTANCE, 30*ZoomLevel);// Y coordinate ObjectCreate("Label_ct", OBJ_LABEL, 0, 0, 0); // Creating obj. ObjectSet("Label_ct", OBJPROP_CORNER, 0); // Reference corner ObjectSet("Label_ct", OBJPROP_XDISTANCE, DistanceFromTopLeft*ZoomLevel);// X coordinate ObjectSet("Label_ct", OBJPROP_YDISTANCE, 60*ZoomLevel);// Y coordinate //---- return(0); } //+------------------------------------------------------------------+ //| Custom indicator iteration function | //+------------------------------------------------------------------+ int start() { //---- ObjectSetText("Label_bt",TimeToStr(TimeCurrent(),TIME_DATE|TIME_SECONDS),20*ZoomLevel,"Arial",BrokerTimeColor); ObjectSetText("Label_ct",TimeToStr(TimeLocal(),TIME_DATE|TIME_SECONDS),20*ZoomLevel,"Arial",ComputerTimeColor); //---- return(0); } //+------------------------------------------------------------------+ //+------------------------------------------------------------------+ //| Custom indicator deinitialization function | //+------------------------------------------------------------------+ int deinit() { //---- ObjectDelete("Label_bt"); ObjectDelete("Label_ct"); //---- return(0); }
ObjectSet("Label_bt", OBJPROP_YDISTANCE, 30*ZoomLevel);// Y coordinate
Try changing this
Maybe to
ObjectSet("Label_bt", OBJPROP_YDISTANCE, 50*ZoomLevel);// Y coordinate
Or just increase the ZoomLevel input.
Try changing this
Maybe to
Or just increase the ZoomLevel input.
Awesome that helped , thanks! do you know how i could just keep the local time and get rid of the date?
Awesome that helped , thanks! do you know how i could just keep the local time and get rid of the date?
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use