Announcement

Collapse
No announcement yet.

EFS Problem

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

  • EFS Problem

    I am trying to set up a simple EFS, but when completed on some charts the latest bar disappears and on other charts the last few bars disappear,

    can anyone help

  • #2
    jsaitch
    Add the following lines in preMain()

    setColorPriceBars(true);
    setDefaultPriceBarColor(Color.black);


    The reason you are seeing that effect is that when none of the conditions you are using to paint the bars are true then the efs paints the bars in the default color which is white.
    Hope this helps
    Alex

    Comment


    • #3
      Thank for your help Alex,

      but I am new to this where is Premain

      Comment


      • #4
        jsaitch
        Open the efs with the Formula Editor (Tools->EFS->Editor) and at the very top of the script you should see a section that begins with
        function preMain(){
        Add the lines I suggested somewhere in that section of the efs.
        BTW did you create the efs with the Formula Wizard? If yes then there is another very simple solution
        Alex

        Comment


        • #5
          Many thanks for your help Alex

          Comment


          • #6
            Yes I did create using the wizard

            Comment


            • #7
              jsaitch
              Then add the conditional Set shown below as the very last one.
              Because 1 is by definition always equal to 1 if all the other conditions are not met this one will return true and will paint the bars in black
              Alex

              Comment


              • #8
                Alexis

                Once again thanks for your help. I will note this for future reference

                Comment

                Working...
                X