Announcement

Collapse
No announcement yet.

bollinger bands of $TICK

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

  • bollinger bands of $TICK

    Hi, I want to make a study that will show the $TICK value along with Bollinger Bands around it. I thought I could do this by editing the Bollinger Bands of RSI study to be a Bollinger Bands of $TICK study. However, it does not seem to work out this way.


    Here is what I have, it returns the tick value alright, but nothing is happening with the Bollinger Bands.

    var tickbb = null;
    var tick = null;

    function main() {
    tick = close("$TICK,5");
    if(tickbb == null) tickbb = new BollingerStudy(20, tick, 2.0);
    .
    .
    .
    .



    Anyway, this is not working, any help would be appreciated.

  • #2
    adonos
    I don't think you can pass a symbol as a variable to a builtin study
    Alex

    Comment


    • #3
      So, the only way to do this would be to do the Bollinger Band calculations by hand? You can pass the results of a study into a new study.. it shouldnt be that much different to pass in the values of other symbols.

      Comment


      • #4
        adonos
        With the current builtin efs(s) that is the only way.
        According to some early indications the next revision of efs and Formula Wizard (no release date has been announced) will be considerably more flexible, powerful and easier to program and will allow for user defined variables.
        Alex

        Comment


        • #5
          adonos
          The attached efs is a template for a Bollinger Band study. Comments in the script indicate where to define your own variable that will be used to calculate the BB.
          By default it is set to compute the BB on the Close
          Hope this helps
          Alex

          Note: Copy of this efs is also available here

          Attached Files

          Comment

          Working...
          X