lep:
I want to do something very simple for example:
buy 0.1 lot EUR/USD if (EUR/USD > 1.40 AND EUR/GBP > 0.89)
All articles are too much complicated I can't find a sample code which is as simple as what I just want.
if (iClose("EURUSD",0,0)>1.4 && iClose("EURGBP",0,0)>0.89)
{
Buy Something
}
double iClose( | string symbol, int timeframe, int shift) |
For the current chart, the information about close prices is in the predefined array named Close[].

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
I want to do something very simple for example:
buy 0.1 lot EUR/USD if (EUR/USD > 1.40 AND EUR/GBP > 0.89)
All articles are too much complicated I can't find a sample code which is as simple as what I just want.