I hope this is something easy, but for some reason, it escapes me. 
What I want to do is have a moving average on the chart but based on the following values from Heiken Ashi:
High,Low,Open,Close
Just like a regular moving average would be, but w/ Heiken Ashi as the source of the candles.
Moving average period should be adjustable, but 5 would be a good start.
Anyone can help, I'd appreciate it!
Here's how I find high and low off of Heiken Ashi:
What I want to do is have a moving average on the chart but based on the following values from Heiken Ashi:
High,Low,Open,Close
Just like a regular moving average would be, but w/ Heiken Ashi as the source of the candles.
Moving average period should be adjustable, but 5 would be a good start.
Anyone can help, I'd appreciate it!
Here's how I find high and low off of Heiken Ashi:
Inserted Code
ha1=iCustom(NULL,0,"Heiken Ashi",0,i);
ha2=iCustom(NULL,0,"Heiken Ashi",1,i);
if (ha1>ha2)
{
haHigh=ha1;
haLow=ha2;
}
if (ha1<ha2)
{
haHigh=ha2;
haLow=ha1;
}