EA does not recognize Demo account
-
hello
i want to check if the account is Demo or Real
if it is Demo EA can run
it it is not Demo an Error will display on screen as Alert
it seems straight forward but not working
my account is Demo so EA should work but when i run EA it Alerts that you are in Real account and EA will be terminated as it is in the Blocks but my account is Demo so it should goes trough Orange output and not Yellow
is there anything that i miss here? -
@aliso Your logic looks correct. Is that the whole EA or just part of it?
-
it really does not matter
imagine i just want to comment a Text if we are in Demo account and comment another Text when we are in Real account
and now it is not working because it goes straight to the Yellow input which means we are in Real account but we are not
you can have an alerts on each side but it is not working
have you ever tried this Block? is it working correctly for you? -
plz look at this
https://fxdreema.com/shared/J7w5W498ei ran this EA on a Demo account
and picture below is the result
as you can see we are in a demo account but the Alert says we are in Real account which is incorrect
-
@aliso You can easily answer these questions yourself, draw text from orange, dray oppoaite text from yellow, using the same block name with redaw but not evert bar.
-
@jstap
that is what i did
and it is not working
the block "If Demo Account" activated the second input (yellow) instead of first input
i dont know if the problem is with Block or there is another problem -
@aliso Ok so make sure you have the same named block working from each output, then test on another acount that's diffrant, if still not doing as expected contact admin to sort.
-
@aliso it works for me

-
the problem solved
it was Broker issues and in other brokers EA works fine
in that specific broker i handled it with condition block and checking server name