Thread: Arrays in MQL4
View Single Post
 
Old 08-11-2008, 02:16 AM
Ronald Raygun Ronald Raygun is offline
Member
 
Join Date: Sep 2007
Posts: 69
Ronald Raygun is on a distinguished road
Working with Arrays

Here's what I'm trying to create:


I'm trying to create some sort of "price density" indicator. Which measures how many times in a given set of bars a specific price is reached. The bar rankings are associated with a specific color so that I would have a field of color helping me visualize a set of support and resistance lines, sort of like what you see attached.

The color is based on how many bars go through that line.

I realize that I would need some sort of two dimensional array to accomplish this. How do I go about putting together that array?
Attached Images
File Type: gif price density.gif (7.1 KB, 105 views)