I have been looking all over for some info on programming mt4 but I have not found what I am looking for. Basically, I want my EA to do this:
When indicator goes from below # to above # buy.
When indicator goes from above # to below # close the previous buy.
When indicator goes from above -# to below -# sell.
When indicator goes from below -# to above -# close the previous sell.
I am not asking anybody to do this for me, but I have not found anything on the web that explicitly says how to do stuff like this. My indicator is a custom indicator also, I don't know if that changes anything.
Also, what is supposed to go in the init and deinit in the EA?
I appreciate any advice or bits of code or anything.
Thanks,
andersenws
When indicator goes from below # to above # buy.
When indicator goes from above # to below # close the previous buy.
When indicator goes from above -# to below -# sell.
When indicator goes from below -# to above -# close the previous sell.
I am not asking anybody to do this for me, but I have not found anything on the web that explicitly says how to do stuff like this. My indicator is a custom indicator also, I don't know if that changes anything.
Also, what is supposed to go in the init and deinit in the EA?
I appreciate any advice or bits of code or anything.
Thanks,
andersenws
"Youth is the trustee of prosperity." - Benjamin Disraeli