Gartley EA

 

Hi,

I would like to creates an EA which find Gartley pattern and send order on market with proper stoploss ( X point) and TP (A point).

GartleySearch search the pattern

Gartley EA send the order

My problem is that by using function iCustom () to GartleySearch indicator I can any get to know that Gartley creates on market but I can not get to know what price is point X and A. Because of it I can not check efficiency of this harmonic pattern. I tried to solve this problem by function zigzag but the parameters like depth ,deviation ,backstep are not constant.

I would be grateful for your help.

(sorry for my english) :)

Files:
Reason: