Error No Money when EA wants to sell

 

hi guys,

i get this error message in testing my EA:

not enough money [instant sell 0.08 ETHUSD_i at 1246.63]

failed instant sell 0.08 ETHUSD_i at 1246.63 [No money]


and also:

failed instant buy 0.2 ETHUSD_i at 503.10 [Volume limit reached]


how is it possible that when it want to sell it checks for money?

and check for volume when it want to buy?

thank u

 
k_doroodgar: i get this error message in testing my EA: not enough money [instant sell 0.08 ETHUSD_i at 1246.63] failed instant sell 0.08 ETHUSD_i at 1246.63 [No money] and also: failed instant buy 0.2 ETHUSD_i at 503.10 [Volume limit reached] how is it possible that when it want to sell it checks for money? and check for volume when it want to buy?

It always checks for money, but the conditions may be different. You have to consider your leverage and free margin, as well as what other trade volume you already have open and what maximum volume is allowed by the contract specification.

You should also consider the risk based on what your loss will be if it reaches your stop-loss, so that you don't get a margin call or stop-out.

Reason: