Announcement

Collapse
No announcement yet.

Merging studies

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

  • Merging studies

    Is it possible to merge a study with CCI study and lock it in the CCI`s scale ?
    I have a 3ma of ES and it is plotted as a study, not on the price, so i would like it to merge with CCI, but every time i do that it plots MA at CCI`s 800 level , which makes cci small and MA flat line.

    Thank you .
    Elmar

  • #2
    Re: Reply to post 'Merging studies'

    Elmar
    Check out this thread and specifically Garth Doverspike's solution
    http://forum.esignalcentral.com/show...=&threadid=514
    Alex
    Last edited by ACM; 02-11-2003, 10:08 PM.

    Comment


    • #3
      Thank you Alexis , but that is not quite what i need. I have my price MA ploted as a study (just like in that solution they plot price as a study) and now i need to merge it with CCI , but i need it to be locked in the CCI`s scale. The readings of MA is not important to me , what i want to see is the slope compared to the CCI
      Thank you
      Elmar

      Comment


      • #4
        why dont you plot the slope of the ma vs the slope of the cci

        ma1-ma2/cci1-cc2

        Comment


        • #5
          Sure dloomis , can you please tell me how to do it ?
          where would i enter ma1-ma2/cci1-cc2 ?

          Comment


          • #6
            var vCCI20 = new CCIStudy(20, "Close");
            var vEMA10 = new MAStudy(10, 0, "Close", MAStudy.EXPONENTIAL);
            var vLastAlert = -1;

            function preMain() {

            setPriceStudy(true);
            setStudyTitle("Elmar");
            setCursorLabelName("ma-cci", 0);
            setDefaultBarStyle(PS_SOLID, 0);
            setDefaultBarFgColor(Color.red, 0);
            setDefaultBarThickness(1, 0);
            setPlotType(PLOTTYPE_LINE, 0);

            }
            function main() {

            return (
            (vEMA10.getValue(MAStudy.MA)-vEMA10.getValue(MAStudy.MA, -1))/,
            (vCCI20.getValue(CCIStudy.CCI)vCCI20.getValue(CCIS tudy.CCI,-1))
            );
            }

            Comment

            Working...
            X