Announcement

Collapse
No announcement yet.

Paint bars at specified times

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Paint bars at specified times

    Received via Private Message

    Do you have an efs that will paint the bars a certain color at certain times like 10am, 930am, 11am etc..?
    Thanks in advance
    R...


    The attached efs will paint a bar at a specified time and will also draw at the bottom of the chart a small clock (using Wingding font) showing the relative hour.



    Use the Editor to modify and/or add to the efs. Comments are provided in the efs itself.

    If instead you want to paint all the bars in a certain time period you may want to use the efs that is posted in this thread.
    Alex
    Attached Files

  • #2
    Thanks Alex,

    Questions:

    How do you set font to "wingding?" I used properties/font.. did not work.

    On a candlestick chart, how do you leave the other bar colors as they were, i.e, down bars red, up bars green, instead of color as black?

    Comment


    • #3
      Robert

      Wingdings used to plot the images is set in the efs itself in the line(s)
      drawTextRelative(0,0,"¿",Color.red,null,Text.CENTE R|Text.RELATIVETOBOTTOM,"Wingdings",16);

      Once you have an efs that paints the bars you cannot "leave" the other ones unchanged as per the basic chart properties. You need to define the colors in the efs based on the conditions you want.

      Alex

      Comment


      • #4
        Alex,

        I was not getting the clocks. Applying the efs directly without changes

        see attached
        Attached Files

        Comment


        • #5
          Robert
          You need version 7.4 (or the RC prior to that) to be able to see Wingdings in the chart when called by an efs.
          With regards to your prior question concerning painting up and down candles attached is a revision of the first efs that will do both.
          Alex

          Attached Files
          Last edited by ACM; 08-03-2003, 10:30 AM.

          Comment


          • #6
            Hello Alex,

            Works with 7.4.

            But min clocks not showing correct time!

            hat needs to be changed?
            Attached Files

            Comment


            • #7
              Robert
              Those are just font images. There are 12 of them in Wingdings (one for each hour) and you need to insert the appropriate one in each relative command.
              To view the Wingdings use the Character Map applet which will also show you the keystroke combination that needs to be used to type that particular Wingding.
              Alex

              Comment


              • #8
                Sorry for being ignorant, Alex.

                How do you view wingding character map?

                Comment


                • #9
                  Originally posted by Robert Dee
                  Sorry for being ignorant, Alex.

                  How do you view wingding character map?
                  Alex isn't here at tyhe moment and I answer in his behalf: WINDINGS are a set of graphics fonts that you have in windows: arrows, signs, hands, clocks etc.......

                  If you scroll the fonts in the text windows of a ESIG you'll find it.

                  Cordially
                  Fabrizio L. Jorio Fili

                  Comment


                  • #10
                    Hello Fabrizio,

                    I saw the fonts. But where do you get the mini clocks?

                    See attached
                    Attached Files

                    Comment


                    • #11
                      Robert
                      Character Map can be found in Windows by clicking Start->Programs->Accessories->System Tools.



                      When in Character Map select the font and point to the desired symbol/letter/etc. On the bottom right it will indicate what keystroke is necessary to type that particular symbol/letter/etc.
                      You can also Copy it from Character Map and Paste it into the Editor
                      Alex

                      Comment


                      • #12
                        Thanks Alex,

                        It works except for the 12:30. It displayed a different symbol

                        See attached
                        Attached Files

                        Comment


                        • #13
                          Robert
                          The "half-hour" clocks are in Wingdings 2. Did you change the font in the formula? The line below should give you 12:30. Notice that a different font is now used (in bold)
                          drawTextRelative(0,0,"’",Color.cyan,null,Text.CENT ER|Text.RELATIVETOBOTTOM,"Wingdings 2",16);
                          Alex

                          Comment


                          • #14
                            Alex,

                            Here is the code:


                            else if ((getHour()*100)+getMinute()==1230){
                            setPriceBarColor(Color.white)
                            drawTextRelative0,0,"?",Color.cyan,null,Text.CENTE R|Text.RELATIVETOBOTTOM,"Wingdings 2",16);



                            Attached showing "?"
                            Attached Files

                            Comment


                            • #15
                              Robert
                              You must be typing in the wrong keystrokes. Here is the same line as yours with the correct kestroke for 12:30

                              drawTextRelative0,0,"’",Color.cyan,null,Text.CENTE R|Text.RELATIVETOBOTTOM,"Wingdings 2",16);

                              You should be able to copy it from here and paste it in the formula.
                              FYI the 12:30 keystroke is Alt+0146 (ie type 0146 using the Numeric keypad WHILE keeping the <Alt> key pressed)
                              Alex

                              Comment

                              Working...
                              X