I have a fundamental question of how to ensure my alerts are coming thru email - should i be using scan or explore after i code the alerts program as below: (I wanted this Alerts program to scan the symbols in my watch list and also assuming i can use "QSI#" for the name of the silver futures current rolled contract??)
Blockquote// Alerts for the price values
//Consolidated Break Stops
Buy = Cross(C, 14.7) AND Name()=="QSI#";
AlertIf( Buy, "EMAIL", "Consolidation Break for QSI trade- move the stop", 4 );
Buy = Cross(C, 1225) AND Name()=="QGC#";
AlertIf( Buy, "EMAIL", "Consolidation Break for QGC trade- move the stop", 4 );
Not sure if this is right question for the right category....i think this is a fundamental question:
"Once i write the program and save it (code above) - how do i actually execute it so i can get my alerts on my phone/email when the price levels are reached for a certain symbol as explained/instructed in the code?"
Looking at the screenshot, and specifically your AFL, it will work but technically the whole purpose of Scan/Exploration is to the run the same AFL on all symbols filtered.
You don't need to code a specific condition for each symbol unless you have specific bits for each one.
Instead, go to the Filter Section, add symbols by Markets / Watchlists etc, you can even include or exclude them,
the AA is a very versatile part of AB and you can unleash its true potential if set up correctly.
Do the alerts come when my Amibroker is running and my PC is in sleep mode?
Also, is it possible to have alerts sent to 2 email ids? Right now, i am getting this sent to tmobile email msg and my phone receives it as text message and sometimes this tmobile is down and this doesnt work - so would like to have an alternative
Sleep is a state when processor IS NOT accessible to the end-user application (unless application forces system NOT to enter sleep - but that is big no-no for battery life). The application in Sleep state is NOT running, it is completely FROZEN, therefore application can NOT do anything.
Computer must be powered ON and NOT sleeping for application to do anything.
If you want to send an email, you could just use SendEmail() but the problem is you would have to rewrite all the Logic to prevent repetitive signals and that will be tough.
I haven't tested it but if you can get around using a different TYPE, you maybe able to define two AlertIf, each with two email IDs but I don't know the consequence of the code going wrong.
Bcos with two AlertIf functions, they can easily go into an infinite loop each resetting the other like a Flip-Flop.