How to make utility for mobile notification ?
-
Hello, Can any expert developer help me to find a solution for special case that few broker disable trading during certain high/medium impact news time.
So how to make mobile notification alert for such situations. -
@forexbob-0 Don't know, don't even know if you can, maybe choose a broker that doesn't.
-
SymbolInfoInteger("EURUSD", SYMBOL_TRADE_MODE)
^ This function returns one of the following enumerations:

-
Regarding calendar and news...sometimes its easier to program outside of the program...meaning, be the human aspect, and bare responsibility to your EA's and not try to automate every single aspect just because you may or not be able to.
Its easy to get onto Forex Factory and create a calendar on your personal google calendar and every day prior to high impact news...or whatever time you want to make it before the event...you can manually pause or turn things off.
Something I have to keep reminding myself on, focus more on profitability and trading accurate instead of wasting hours and days dealing with new ideas and concepts that are 'nice to have' -
@tipsywisdom Thank you for your valuable suggestion.
-
@roar Thank you
-
@jstap Yes it need to be
-
@roar can you please share an example for this, I will highly appreciate
-
@forexbob-0 here https://fxdreema.com/shared/3dXrtxaad
-
@roar Thank you a ton, if I want to send alert when trading mode disabled then should I need another block or can be done in same block using
else
SymbolInfoInteger(Symbol(), SYMBOL_TRADE_MODE) != SYMBOL_TRADE_MODE_DISABLEDand phone notification for trading disable block under yellow point.
-
@forexbob-0 if you want to check specifically if trading is disabled (not close-only, not short-only, not long-only), do this:
SymbolInfoInteger(Symbol(), SYMBOL_TRADE_MODE) == SYMBOL_TRADE_MODE_DISABLED
-
@roar And how to limit it, as if trading get enabled, it gives alert once only, after that a new alert popup only when trading get disabled.
-
Save the last value in a variable, and notify only when new value is different than last value. Then save again.