Announcement

Collapse
No announcement yet.

Aiuto! Need help!

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

  • Aiuto! Need help!

    Hi everybody and special hello to Alexis,

    I would like to create an indicator, don't get it.
    Here is what I'm trying to do:

    Get the point range of prices for the last 10 bars. Get the value range of CCI(14) for the last 10 bars.
    Then divide the CCI range by the point range.
    Simple indicator line would help for now......

    Thank you all

  • #2
    muecke
    If by point range and CCI range you mean the differences between the highest and lowest values of each over 10 periods then the following should provide you that

    PHP Code:
    var pointRng upperDonchian(10,0)-lowerDonchian(10,0);
    var 
    cciRng upperDonchian(10,cci(14),0)-lowerDonchian(10,cci(14),0); 
    Then in your return statement just use cciRng/pointRng
    Alex

    Comment


    • #3
      Grazie mille.....

      sembra facile....

      would you mind writing it out completly?

      thank you very much

      Comment


      • #4
        muecke
        There is actually not much more than that. If you want to specify the Cursor Window label, color, type of plot etc just use any one of the EFSs in the EFS2 Basic or EFS2 Custom folders as an example. The same if you wish to add user selectable parameters
        Alex

        PHP Code:
        function main(){

            var 
        pointRng upperDonchian(10,0)-lowerDonchian(10,0);
            var 
        cciRng upperDonchian(10,cci(14),0)-lowerDonchian(10,cci(14),0);
            
            return 
        cciRng/pointRng;

        Comment


        • #5
          Sei un tesoro!

          grazie ancora!

          Comment


          • #6
            muecke
            Grazie per il complimento. Il piacere e' mio
            Alex

            Comment

            Working...
            X