Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 1961
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 know if could be possible to code a script that add sell and buy buttons with fixed stop lost and take profit on MT4's charts.
any help or genuineness will be very appreciated.
Yes it is possible!
How should i solve this problem?
I have 100 variables with the name indexed (like buffer_1, buffer_2, buffer_3 etc), and i want to do a "for" cycle on them.
like:
Of course this doesnt work.
I am sure im missing a function like integertostring or i dont know, but i cant make it syntactically right.
I have checked like 100 codes but everyone only indexing arrays :( And i have read i cant put variables into arrays...)
So how should i do it?
Thank you in advance :)Those were just name of the variables, but i guess it wasnt a fortunate choice :) It could be ema_period_1, ema_period_2, etc, or anything like this
I would use a two dimensional array, but it wont let me add variables, as i get "constant expression required" error message.
Basically i just want to run a for cycle on a bunch of indexed variable, and i dont know how to use "i" as a dynamic index.
Like this:
@Laszlo Basso, @Galore Fire
You are not allowed to have more than one MQL5 Community Account.
Please choose one and have the other deleted, by contact the Service Desk with a deletion request, or you could risk being banned on both accounts.
@Laszlo Basso, @Galore Fire
You are not allowed to have more than one MQL5 Community Account.
Please choose one and have the other deleted, by contact the Service Desk with a deletion request, or you could risk being banned on both accounts.
Sorry this was an accident, i will delete my other profile tonight.
About my question, should i create its own thread?
I wrote an expert in MQL 5, which downloads this html page
and parses it.
For debugging i added a lot of print messages like this:
PrintFormat("The file has been successfully downloaded, File size %d byte.",ArraySize(result));
When i started the expert from MetaEditor, the file was downloaded, and the messages were shown in the journal.
I made some changes for linkage to the MetaTrader, and now when i start the expert agan, the file is downloaded, but no more messages are shown.
Does anybody has any idea how i can see again the print messages in the journal again?
The logic is added in the onInit() method.
Now i started the expert again and all i see in the journal are the following messages:
MQL5 debugger starting 'my_fourth_EA.ex5' on history
MQL5 debugger connected
Thanks,
Ivaylo