Ok but how can I code somthing like that?:
If high reached -> sell
If low reached -> buy
How can i get the exact values where the lows and highs are?
this kind of thing has been discussed a lot of times have you tried to use the search button or google it
yes i have but i opened this thread to undertand the entire code :))
plz help me
OK, let's get started
lesson no. 1
#property indicator_chart_window // means show the indicator on the chart window & not in a separated window #property indicator_buffers 1 // means that this indicator contains 1 buffer (there is a limitation of 8 buffers) #property indicator_color1 Red // means the color of this indicator is gonna be red (of course u can choose another color)
lesson no. 2: i will notify when it's gonna be..............
lets star at init()
FlashX:
If you want to understand the code then you have to understand it. Take each function one at a time and read the Documentation about it . . if you get stuck ask for help.
yes i have but i opened this thread to undertand the entire code :))
plz help me
RaptorUK:
FlashX:
yes i have but i opened this thread to undertand the entire code :))
plz help me
If you want to understand the code then you have to understand it. Take each function one at a time and read the Documentation about it . . if you get stuck ask for help.
haha, this is the WORST code Ive ever seen in an indi. I rewrote the whole thing in less lines and less complexity. Spaghetti Italiano!
some people should never be let near a compiler!
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi guys I´m a bit new to mql4, but I understand the most basic things in programming.
I want to create my own EA based on the highs and lows a zigzag indicator generates.
Thus I try to write a zigzag code who generates me the highs and lows because later I want to improve my EA constantly, so i don`t wanna copy/paste any zigzag indicator into my code.
I searched for a simple zigzag code and i tried to undertand it but I keep hanging around at this code because i don`t get it.
So, I would be very glad if someone or even more of you guys try to explain me this code by editing the code with some comments (//example) and make clear what or how the code is generating the highs and lows.
Here`s the code:
Thanks everyone who can help me understanding this. :))
Happy trading.
I attached the file that you can add some comments and readd it that i can download it again. Thanks