| New signals service! | |
|
|||||||
| Register in Forex TSD! | |
|
Trading Systems Leaders in this forum (automated trading systems) are winning more than 3000 pips in a month (30000$ investing one lot every time). Click here to register and get more information |
|
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
How would I go about getting data from the default custom indicator "ZigZag" in my expert advisor? I know how to use the iCustom function, but don't know what to use for the last 3 variables.
Any help would be greatly appreciated. |
|
|||
|
Quote:
I have gotten my expert advisor to output data from the indicator, but am having trouble making sense of it. It usually outputs 0 for both upper and lower, but sometimes it displays a value (i.e. 1.3423) for the upper and occasionaly the lower. When does it output data? What is the diffrence beetween upper and lower? |
|
|||
|
Hi,
I want to code an EA based on the Zigzag indicator. So if I want to know the last high or the last low, then I can simply create a loop, increasing the shift, and stop as soon as I get a value? Is that right? What do the ZigzagBuffer, HighMapBuffer and LowMapBuffer contain? in the example above, mode should be 1 and 2 instead of 0 and 1 for the mode, no? cheers, Daniel Last edited by dvarrin; 07-18-2007 at 02:32 PM. |
|
|||
|
Please somebody who knows the code for it, simply post the code for the usage of ZigZag to find last 6 values of ZigZag custom indicator. I think it will be interesting to many. 6 because we ignore the last value (it is being redrawn) and need 2 last highs and 2 last lows. 6-th value just in case.
__________________
MQL4 programming is easy ^^ |
|
|||
|
zigzag
Quote:
double zag, zig; i=0; while(n<2) { if(zig>0) zag=zig; zig=iCustom(NULL, 0, "ZigZag", 0, i); if(zig>0) n+=1; i++; }now you have two numbers zig -- last value and zag -- value before that if(zag>zig) indicator shows down if(zig>zag) indicator shows up |
|
||||
|
Zig-zag Ea
Hey There,
I to am trying to find someone to help me build an EA with a non-lagging zig-zag indicator & a zig-zag pointer. I have been using them manually with pretty good results. The can be used on short term charts but are way better on 4 hour or higher. I can show you how its works if you are interested. Any reply would be greatly appreciated. Bear- |
|
||||
|
Quote:
I`ve been always a fan of Zig Zag indicators can you pls share Non lagging Zig Zag indicator. Thx.
__________________
[img=http://onix-trade.net/ext/userbar/4402.png] |
![]() |
| Bookmarks |
| Tags |
| zigzag, ZigZag Pointer, zigzag forex |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Zigzag indicators | newdigital | Indicators - Metatrader 4 | 139 | 07-08-2008 11:45 PM |
| DT-Zigzag EA | pitch67 | Suggestions for Trading Systems | 16 | 03-20-2008 02:14 PM |
| Zigzag | newdigital | General Discussion | 51 | 03-06-2008 10:21 AM |
| ZigZag EA | SeeCube | Metatrader 4 | 2 | 01-26-2007 11:36 AM |