Announcement

Collapse
No announcement yet.

Using MACD with multiple timeframes

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

  • Using MACD with multiple timeframes

    Within the same EFS, does anyone know how to write and EFS that will allow me to check if MACD is either turning up or down over two different timeframes

    e.g. The EFS will be attached to a 5 minute chart.

    I would like to have an alert that tells me when the 5 minute EFS turns up and at the same time check that the 20 minute MACD is also turning up.

    I know that you can you the inv varable with stochastics but, I don't think you can use it with MACD ??

    e.g. var vStK5_1 = stochK(14 ,3 ,3, inv(5), -1);

    This example sets the interval at 5 minutes using inv(5).

    Royce

  • #2
    Re: Using MACD with multiple timeframes

    Originally posted by Royce
    Within the same EFS, does anyone know how to write and EFS that will allow me to check if MACD is either turning up or down over two different timeframes

    e.g. The EFS will be attached to a 5 minute chart.

    I would like to have an alert that tells me when the 5 minute EFS turns up and at the same time check that the 20 minute MACD is also turning up.

    I know that you can you the inv varable with stochastics but, I don't think you can use it with MACD ??

    e.g. var vStK5_1 = stochK(14 ,3 ,3, inv(5), -1);

    This example sets the interval at 5 minutes using inv(5).

    Royce
    Hey Royce,

    The syntax for all the EFS2 functions which support external symbols and intervals is the same. You can pass the inv parameter to the macd, macdsignal, and macdHist functions.

    If you look in the esignal/formulas/EFS 2 Custom folder there is an example of using these functions in customMACD.efs.

    You may want to try some searchs as there are some example MACD, alert generating studies in fileshares and elsewhere which
    may be helpful.

    Glen
    Glen Demarco
    [email protected]

    Comment

    Working...
    X