Announcement

Collapse
No announcement yet.

indicator does not load for all data?

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

  • indicator does not load for all data?

    I have created an indicator in EFS Wizard that does not seem to load for all the data. Can someone take a look and see why? Attached is a screenshot of the indicator just fading away a few days ago. On some charts it lasts for a few days and others it lasts for a few hours in the same time frame. Here is my code.

    Thanks,
    KCOMOLLO

    //{{EFSWizard_Description
    //
    // This formula was generated by the Alert Wizard
    //
    //}}EFSWizard_Description 7532


    //{{EFSWizard_Declarations

    var vCCI55 = new CCIStudy(55, "Close");
    var vBollinger25_of_vCCI55 = new BollingerStudy(25, vCCI55, CCIStudy.CCI, 0.9);
    var vLastAlert = -1;

    //}}EFSWizard_Declarations 17004


    function preMain() {
    /**
    * This function is called only once, before any of the bars are loaded.
    * Place any study or EFS configuration commands here.
    */
    //{{EFSWizard_PreMain
    setPriceStudy(false);
    setStudyTitle("BBofCCI");
    setCursorLabelName("upper", 0);
    setCursorLabelName("basis", 1);
    setCursorLabelName("lower", 2);
    setCursorLabelName("cci", 3);
    setDefaultBarStyle(PS_DASH, 0);
    setDefaultBarStyle(PS_SOLID, 1);
    setDefaultBarStyle(PS_DASH, 2);
    setDefaultBarStyle(PS_SOLID, 3);
    setDefaultBarFgColor(Color.blue, 0);
    setDefaultBarFgColor(Color.yellow, 1);
    setDefaultBarFgColor(Color.blue, 2);
    setDefaultBarFgColor(Color.red, 3);
    setDefaultBarThickness(1, 0);
    setDefaultBarThickness(2, 1);
    setDefaultBarThickness(1, 2);
    setDefaultBarThickness(2, 3);
    setPlotType(PLOTTYPE_LINE, 0);
    setPlotType(PLOTTYPE_LINE, 1);
    setPlotType(PLOTTYPE_LINE, 2);
    setPlotType(PLOTTYPE_LINE, 3);
    //}}EFSWizard_PreMain 98589

    }

    function main() {
    /**
    * The main() function is called once per bar on all previous bars, once per
    * each incoming completed bar, and if you don't have 'setComputeOnClose(true)'
    * in your preMain(), it is also called on every tick.
    */

    //{{EFSWizard_Expressions
    //{{EFSWizard_Expression_1
    //}}EFSWizard_Expression_1 0

    //}}EFSWizard_Expressions 9063


    //{{EFSWizard_Return
    return new Array(
    vBollinger25_of_vCCI55.getValue(BollingerStudy.UPP ER),
    vBollinger25_of_vCCI55.getValue(BollingerStudy.BAS IS),
    vBollinger25_of_vCCI55.getValue(BollingerStudy.LOW ER),
    vCCI55.getValue(CCIStudy.CCI)
    );
    //}}EFSWizard_Return 32045

    }

    function postMain() {
    /**
    * The postMain() function is called only once, when the EFS is no longer used for
    * the current symbol (ie, symbol change, chart closing, or application shutdown).
    */
    }

    //{{EFSWizard_Actions
    //{{EFSWizard_Action_1
    function onAction1() {
    vLastAlert = 1;
    }
    //}}EFSWizard_Action_1 5589

    //}}EFSWizard_Actions 15622
    Attached Files

  • #2
    Re: Reply to post 'indicator does not load for all data?'

    If you slide the chart a little further to the left, the indicator will fill
    in.


    >

    Comment


    • #3
      I have seen that work on occasion but sometimes when i go back whole chunks of data seem to not load no matter how long I let it sit.

      Also, when backtesting it only backtests for the bars that have the indicator. Does this mean I have to scroll back all the way to the beginning to get an accurate backtest on the ones that do reload?

      Thanks for the help with this. Somehow I think I have some data collection setting incorrect and it is just me having a brain cramp.

      Regards,
      KCOMOLLO

      Comment


      • #4
        Ok, so far so good. I am making progress and it only happens because I am a little stupid tonight. The backtest only runs for bars that I have scrolled back to and had the data and indicator load.

        My question is:

        Is there a way to set the parameters for backtesting so that it will backtest a defined period of time so that I do not have to scroll all the time.

        Say a default setting for "one year"?

        Thanks again for putting up with me. Not very sharp tonight and new to Esignal.

        Thanks,
        KCOMOLLO

        Comment


        • #5
          Re: Reply to post 'indicator does not load for all data?'

          There is a finite number of days of data - 60 I think

          10 days for tick data

          That is probably the limiting factor you are seeing

          >

          Comment


          • #6
            Re: Reply to post 'indicator does not load for all data?'

            Right click on the chart, Time Templates and set the number of days to 60 or
            so.

            May be slow to load, so don't get nervous

            >

            Comment

            Working...
            X