They all have been really helpful. That's why im making this new post about MACD indicator. I want to add it as a confluence for my strategy. The thing is I don't really know how to access to the elements that are part of the MACD indicator (the lines that cross). I mean, I dont know what to call them on my conditions statements.
For what I see when I configure the MACD, the lines that cross are the MACD line (fast ema of 12 period) and the Avg line (the slow sma of 26 period) PD: I dont know what the smooth 9period is for.
Anyways.
Let me elaborate with this following example:
//Set 1
if (fast 12 period crosses above slow 26 period && the cross occurs above the zero line (so-called base line)
{
BUY
}
//Set 2
if (fast 12 period crosses below slow 26 period && the cross occurs below the zero line (so-called base line)
{
SELL
}
What are the names I need to write on my condition statement to reference these MACD elements? For the fast, slow and zero line.
And actually, Id be perfect to know how to reference the other levels that surround the zero line... for instance:
if (fast 12 period crosses above slow 26 period && the cross occurs above -1.5 and below 1.5) //-1.5 and 1.5 are the values that are around the zero line.
{
BUY
}
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
1.50 //the cross must occur below this level
0 (zero line) //ideal zone
-1.50 ////the cross must occur above this level
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Thank you in advance.
Comment