Announcement

Collapse
No announcement yet.

Same Symbol w/different timeframes question

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

  • Same Symbol w/different timeframes question

    Attempting to wirte an EFS that uses two timeframes (both are tick charts) in which the longer term tick chart establishes the priority ruleset (trend) and governs the shorter term tick chart (execution) adjusting the lot size of entry. In trend full size lot, countrend half size for scale out or countrend entry.
    In effect 5/10 lot size on ES...in trend (based on longer term tick chart) would execute the 10 size.....and scale out of 5 size based on shorter term tick chart pullback or if triggered off the longer term chart reversal...and full exit.

    My question is....how would one reference a different timeframe or tick setting....establishing a priority and governance over the shorter time or tick setting?

    Is this possible within one efs script?

  • #2
    Same Symbol w/different timeframes question

    Hello yankster,

    In EFS, we don't have specific control over when a formula gets executed. You can set up some flags within a formula to prevent blocks of code from executing based on some condition, but we can't initiate the execution of a formula from within EFS. Execution occurs when a trade occurs. To access data of different intervals you can pass a string to the function that specifies the symbol and interval. Example,

    PHP Code:
    //close([nRelativeOffset] [, nNumBars [, Symbol ] ])
    close(01"IBM, 5"); 
    Another option, is two run two different formulas on two different charts. Then use the global functions to pass data from one to the other.
    Jason K.
    Project Manager
    eSignal - an Interactive Data company

    EFS KnowledgeBase
    JavaScript for EFS Video Series
    EFS Beginner Tutorial Series
    EFS Glossary
    Custom EFS Development Policy

    New User Orientation

    Comment

    Working...
    X