Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 1959
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
Please help me solve the problem
Please search for other related posts besides the ones below.
----------------------------------
string buyorder()
{
if((iMA(Symbol(),PERIOD_CURRENT,200,0,MODE_SMA,PRICE_MEDIAN,1)-(10*Point))<=iLow(Symbol(),0,1)&&
(iMA(Symbol(),PERIOD_CURRENT,200,0,MODE_SMA,PRICE_MEDIAN,1)+(10*Point))>=iLow(Symbol(),0,1)&&
(((iMA(Symbol(),PERIOD_CURRENT,200,0,MODE_SMA,PRICE_MEDIAN,2)-(10*Point))<=iLow(Symbol(),0,2)&&
(iMA(Symbol(),PERIOD_CURRENT,200,0,MODE_SMA,PRICE_MEDIAN,2)+(10*Point))>=iLow(Symbol(),0,2))
||iLow(Symbol(),0,2)>=iMA(Symbol(),PERIOD_CURRENT,200,0,MODE_SMA,PRICE_MEDIAN,2)))
return("Please_Buy");
}
Please edit your (original) post and use the CODE button (or Alt+S)! (For large amounts of code, attach it.)
General rules and best pratices of the Forum. - General - MQL5 programming forum #25 (2019)
Forum rules and recommendations - General - MQL5 programming forum (2023)
Messages Editor
Example
string test="5+7";
i want the result be 12 in integer
how can i sum two integers that in same string ?
Example
string test="5+7";
i want the result be 12 in integer
operator