Skip to main content
All CollectionsCode examples
I want to make an app that alerts when the 50 MA crosses the 200 MA. Can I do that with your api?
I want to make an app that alerts when the 50 MA crosses the 200 MA. Can I do that with your api?

How to make an alert when an indicator value crosses a different indicator value?

Updated over a month ago

Yes, this is exactly what TAAPI.IO is great for. It's really simple to make an app doing exactly this type of thing. Attached please find an example of a bulk query you might use for this. You can run this type of query periodically (once every hour, minute or a few seconds if you like...) and just track the results for the different moving averages (you can add more than 2 and also add other indicators). Then you just need to code your own login on what you want to happen when the crossover in the values happens ;)

POST the following JSON (don't forget to paste in your API key) to https://api.taapi.io/bulk

Did this answer your question?