View Single Post
  #2 (permalink)  
Old 10-30-2006, 07:25 PM
raff1410's Avatar
raff1410 raff1410 is offline
Senior Member
 
Join Date: May 2006
Location: 24°10' E 54°24' N
Posts: 201
raff1410 is on a distinguished road
Try to find and modify all "OrderSend" functions in EA... Add "Lots" variable...

OrderSend(Symbol(),OP_BUY,Lots,Ask,3,Ask-25*Point,Ask+25*Point,"My order #2",16384,0,Green);

Quote:
Originally Posted by Diam0nd
To start off, I am a beginner MQL programmer. Now, here goes a beginner question.

I have a variable defined in my EA:
Code:
extern double Lots = 0.1;
However, when the EA trades, it uses 1.0 lots, even though the 0.1 is set under variable above. Could anyone please be so kind to explain me how do I make sure that EA uses the lot size I set in the variable? Is there any special code I need to add to my expert?



Thanks in advance,
Diam0nd.
__________________
http://www.gummy-stuff.org/raff-regression.htm

http://www.try-your-luck.com/

Lost in action ;-)... just_raff1410[at]yahoo.com
Reply With Quote