Announcement

Collapse
No announcement yet.

price bar study

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • price bar study

    I would like to be able to have prices bars paint in different colos basee upon my criteria. As an example, if a bars was 0 to 2 ticks of a bars open, i want it to paint a specific color and if a bar is say, 130% larger then the last bar to paint another color, and etc

    Can you advise on how to do this??

  • #2
    moreyruz3
    In the first case you would need to define the value of a tick since efs has no knowledge of that. Alternatively you could just use the value directly in the condition. If for example you wanted to use this on ES (where a tick is 0.25) then you could write

    PHP Code:
    if(close(0)<=open(0)+0.50 && close(0)>=open(0)-0.50){
        
    setPriceBarColor(Color.yourcolor);

    For the second case you would write something similar to what is shown below

    PHP Code:
    if((high(0)-low(0)) > (high(-1)-low(-1))*1.30)
        
    setPriceBarColor(Color.yourcolor); 
    If you are unfamiliar with efs you may want to do this using the Formula Wizard which makes it relatively easy to write scripts of this kind
    Alex

    Comment


    • #3
      your reply alexis

      Alexis, I am to new to this to understand it all but I learn fast and well by example. Can you give the actual completed EFS on that so I can study it and learn.

      much appreciated,
      Morey

      Comment


      • #4
        Hi Alex, I actually go it to work but here is another question. How do I make this statement look back and take the 133% value off of the last 20 bars rather then the last bar??

        If((high(0)-low(0) > (high(-1)-low(-1))*1.33)
        setPriceBarColor(Color.white);


        Thanks,
        Morey

        Comment


        • #5
          Morey
          I am not sure I understand what you are asking.
          Alex

          Comment


          • #6
            what I really need

            thanks for the response. Here is what I am really trying to do. I want to have a study that will draw different color paint bars based on mostly percentages taken off of the ATR.

            (1) for a bar that is 60% of the ATR
            (1) for a bar that is 133% greater then the ATR
            (1) for a bar that is 20% of the ATR
            (1) for a bar that is greater then 60% of the ATR but less then 133%
            and here is the togh one;
            (1) for a bar whose close is within 25% of the high and low of the session

            each one needs it own color.
            The ATR I use is made by averaging the last 30 trade days, averaging the last 15 trade days, and then averaging the 2 together.

            Can you help?? If need be, let me have a phone # and I will call and explain it better.
            Last edited by moreyruz3; 08-09-2005, 07:20 AM.

            Comment


            • #7
              Morey
              Enclosed below is an example of how you would set the conditions.

              PHP Code:
              var ATR //insert your ATR calculations here
              var Range high(0)-low(0);
                  
                  if(
              Range ATR*1.33)
                      
              setPriceBarColor(Color.yourColor1);
                  if(
              Range ATR*0.60 && Range ATR*1.33)
                      
              setPriceBarColor(Color.yourColor2);
                  
              // insert your other conditions here 
              As to your last condition the definition you provide is ambiguous and depending on what you mean could be written as in the examples shown below
              Alex

              PHP Code:
              //this example assumes the Close is within the inner part of the bar
              if((close(0) < (high(0)-(Range*0.25)) && close(0) > (low(0)+(Range*0.25))))

              //this example assumes the Close is near the extremes of the bar
              if((close(0) > (high(0)-(Range*0.25)) || close(0) < (low(0)+(Range*0.25)))) 

              Comment


              • #8
                atr range

                Alex;
                I don't follow you here. Take the es as an example. How do i define it as a range? What are the numbers (values ) that I am entering there??

                Comment


                • #9
                  Morey
                  In the example I posted Range is defined by var Range = high(0)-low(0);
                  As to ATR replace that with whatever calculation (and variable name) you indicated you are already using for the average range (see enclosed excerpt from your quote)
                  Alex

                  Originally posted by moreyruz3
                  The ATR I use is made by averaging the last 30 trade days, averaging the last 15 trade days, and then averaging the 2 together.

                  Comment


                  • #10
                    price bars

                    I am still at a total loss to what you are saying. I am coming from the starting pointy of not having a clue how to right thes rules. Instead of my wating my time, can you refer me to anyone who can do it for me?? It seems to be simple enough for anyone who understands it.

                    thanks

                    Comment


                    • #11
                      Hello moreyruz3,

                      The purpose of this forum is to get assistance and guidance from the moderators and other users on specific programming questions or issues. You might want to review the guidelines for this forum. The moderators do not provide formula development services. For those users, such as yourself, that are not interested in learning how to develop your own studies, there are some other options available for you. Please review the last section in the following post: FAQ: How can I get my custom study built?.
                      Jason K.
                      Project Manager
                      eSignal - an Interactive Data company

                      EFS KnowledgeBase
                      JavaScript for EFS Video Series
                      EFS Beginner Tutorial Series
                      EFS Glossary
                      Custom EFS Development Policy

                      New User Orientation

                      Comment


                      • #12
                        moreyruz3

                        moreyruz3 you must be new here . If you think esignal is interested in teaching you how to make formulas you are wasting your time . I have tried for before getting assist from them . They are more interested in charging you for every new market and feature and not assisting in making you a better trader or helping you build a trading system . If you want you can pm me and i can refer you to guy who make formula pretty cheap and in a timely manner.

                        Comment


                        • #13
                          watchdaride,
                          It is unfortunate that you are having a negative experience with your formula development efforts. However, to say that eSignal has not provided you with assistance is inaccurate. In my 3+ years on these forums, I have seen eSignal make significant strides towards education and support with EFS. For example:

                          The eSignal Central bulletin boards were formed to foster an online community for traders, programmers, eSignal clients, eSignal employees and a blend of any of the above to help where needed. With well over 20,000 posts in just the EFS Studies forum alone, it is clear that this approach has been very successful. Experts like Jason, Alex and Steve, just to name a few, have spent countless hours helping EFS novices learn the ropes. To indicate that eSignal or the community is not interested in helping is an injustice to their efforts.

                          Some further resources that eSignal has put forth are a free and extensive course on JavaScript, the foundation language of EFS with over 6+ hours of education. In addition, a very thorough online EFS KnowledgeBase was created along with a large library of real-world trading examples of how to practically use EFS.

                          Considering the above and in reading through the assistance that was provided to you by the community, it seems that your post is not a fair assessment of all that is offered.

                          Sincerely,
                          Jay F.
                          eSignal Community Support &
                          Education Supervisor
                          Regards,
                          Jay F.
                          Product Manager
                          _____________________________________
                          Have a suggestion to improve our products?
                          Click Support --> Request a Feature in eSignal 11

                          Comment


                          • #14
                            All i am saying is you guys charge alot more than other companies so your service and quality should be above all the rest. Hell other charting companies dont even charge for there charts anymore . If you feel your product and service is where it should be thats cool. You own the company . I am just giving you one mans opinion. been a esignal customer 3 years now .

                            Comment

                            Working...
                            X