Can't get user defined inputs to work!
-
I'm trying to write a trade management EA to close open trades at cross of stochastic main/signal line. Input box pops up when EA is initiated but the inputs do not seem to change the function. The current chart seems to override inputs.
Thanks in advance for any help
1_1640111787685_Stochastic close mtf.mq4 0_1640111787684_Stochastic close mtf.ex4
-
@spyderman Do you mean the timeframe in the constants?

If so on MT4 the easiest way is to make the type int, and use the minutes as the value, so 4h is 240. Other wise you can use ENUM_TIMEFRAMES as the type, PERIOD_CURRENT etc as the value.
-
@jstap Yes that was one of them. I'll try that. The stochastic settings also didn't seem to modify.
-
@spyderman int is the type I would use for these.