Help aligning text with a Fib line?
Page 1 of 502 12 LastLast
Results 1 to 10 of 12

Thread: Help aligning text with a Fib line?

  1. #1
    1 Attachment(s) hello guys, can somebody help me out? I have tried different combinations of OBJPROP_ANCHOR, OBJPROP_YDISTANCE, etc..

    I am trying to line the text up using all the fib line. As you can see, it's below and also far right. I move into the left and would love to center it using the fib lineup.

    What am I lost??

    ObjectDelete(IN_BT1_Tex);//this sets text in IntraDay_Fib_DLong!!!!
    ObjectCreate(0,IN_BT1_Tex,OBJ_TEXT,0,0,0);
    ObjectSet(IN_BT1_Tex, OBJPROP_TIME1, curTime shift);
    ObjectSet(IN_BT1_Tex, OBJPROP_PRICE1, Intraday_Fib_BT1);
    // ObjectSetInteger(0,IN_BT1_Tex,OBJPROP_ANCHOR,ANCHO R_CENTER);
    // ObjectSetInteger(0,IN_BT1_Tex,OBJPROP_BGCOLOR,clrP ink);
    // ObjectSetInteger(0,IN_BT1_Tex,OBJPROP_YDISTANCE,30 );
    ObjectSet(IN_BT1_Tex,OBJPROP_COLOR, clrRoyalBlue);
    ObjectSet(IN_BT1_Tex,OBJPROP_FONTSIZE, 13);
    ObjectSetText(IN_BT1_Tex, Daily Short Goal 1);

  2. #2
    Quote Originally Posted by ;
    hey guys, can somebody help me out? I've tried different combinations of OBJPROP_ANCHOR, OBJPROP_YDISTANCE, etc. I am trying to line the text up using the fib line. As you can see, it's below and also far right. I'd love to center it using the fib lineup and proceed to the left. What am I lost?? ObjectDelete(IN_BT1_Tex);//that sets text at IntraDay_Fib_DLong!!!! ObjectCreate(0,IN_BT1_Tex,OBJ_TEXT,0,0,0); ObjectSet(IN_BT1_Tex, OBJPROP_TIME1, curTime shift); ObjectSet(IN_BT1_Tex, OBJPROP_PRICE1, Intraday_Fib_BT1); // ObjectSetInteger(0,IN_BT1_Tex,OBJPROP_ANCHOR,ANCHO R_CENTER);...
    Inserted Code ObjectSetInteger(0,IN_BT1_Tex,OBJPROP_ANCHOR,ANCHO R_RIGHT);

  3. #3
    Quote Originally Posted by ;
    quote ObjectSetInteger(0,IN_BT1_Tex,OBJPROP_ANCHOR,ANCHO R_RIGHT);
    you da bomb, Nicholishen!!!!
    thanks!

  4. #4
    Can you guys help me out with TIME when trying to add a vertical line? I'm trying to set a vertical line at now, 8:00.

    I'm using the following:

    dt_1= StrToTime(2017.25.00 08:00);

    but when I check the properties of the line, it reveals 2017.12.01 00:00.

    What's the trick?

  5. #5
    Quote Originally Posted by ;
    can you guys help me out with TIME when seeking to add a vertical line? I'm attempting to put a vertical line at now, 8:00. I'm using the following: dt_1= StrToTime(2017.25.00 08:00); but when I check the properties of the line, it reveals 2017.12.01 00:00. What's the trick?
    What day (and month) will : 2017.25.00 be?

  6. #6
    Quote Originally Posted by ;
    quote What day (and month) would : 2017.25.00 be?
    sorry.

    Dt_1= StrToTime(2017.10.25 16:00);

    still obtaining a date of 2017.12.01 00:00 when I look at properties

  7. #7
    Quote Originally Posted by ;
    quote sorry. Dt_1= StrToTime(2017.10.25 16:00); nevertheless obtaining a date of 2017.12.01 00:00 when I look at properties
    All works as expected
    Used this code for testing :

    Inserted Code #property indior_chart_window #property indior_buffers 0 #property indior_plots 0 int OnInit() return(0); emptiness OnDeinit(const int reason) int OnCalculate (const int rates_total, const int prev_calculated, const datetime time#91;#93;, const double available#91;#93;, const double high#91;#93;, const double low#91;#93;, const double close#91;#93;, const extended tick_volume#91;#93;, const long volume#91;#93;, const int spread#91;#93;-RRB- datetime dt_1= StrToTime(2017.10.25 16:00); string _title = _evaluation; ObjectCreate(0,_title,OBJ_VLINE,0,0,0); ObjectSetInteger(0,_title,OBJPROP_TIME,0,dt_1); return(rates_total);

  8. #8
    Quote Originally Posted by ;
    quote All works as expected Used this code for testing : #property indior_chart_window #property indior_buffers 0 #property indior_plots 0 int OnInit() return(0); void OnDeinit(const int reason) int OnCalculate (const int rates_total, const int prev_calculated, const datetime time[], const double open[], const double high[], const double non[], const double shut[], const long tick_volume[], const long volume[], const int disperse[]){ datetime dt_1= StrToTime(2017.10.25 16:00); series _title = _test; ObjectCreate(0,_title,OBJ_VLINE,0,0,0);...
    therefore that it looks like you are creating the line. Then moving it to the ideal time? Is that correct? Does that make a difference?

  9. #9
    Quote Originally Posted by ;
    quote so it appears as if you're creating the line. Then moving it to the right time? Is that right? Does that make a difference?
    I don't understand what exactly do you mean by make a difference because I have no idea what code are you currently using, but if I'm not going it
    I'm simply assigning the Right time for this time part of the object - that is all
    ObjectMove() is totally distinct function

  10. #10
    Quote Originally Posted by ;
    quote I don't understand what do you men by make a difference because I have no idea what code are you using, but in any case I'm not shing it I'm simply assigning the correct time for this time component of the object - that's ObjectMove() is totally distinct function
    fine. Thanks for your help!!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
This website uses cookies
We use cookies to store session information to facilitate remembering your login information, to allow you to save website preferences, to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners more information