Announcement

Collapse
No announcement yet.

Urgent Please

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

  • Urgent Please

    I tried and I cant put Bollinger bands on Forceindex.efs studies...
    Some one can help me to do that?.
    And I whant to put Bollinger Bands on other studies ...

    in advance thanks a lot

    best regards

    Kouider

    Attachment: forceindex.efs

    /************************************************** *****************
    Description : This Indicator plots Force Index indicator
    Provided By : Developed by TS Support, LLC for eSignal. (c) Copyright 2002
    ************************************************** ******************/

    function preMain()
    {
    setStudyTitle("Force Index");
    setCursorLabelName("FastAvg", 0);
    setCursorLabelName("SlowAvg", 1);
    setCursorLabelName("Zero", 2);
    setDefaultBarFgColor(Color.blue, 0);
    setDefaultBarFgColor(Color.red, 1);
    setDefaultBarFgColor(Color.green, 2);
    setPlotType(PLOTTYPE_HISTOGRAM, 0);
    }
    var XA1_1 = 0.0;
    var XA2_1 = 0.0;
    function main(XLen1, XLen2)
    {
    if (XLen1 == null) XLen1 = 3;
    if (XLen2 == null) XLen2 = 13;
    var Volume = getValue("Volume", 0);
    var Close = getValue("Close", 0, -2);
    var FrceIdx = Volume * (Close[0] - Close[1]);
    var Factor1 = 2 / (XLen1 + 1);
    var Factor2 = 2 / (XLen2 + 1);
    var XA1 = Factor1 * FrceIdx + (1 - Factor1) * XA1_1;
    var XA2 = Factor2 * FrceIdx + (1 - Factor2) * XA2_1;
    if (getBarState() == BARSTATE_NEWBAR)
    {
    XA1_1 = XA1;
    XA2_1 = XA2;
    }
    return new Array(XA1, XA2, 0);
    }
Working...
X