tanim: i need to call a function with an array.
what i did was, Function_1(ARRAY_1[i]);but it doesnt seems to work.
- I didn't even get that far. If ARRAY_1 is a int array then ARRAY_1[i] is an int and "what i did was" Function_1(anInt)
Global Declearation. int Free_Magic[4]; int Magic[8]; int Standby_Magic; int Hedged_Magic[4]; initialization. Magic[0]=123000; Magic[1]=234000; Magic[2]=345000; Magic[3]=456000; Magic[4]=500000; Magic[5]=600000; Magic[6]=700000; Magic[7]=800000; start()
Don't post code what won't even compile.- Initializing arrays with constants is easy:
// Global Declearation. int Free_Magic[4]; int Magic[8]={123000, 234000, 345000, 456000, 500000, 600000, 700000, 800000}; int Standby_Magic; int Hedged_Magic[4]; start(){
- learn to code it, or pay someone. We're not going to code it FOR you. We are willing to HELP you when you post your attempt (using SRC) and the nature of your problem.
Don't double post. You should have continued here.
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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 advice.