Following EA gives an error when calculating the lot size, "has to be an integer".
What is wrong with it?
What is wrong with it?
Attached File(s)
Tradesignal trial.mq4
7 KB
|
239 downloads
required to function call function 2 replies
stop loss function and edit time function for Breakout EA 1 reply
MT4 external exec call function ? 5 replies
Need Expert Help on Time Function 4 replies
View internal function code 2 replies
Dislikedhey pippin..... i'm not getting any errors..... it places trades correctly in my ibfx mini.... they allow fractional lots....
had to comment out the FI indicator, don't have it..... but that would not effect the lots.......
unless it's a broker specific issue, such as no fractional lots, not sure..... your code works perfect for me.....hIgnored
DislikedHi,
you make a typo. change this
double FI= iCustom(NULL,"FI", 13,0,0);
you forgot to include "TimeFrame" field.
it should be
double FI= iCustom(NULL,0,"FI", 13,0,0);
and it doesn't relate to your lot calculation, altough you should use a more reliable formula. the lot calc you used, assume that lot step = 0.1Ignored