Announcement

Collapse
No announcement yet.

Newbe MACD question

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

  • Newbe MACD question

    Hello,

    I am new to using esignal, but I do know javScript fairly well. I am trying to create a trigger based on MACD values, namley when the faster MACD value crosses over the slower value. It looks like this is possible, but I need a pointer from someone on how to referrence the two MACD values and time for both the MACD graph and setting a timer on how long it has been since the chart values crossed. Any help from someone would be great.

    Thanks in advance.

  • #2
    Hello bobio,

    If you perform a search on the keyword phrase, MACD AND cross* or MACD AND alert, you'll find many discussions and code examples for you to follow regarding the crossover of the MACD values.

    To track the amount of time from the last crossover you would create a global variable and set it to the time value when you want to record the cross using the JavaScript Date Object. Going forward you can compare the current time from a Date object to that global variable.
    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