Announcement

Collapse
No announcement yet.

Bollinger Back Test formula problem

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

  • Bollinger Back Test formula problem

    I am trying to get a Bollinger back test formula by using and converting Alexis’ custom efs2 BB system indicator code.

    There appears to be no syntax errors per the formula output window but the efs is not working. The Bollinger bands are plotted but the buy/sell strategies are not plotted. At the same time the chart bars are coloured grey whereas they should be green and red.

    Can someone please help as I have spent a good few hours on this efs. The formula is attached.

    Thanks in advance.
    Robert
    Attached Files

  • #2
    The problem in your code is:

    "if (bExit = false) {"

    This needs to be:

    "if (bExit == false) {"

    Comment


    • #3
      Hi Foober

      Thanks for your help.

      The script is still not working.

      Regards
      Robert


      Originally posted by Foober
      The problem in your code is:

      "if (bExit = false) {"

      This needs to be:

      "if (bExit == false) {"

      Comment


      • #4
        In addition to the previous correction
        I think the problem lies in line 181:

        Change:

        ..."ShortExit" + nCtr);

        to:

        ..."ShortExit" + nCntr);
        Last edited by waynecd; 04-21-2008, 02:34 PM.

        Comment


        • #5
          waynecd

          Thank you for helping.

          I have changed the lines as you pointed out but unfortunately the script is still not working.

          Regards
          Robert


          Originally posted by waynecd
          In addition to the previous correction
          I think the problem lies in line 181:

          Change:

          ..."ShortExit" + nCtr);

          to:

          ..."ShortExit" + nCntr);

          Comment

          Working...
          X