Announcement

Collapse
No announcement yet.

Plotting two studies simultanouesly

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

  • Plotting two studies simultanouesly

    Is it possible to plot two different indicators on two separate subwindows and use both together to color the price bars.
    Right now i have one efs that color codes my price bars based on cci level and i also have one that dloomis and alexis have developed that color codes the bars based on slope.
    What i am trying to do is color code the bars when both the cci is in its buy range along with the slope being positive.
    I also need each to plot separately in its own subwindow.Would i need a separate efs to color the price bars along with the other 2 efs studies that plot the studies.
    Thank as always for your assistance
    Yoda

  • #2
    yodajudge,

    My understanding of this is that you would need 3 EFS files to do this. Two to put each of the individual studies in seperate study windows, and one to do the comparison and color the price bars. If anyone else knows a better method, feel free to chime in.
    Regards,
    Jay F.
    Product Manager
    _____________________________________
    Have a suggestion to improve our products?
    Click Support --> Request a Feature in eSignal 11

    Comment


    • #3
      Jay,
      in the efs where iuse both to colot the bars would i
      setPriceStudy(true);
      or
      setPriceStudy(false);

      i think i ve got the color price bar code figured out it . My problem comes in that there seems to be a conflict between the efs that plots the studies and the one that colors the bars.
      Yoda

      Comment


      • #4
        ok im able now to get a screen using the 3 efs studies where i have the cci plotted in one subwindow the slope histogram plotted in anther window. With my third study I am also able to get the color bars to color based on the combination of conditons. However my combination efs also plots the slope in a third subwindow.
        What statement do i need to add or take off my combo efs so that it does not plot the slope at all since that is already being done by the slope.efs .
        Thanks
        Yoda

        Comment


        • #5
          If the only thing you need to do in that EFS (the third one) is change the color of the PriceBars by comparing two studies, then I would suggest setting setPriceStudy(true); Below is an example from RSIPriceBars.efs that I edited, so it would not show the RSI in a study pane, but still colors the bars.

          PHP Code:
          function preMain() {
          setPriceStudy(true);

              
          setColorPriceBars(true);
              
          setDefaultPriceBarColor(Color.blue);
          }

          function 
          main(nInputLength) {
              if(
          nInputLength == null)
                  
          nInputLength 14;

              var 
          vValue;

              var 
          vValue call("/library/RSIStandard.efs"nInputLength);

              if(
          vValue >= 70) {
                 
          setPriceBarColor(Color.red);
                 
          setBarThickness(2);
                
                 } else if(
          vValue <= 30) {
                  
                 
          setPriceBarColor(Color.lime);
                 
          setBarThickness(2);
              
              }

              return;


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

          Comment


          • #6
            Originally posted by yodajudge
            What statement do i need to add or take off my combo efs so that it does not plot the slope at all since that is already being done by the slope.efs .
            Thanks
            Yoda
            Add setPriceStudy(true) in the preMain() and, change your return statement to just "return;". This way the main() will not return any data to the chart.
            Regards,
            Jay F.
            Product Manager
            _____________________________________
            Have a suggestion to improve our products?
            Click Support --> Request a Feature in eSignal 11

            Comment


            • #7
              Jay,
              When i did the two steps you said the efs doesnt print in its own window. Howver now it doesnt do anything as far as color the bars.
              Does the fact that part of my code is done with the formula wizard change anything.
              When i chage setpricestudy back to false with jusst return: i get a blank subwindow with no data at all.
              When i change setpricestudy to true with my orignal return statement with the variables it doesnt work right either.
              Yoda

              Comment


              • #8
                Yodajudge,

                If you could attach what you currently have or email them, then we can get to the bottom of this.

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

                Comment


                • #9
                  Jay,
                  Pleas refer to my attached file.
                  Thanks alot for your assistance here.
                  Yoda
                  Attached Files

                  Comment


                  • #10
                    I believe this is what you were wanting. Please let me know.
                    Attached Files
                    Regards,
                    Jay F.
                    Product Manager
                    _____________________________________
                    Have a suggestion to improve our products?
                    Click Support --> Request a Feature in eSignal 11

                    Comment


                    • #11
                      Jay,
                      When i applied your efs it did not color code the bars according to the criteria i set. So i simply changed setpricestudy to false again and added on the beginning of the slope.efs efs that plotted the data as a histogram. I also uncommented the end of the line with return on it so that after the return is the variables then ;
                      Now the final efs plots colors price bars according to my dual criteria and plots the slope histogram i want.
                      Thanks for all your help
                      Yoda

                      Comment

                      Working...
                      X