Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 162
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 write a code in MQL4
...Sorry to disturb your peace. This is the first time I've ever come across this. If I knew how to write code, I would have written it myself. I wanted to create my own EA. All I had to do now was to write the code. I did the rest with Forex EA Generator. I have not found a way to make this small piece by myself.
I will look for it somewhere else.
Guys, let's live together. :)
This is a piece of my TS, where all open trade prices on the BAY side should be summed, divided by the number of trades and added 200 pips. And in the direction of sell subtract 200 pips.
Who may help me write MQL4 code?
X1 - X open trades
Y - number of open trades
The formula should look something like this: X1 + X2 + X3 + X4 + X... / Y+200
For example, if I have 5 open trades in BAI, I should sum them up, divide by 5 and add 200. And 8 open trades in sell should be summed, divided by 8 and subtract 200.
Please send me the code in MQL4.
Thank you very much!
Thank you very much Taras!
You've got such mistakes. I will try to google it.
Google doesn't help me at all. I can't figure out what's wrong withAvgPrice andMagic.
What I understand about this code is that it calculates commissions, swaps, lots. I don't need that at all. :(
Google doesn't help me at all. I can't figure out what's wrong withAvgPrice andMagic.
What I understand about this code is that it calculates commissions, swaps, lots. I don't need that at all. :(
To do this, you need to create a server outside the local computer and transfer data through this server, respectively, for MT you write an indicator or advisor that processes this data, or put the terminals on a VPN server and there you set up a copier of deals from your account to your friends' accounts. Another option is to copy your trades executed on given levels through signals service. In general, we should consider your financial capabilities to order the appropriate software.
Let me remind you of the prehistory. I have an indicator that receives daily data from csv and displays them (horizontal levels) on the chart. I have created a server from a home laptop (weak, but the calculations there are no need and will give the csv, and they are very small). On the server for the test connection poured the usual forum engine - everything seems to be visible from the outside. Help with advice. That should be on the server to read from it indicator csv files? I.e. how does the indicator communicates with the csv database? Maybe fill in the engine fTP server or something else and can for MT need to open some special ports? Or I got into the wrong direction in general? Thanks
Let me remind you of the prehistory. There is an indicator that receives daily data from csv and displays it (horizontal levels) on the chart. Created a server from a home laptop (weak, but the calculations there are not needed and will give csv, and they are very small). On the server for the test connection poured the usual forum engine - everything seems to be visible from the outside. Help with advice. That should be on the server to read from it indicator csv files? I.e. how does the indicator communicates with the csv database? Can fill the engine fTP server or something else and can for MT need to open some special ports? Or I got into the wrong direction in general? Thanks
Dig MySQL.