Please help me modify this EA

 

EA will not be OP when setting lots smaller than 0.05

original settings

extern double Lots = 0.10;
extern double StopLoss = 100;
extern double TakeProfit = 10.00;
extern double TrailingStop = 5.00;

Values ​​lot changed, but EA is not the OP

extern double Lots = 0.01;
extern double StopLoss = 100;
extern double TakeProfit = 10.00;
extern double TrailingStop = 5.00;


 
Please use this to post code . . . it makes it easier to read.

What is the value of MODE_MINLOT and MODE_LOTSTEP for the instrument you are trying to trade ?

 
RaptorUK:
Please use this to post code . . . it makes it easier to read.

What is the value of MODE_MINLOT and MODE_LOTSTEP for the instrument you are trying to trade ?


I've tried but it appears the message text is too long
 
RaptorUK:

What is the value of MODE_MINLOT and MODE_LOTSTEP for the instrument you are trying to trade ?

 
RaptorUK:


MODE_MINLOT: 0.01
MODE_LOTSTEP: double (if the first OP 0.01 - then the second OP 0:02 and so on).
I use the EA on pair EUR / USD
Does that mean your question?
 
maskatar:

Does that mean your question?

It answers it yes . . . what do you have mm set to ?
 
RaptorUK:
It answers it yes . . . what do you have mm set to ?

To mm I follow the standard rules ea, with a value of 0 or no setting - but I set the maximum OP with 5
Reason: