I am trying to update some old EA code. can someone help (see below)
improper enumerator cannot be used
Are you asking about MQL4 or MQL5?
Are you asking about MQL4 or MQL5?
mql4
Are you asking about MQL4 or MQL5?
-
Why did you post your MT4 question in the MT5 General section instead of the MQL4 section, (bottom of the Root page)?
General rules and best pratices of the Forum. - General - MQL5 programming forum?
Next time, post in the correct place. The moderators will likely move this thread there soon. -
Look at or post the code above that line. That is where your error is.
Your code Documentation double ism0=iStochastic( Symbol(), Open_Red_Blue_TimeFrame, Stochastic_K, Stochastic_D, Stochastic_Slowing, MODE_SMA, PRICE_CLOSE, MODE_MAIN, Open_Red_Blue_Trade_Bar );
double iStochastic( string symbol, // symbol int timeframe, // timeframe int Kperiod, // K line period int Dperiod, // D line period int slowing, // slowing int method, // averaging method int price_field, // price (Low/High or Close/Close) int mode, // line index int shift // shift );
price_field [in] Price field parameter. Can be one of this values: 0 - Low/High or 1 - Close/Close.
The price field is either a zero or a one. It is not a Price Constants
-
Why did you post your MT4 question in the MT5 General section instead of the MQL4 section, (bottom of the Root page)?
General rules and best pratices of the Forum. - General - MQL5 programming forum?
Next time, post in the correct place. The moderators will likely move this thread there soon. -
Look at or post the code above that line. That is where your error is.
Your code Documentation
The price field is either a zero or a one. It is not a Price Constants
thanks William, I will remember next time.
mql4
All questions about the old terminal are discussed in a special section: MQL4 and MetaTrader 4
I will move your topic to this section.
All questions about the old terminal are discussed in a special section: MQL4 and MetaTrader 4
I will move your topic to this section.
thanks
improper enumerator cannot be used