View Single Post
  #1 (permalink)  
Old 08-23-2006, 11:49 AM
cubesteak's Avatar
cubesteak cubesteak is offline
Senior Member
 
Join Date: Jul 2006
Location: Southern California
Posts: 160
cubesteak is on a distinguished road
Lightbulb Code for you: array search helpers

Hey y'all.

Been programming recently, and was frustrated at how limiting and silly array searches are in MT4.

So, I wrote some new ones. One for searching a single dim array, and one for searching a 2 dimensional array.

I think they're kinda neat - maybe you will too.

Also, in the file are 2 array "printing" functions for use during development or for EA comments, etc. Again, one for 1 dim array and 1 for 2 dim array.

Basically they just print out a string representation of the arrays to the Experts tab of the Terminal.

More info here:

http://www.cubesteak.net/2006/08/mor...tions-for-mt4/

The library file can be found here:

http://www.cubesteak.net/downloads/CSArrayFunctions.zip


To use this file, you'd simply:

Code:
#include <CSArrayFunctions.mq4>
in whatever file you'd like to use them from.

I'd love to hear how this could be improved, how you like or dislike it, etc...

Comments? Criticism? Witty sayings?


Last edited by cubesteak; 08-23-2006 at 12:08 PM.
Reply With Quote