Try this:
CODE:
Please log in to see this code.
Don't forget that you can search the forums by using our cool search-as-you-type feature (examples:
#1,
#2). Also, you could find some ready-made Heikin Ashi code in the QuickRef, Bars object >
SaveToFile. On a related note,
Heikin Ashi chart style exists in
Community ChartStyles.