Announcement

Collapse
No announcement yet.

Entry point

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

  • Entry point

    Hello,
    I want to write formula for entry point.
    Sell point= today open-((previous day high-previous day low)*50%))
    Buy point= today open+((previous day high-previous day low)*50%))
    I want it displayed on the chart. How can I do it?
    Thank you.
    Tonal

  • #2
    Hello Tonal,

    To begin learning how to develop EFS formulas, please visit the resources listed below my signature.

    The functions used to access the price data can be found in the EFS KnowledgBase Series Functions. By default a series function returns the data that corresponds to the symbol and interval in which your formula is running. However, you can use the sym|inv parameter of the series functions to access data from different symbols or intervals using the sym() or inv() function in the parameters for the function call.

    For your Sell point equation, if your formula is running on a daily chart it could be written as follows (excluding preMain()).

    PHP Code:
    function main() {
        return 
    open(0) - ((high(-1) - low(-1)) * .5);

    If your formula will be running on intra-day intervals, use the inv() function to access the daily price data.

    PHP Code:
    function main() {
        return 
    open(0inv("D")) - ((high(-1inv("D")) - low(-1inv("D"))) * .5);

    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