Announcement

Collapse
No announcement yet.

FunctionParameter

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

  • FunctionParameter

    Is there an upper limit to how many FunctionParameter? don't appear to be able to edit parameter 7 when the following is loaded into the chart.

    function preMain() {
    setPriceStudy(true);
    setStudyTitle("test");
    var fp1 = new FunctionParameter("nP1", FunctionParameter.NUMBER);
    fp1.setDefault(1);
    var fp2 = new FunctionParameter("nP2", FunctionParameter.NUMBER);
    fp2.setDefault(1);
    var fp3 = new FunctionParameter("nP3", FunctionParameter.NUMBER);
    fp3.setDefault(1);
    var fp4 = new FunctionParameter("nP4", FunctionParameter.NUMBER);
    fp4.setDefault(1);
    var fp5 = new FunctionParameter("nP5", FunctionParameter.NUMBER);
    fp5.setDefault(1);
    var fp6 = new FunctionParameter("nP6", FunctionParameter.NUMBER);
    fp6.setDefault(1);
    var fp7 = new FunctionParameter("nP7", FunctionParameter.NUMBER);
    fp7.setDefault(1);
    }

    function main(nP1,nP2,nP3,nP4,nP5,nP6,nP7) {

    return null;

    }
    Paul Williams
    Strategy & Applications
    www.futurenets.co.uk

  • #2
    futurenets as far as i know there is no upper limit on formula parameters what you might be experiencing is the 7th parameter being just out of view on the edit studies window, and no scroll down bar appearing , try adding a 8th parameter in function main to force the scroll down bar to appear.

    Comment


    • #3
      thanks shogun.

      there appears to be a small bug when using 7 parameters. no scroll bar appears and trying to edit the 7th parameter hangs the system.
      Paul Williams
      Strategy & Applications
      www.futurenets.co.uk

      Comment


      • #4
        forgot .. yes adding 8th parameter does solve this problem.
        Paul Williams
        Strategy & Applications
        www.futurenets.co.uk

        Comment


        • #5
          I also remember this was discussed several weeks ago, but did not remember the context. FWIW, I performed a search and here is the link.

          Chris indicated this problem will be fixed in the next build.

          Comment

          Working...
          X