Rajandran R Creator of OpenAlgo - OpenSource Algo Trading framework for Indian Traders. Telecom Engineer turned Full-time Derivative Trader. Mostly Trading Nifty, Banknifty, High Liquid Stock Derivatives. Trading the Markets Since 2006 onwards. Using Market Profile and Orderflow for more than a decade. Designed and published 100+ open source trading systems on various trading tools. Strongly believe that market understanding and robust trading frameworks are the key to the trading success. Building Algo Platforms, Writing about Markets, Trading System Design, Market Sentiment, Trading Softwares & Trading Nuances since 2007 onwards. Author of Marketcalls.in

Text to Speech Based Buy or Sell Alert in Amibroker

28 sec read

Many must be aware that Amibroker Supports sound alerts i.e it can play audio wave formats when you need an alert in your trading system especially during Buy/Sell Trading conditions. But most of us miss the point that it supports female voice alerts too. Amibroker’s internal engine supports text to speech functionality using say() function in AFL. Here is a sample code which produces text to speech based Buy or Sell Alerts.
[wp_ad_camp_5]

 
In the following sample AFL code, Alert is produced when there is a MACD crossover with the signal line. Try it out!

Example for Voice Alerts in Amibroker

Buy = Cross( MACD(), Signal() );
Sell = Cross( Signal(), MACD() );
Short = Sell;
Cover = Buy;
if (SelectedValue(Buy)==1) Say(“Buy Signal at”+C);
if (SelectedValue(Sell)==1) Say(“Sell Signal at”+C);

Rajandran R Creator of OpenAlgo - OpenSource Algo Trading framework for Indian Traders. Telecom Engineer turned Full-time Derivative Trader. Mostly Trading Nifty, Banknifty, High Liquid Stock Derivatives. Trading the Markets Since 2006 onwards. Using Market Profile and Orderflow for more than a decade. Designed and published 100+ open source trading systems on various trading tools. Strongly believe that market understanding and robust trading frameworks are the key to the trading success. Building Algo Platforms, Writing about Markets, Trading System Design, Market Sentiment, Trading Softwares & Trading Nuances since 2007 onwards. Author of Marketcalls.in

Interactive Brokers – Smart Order Chart Trading Module using…

The IB Controller is an interface designed to facilitate automatic trading with AmiBroker and Interactive Brokers (IB) TWS (Trader Workstation). It serves as a...
Rajandran R
8 min read

Introducing OpenAlgo V1.0: The Ultimate Open-Source Algorithmic Trading Framework…

OpenAlgo V1.0 is an open-source algorithmic trading platform to automate your trading strategies using Amibroker, Tradingview, Metatrader, Python etc. Designed with the modern trader...
Rajandran R
2 min read

[Live Coding Webinar] Build Your First Trading Bridge for…

In this course, you will be learning to build your own trading bridge using Python. This 60-minute session is perfect for traders, Python enthusiasts,...
Rajandran R
1 min read

11 Replies to “Text to Speech Based Buy or Sell Alert in…”

  1. Sir u r giving v nice afl but if u hv developed like giving sounds and alerts it would be v nice pls do for all Amibroker Lovers and if possible suggest which time frame is best to use Super Trend
    9949082820

  2. Sir good work.. i want code for this thing, ..i am just trying to find out the output for that so please please help me sir to resolve this…please can u mail me code for the following task to my email id ([email protected])

    This is my requirement

    strategy:
    1.buy signal when MACD crosses signal line upword.
    2.sell signal when MACD crosses sinal line downword.

    filters:
    1.ignore first intraday bar or any buy/sell signal, as well as for any calculation it is,
    (H-L)>=X%

    2.when buy trade is triggered and sell signal has not appeared, square off buy trade when price crosses Y% below current days ‘L’ and vice versa..

    Price rule:
    Buy above X% of ‘H’ of buy signal and
    sell above X% of ‘L’ of sell signal…

  3. Rajan Sir

    I want an AFL code to give me an alert when I define the price crossing any levels for a basket of scrips .
    Only price crossing alerts.

  4. how to programme amibroker to identify buy or sell signal for any script which r in buy or sell in number of script

  5. I want this voice alert once after the candle is over. How can we do that?

  6. Buy= C>((DayC)+((.236)*(ADM)));
    Sell= C<((DayC)-((.236)*(ADM)));

    sir in this formula how to add say ?????

  7. if (Buy[BarCount-2]==True)Say(“Buy signal “);
    if (Buy[BarCount-1]==True)Say(“Buy signal “);
    if (sell[BarCount-2]==True)Say(“sell signal “);
    if (sell[BarCount-1]==True)Say(“sell signal “);

  8. I want to set up a scanner which give me buy & sell signal automatically with “voice alert by mentioning the script name”& “text-window pop up with script name & price”…….for example :text-window=> “BUY INFY @965” or “SELL INFY@970” and voice alert will be exact match of “TEXT-WINDOW” pop up………anyone can help me out regarding this……….I will be thankful to him/her……

Leave a Reply

Get Notifications, Alerts on Market Updates, Trading Tools, Automation & More