Announcement

Collapse
No announcement yet.

volatility question

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

  • volatility question

    quick question. i have a working volatility function. what I am attempting to do is overlay a Bollinger on this. here's what I have so far. thx.

    function calcxVolat(symbol){

    var xVolat = ((high(symbol)-low(symbol))/open(symbol))*100;

    var vBollingerBands = new

    BollingerStudy(20,"close",2);

    return xVolat;

    }

  • #2
    stvchez
    The section of code you posted is only a function and does not return anything to the chart. If I am not mistaken it is part of an efs (called truth volatility or something similar) that I wrote some time ago. Anyhow you need to add the Bollinger study in the main function of the efs. For the syntax required by the Bollinger study click on the Help button in the Formula Editor or see the EFS2 Function Reference in the EFS KnowledgeBase
    Alex

    Comment

    Working...
    X