Download MetaTrader 5
To add comments, please log in or register
What are the latest MQL5.community news? The Wall section will tell you!
Tiffany
10
Tiffany 2014.12.10 20:12 

Hi 

I have been looking everywhere to find an answer to my problem running an EA on a live account.  When I run it on the live account I get the error invalid lots amount for order send function.  I did not write the program and have limited knowledge of code.  I wanted to see if anyone could help.  I have changed the lot sizes to different amounts and nothing seems to work.  Also ran a lotsize script to confirm lots starting at .01.  Since it works on the demo account I assume it is nothing wrong with the code itself. Does anyone have any suggestions?

Thank you  

Carl Schreiber
5927
Carl Schreiber 2014.12.10 20:54  

Well I guess you need to post the code if you want us to help you..

(Please use the SRC-button!)

Tiffany
10
Tiffany 2014.12.11 03:19  
gooly:

Well I guess you need to post the code if you want us to help you..

(Please use the SRC-button!)

Ok posted...So I found that if I turned the money management off, it would work.  However it does not then place the additional buystop pending orders.  Also kept getting then a alert that I must enable all pairs on market watch window.  However, when I right click on market watch and show all, it does not suspend the alert and allow trading...sorry for all the questions, I am just stuck and spent many hours working with it on my own.

 Thanks 

SYED NAUFAL GADDAFI
1401
SYED NAUFAL GADDAFI 2014.12.11 03:55  

I think you need to remove the source code since it is not yours. If you have written it yourself, you should already managed to figure it out. Figuring out someone's code is the usual headache.


Also, try using Print() to see the lot output and figure it from there.

Alain Verleyen
Moderator
28518
Alain Verleyen 2014.12.11 08:55  
tvoss:

Ok posted...So I found that if I turned the money management off, it would work.  However it does not then place the additional buystop pending orders.  Also kept getting then a alert that I must enable all pairs on market watch window.  However, when I right click on market watch and show all, it does not suspend the alert and allow trading...sorry for all the questions, I am just stuck and spent many hours working with it on my own.

 Thanks 

Don't post decompiled code on this forum. I have to remove it.

Don't do it again or you will be banned.

whroeder1
13593
whroeder1 2014.12.11 17:13  

Decompiled code is stolen code. Either you are a thief, a fence, or the receiver of stolen (intellectual) property. Either way we will not be an accomplice after the fact to theft. See also https://www.mql5.com/en/forum/134317

/
To add comments, please log in or register