Indices

sushiparlour

Junior member
Messages
18
Likes
0
Hey Everyone,

I've recently picked up how to write EAs and tried to write my own basic one, however I was intending to use it to look at indices such as FTSE100 and S&P500 and got the error code: ordersend error 131

I googled it up and found out about it, so ran the following code on FTSE100:
Print(MarketInfo(Symbol(),MODE_LOTSIZE));
Print(MarketInfo(Symbol(),MODE_MINLOT));
Print(MarketInfo(Symbol(),MODE_LOTSTEP));
Print(MarketInfo(Symbol(),MODE_MAXLOT));

where i got:
Lotsize= 0
Minlot= 0
Lotstep = 0
Maxlot = 100000

Does this mean I can't run an EA on Indices since the lotsize is 0?


Thanks for the help, really appreciate it as I'm quite stumped.

Regards,

SP
 
Top