What's the best way to go about programming an auto alert in IB based on price, indicators, etc.? I want to be alerted but not necessarily take the trade automatically I have some programming experience but not sure whether to use their API or something else. I would need to brush up on Java or c#. I have PHP and perl experience so maybe it lends itself to Python or c++? Also, I'm site someone has already coded similar. Are there some resources online to lookup code for IB?
I'm writing this as someone who uses IB with MultiCharts a lot. If starting fresh, I'd evaluate MultiCharts.Net with IB data, and write indicators/alerts in C#.
What kind of alert are you looking for? An audio or visual alert, within TWS? Or an email or SMS alert?
Have you seen the alerts button on the main screen in TWS at the top? If you do not have it right click on the top ribbon and configure.
Visual alert. Easy example though though this is not what I actually want: 20 ma crosses 50 ma and RSI < 20 on stock AMZN and no alert was signalled last hour then display a message on screen. Maybe send an email also
Guess you can just monitor price through the API. Then use Qt to display a simple alert window where the messages are displayed. Not overly complicated. Mailing would require a mail server I think, never tried it.