Hi
Im a newbie on Amibroker and I downloaded the MACD Divergence indicator
by Paul Moore (and dont know if this is the best one, anyone that of a
better one - let me know :). The formula is quite long and it refers to
function that I cannot access, for instance under Negative MACD
Histogram divergence this formula is written:
//------------------------------------
// Negative MACD Histogram divergences
//------------------------------------
// Get arrays containing for each element, when the MACD-H highest
values
// occur, within the specified number of bars
HistHighBars = HHVBars( HistInd, MACDDivMinWidth );
// Get array defining if the MACD-H previous bar was the maximum,
// AND if that MACD-H value was < 0 OR > 0
HistMaxCond = HistHighBars > 0
AND BarsSincePosCross >= HistHighBars
AND Ref(HistHighBars,-1) == 0
AND Ref(HistInd,-1) > 0
;
// Get array containing MACD-H high bar values where highs
// occured, all other bars filled with 0
HistHighVal = IIf( HistMaxCond, Ref(HistInd,-1), 0);
Now how can I use the described functions? I dont see them in the chart
ive plotted (daily OMX30, a swedish index) and I cannot set any
parameters to them under "parameters"... Like I said (and you probaly
understand, Im new to amibroker but I like it so far, please help me
out!
Best regards Carl Carlsson