![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
It won't work for various reasons.
As you don't want to take notice of my advice, I'll leave it at that.
HELLO SIR
THE FUNCTION IS TESTED TODAY AND IT WORKED LIKE CHARM
Please don't post in capital letters, it is considered shouting and very rude!
I am surprised that it is working like a charm as I don't see that it will even compile.
The highlighted are not strings
Please don't post in capital letters, it is considered shouting and very rude!
I am surprised that it is working like a charm as I don't see that it will even compile.
The highlighted are not strings
it compiled and it worked, you know I split the symbols in the BuySymbols variable to BuySymbolsArray[] and used a for loop to loop over all the index of the BuySymbolsArray[] (same for sell) to check if they is signal in each symbol, if true then EA place trade on the Symbol.
But I don't know why it keep trading on the current chart symbol that the EA is added, even the chart symbol is not in the symbolsArray .
Can you please connect to my computer via anydesk to check why it place trade on the current chart?
it compiled and it worked, you know I split the symbols in the BuySymbols variable to BuySymbolsArray[] and used a for loop to loop over all the index of the BuySymbolsArray[] (same for sell) to check if they is signal in each symbol, if true then EA place trade on the Symbol.
But I don't know why it keep trading on the current chart symbol that the EA is added, even the chart symbol is not in the symbolsArray .
Can you please connect to my computer via anydesk to check why it place trade on the current chart?
First of all you shout at me, gloating that your code works like a charm.
Now you say that the code doesn't do what you want it to do, so it is not working like a charm, is it?
I don't believe that your code compiles.
These are not strings.
I suggested that you write a function to begin with.
but you have ignored me.
The main thing with the function is to calculate all the values that you use in the OrderSend(). At the moment all the parameters seem to be Globalscope variables and that can't be right. The values should be calculated according to which symbol is being traded.
First of all you shout at me, gloating that your code works like a charm.
Now you say that the code doesn't do what you want it to do, so it is not working like a charm, is it?
I don't believe that your code compiles.
These are not strings.
I suggested that you write a function to begin with.
but you have ignored me.
The main thing with the function is to calculate all the values that you use in the OrderSend(). At the moment all the parameters seem to be Globalscope variables and that can't be right. The values should be calculated according to which symbol is being traded.
Hello sir I didn't shout at you sir, my caplock was on and I discovered it when i already type and ready to send.
so sorry for that sir
First of all you shout at me, gloating that your code works like a charm.
Now you say that the code doesn't do what you want it to do, so it is not working like a charm, is it?
I don't believe that your code compiles.
These are not strings.
I suggested that you write a function to begin with.
but you have ignored me.
The main thing with the function is to calculate all the values that you use in the OrderSend(). At the moment all the parameters seem to be Globalscope variables and that can't be right. The values should be calculated according to which symbol is being traded.
I made a mistake here when I type the code here__ correct is "USDJPY,USDCAD" etc
Sir check the code and the picture, am doing exactly what you said I should do but it require me to code in this way because I don't select any symbols in the input rather EA select by itself and when new symbols are selected the previous ones in the variable will be replaced by the new once
Look at the picture and the code you will see that all data is calculated in each symbols during each loop. But I don't still know why it place trade on the current symbols of the chart even the symbol is not in the list of the symbols variable!
I made a mistake here when I type the code here__ correct is "USDJPY,USDCAD" etc
Why would you type the code here?
Just copy and paste it.
Why would you type the code here?
Just copy and paste it.
So sorry, I typed because I wanted to use a variable name that any reader will understand