Marian Ioan: I attach here the source code.
Try again.
Try change this ...
input int ii_lots = 1;
To this ...
EDIT: I suggest you invest time and effort into learning to code in MQL if you plan to make more changes in the future.input double ii_lots = 0.01;
Fernando Carreiro #:
This is the first thing I have done. I tried to change the value in line 22 and put 0.01, but it doesn't work. When I attach EA in the chart, I only get the value for LOTS 0. I also attach the source code here as I modified it and a video with the attachment in the chart.Try change this ...
To this ...
EDIT: I suggest you invest time and effort into learning to code in MQL if you plan to make more changes in the future.I have attached here the modified source code and a video to see that it does not work. Where exactly am I wrong? Can anyone change my source code (and test it on an MT4 before it works)? Thanks.
Files:
erorr.jpg
291 kb
Here is also video with EA attached on the chart and you can see the erorr. I can't set 0.01.
Fernando Carreiro #:
Try change this ...
To this ...
EDIT: I suggest you invest time and effort into learning to code in MQL if you plan to make more changes in the future.I got ideea. WORKING! You are the best! thank you, Fernando!
Marian Ioan #: This is the first thing I have done. I tried to change the value in line 22 and put 0.01, but it doesn't work. When I attach EA in the chart, I only get the value for LOTS 0. I also attach the source code here as I modified it and a video with the attachment in the chart. I have attached here the modified source code and a video to see that it does not work. Where exactly am I wrong? Can anyone change my source code (and test it on an MT4 before it works)? Thanks.
You didn't read my post properly. I even highlighted the change between "int" and "double" so you would see. You have to also change the variable's datatype if you want to use a lot size of 0.01
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
Hello to all. I try to change the LOT value in a source code and I can't. It is currently 1.0 and I want to change it to 0.01. I tried to change the source code, and when I saved and entered the EA on the platform, I only get the value 0. I can't change the value, that is, I have a dot (0.01). Can anyone help me please?
I attach here the source code. Thanks.