How do I combine existing indicators into an expert advisor?

 
I'm a newbee: does anyone have an example of using existing indicators, like the Alligator or Fractals?  Suppose I wanted to trade on logic like "the high and low are outside the range of the alligator and this bar represents an up fractal"?  I guess I'dt copy the indicators in as functions, modify them to return values instead of drawing, and then call them, but does anyone have an example?
 
Hi BiilR,

You don't really need to modify indicator itself. You would call iCustom() function and provide your indicator name as one of the parameters.

However, you may run into issues with EA not properly calculating/displaying/printing values. See my post "Please HELP with EA". Also, I suggest you dowload EA1.zip file, it contains MyInd.mq4 (indicator) and MyIndTest.mq4 (EA) - they are very simple and will give you an idea where to start.

firelake