Announcement

Collapse
No announcement yet.

same formula, different intervals

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

  • same formula, different intervals

    I am developing an efs script against a 15 minute chart. The script uses bollinger bands. If a condition is met in the 15 minute interval against the bollinger band, I want to check that the same condition is also met for the 30 minute interval against the 30 minute bollinger band. I think one way to implement this is to use multiple charts and a global value for the BB on the 30 minute chart and then check that in the formula on the 15 minute chart. But, I'd really like to do this within the one efs and only have to have the 15 min chart up....Any suggestions would be greatly appreciated...
    THANKS -
    Jennifer

  • #2
    You can do it on one chart...

    But, it would require the following....

    1. Build a array or 30 minute price bar data.
    2. Build a function to calculate the BB values on the 30 min bar data.
    3. Run your comparisons.

    If you are developing/testing something, then my suggestion is to use global variables - they are quick and painless.

    If you found something that "really works" and want to go further, then develop it into one file.

    Just my thoughts..

    B
    Brad Matheny
    eSignal Solution Provider since 2000

    Comment


    • #3
      Thanks for the reply...I can easily enough build the array with 30 minute data but then how do I get the BB calculated on that data ?

      Comment

      Working...
      X