Forum

how to get custom indicator value with EA

hello all, I have a custom indicator I want to make an EA with, it has 2 lines, I want to buy when one is above the other and vice versa, however I do not want to have to have the indicator go along with the ea, ie. if I give the ea away I don't want to have to give away indicator as well so I want

MQL4 coding question, how to find nearest MA value

Hello guys, newbie coder here, just finished my first course and only been at this for a month, anyways. I am currently trying to automate my strategy and in order to do so I need to find the nearest moving average that is greater than bid and then again to find the nearest MA that is below bid. and