from pybrokey import BrokeyClient import win32com.client client = BrokeyClient(api_key="YOUR_KEY") client.login() Connect to Amibroker DDE ab = win32com.client.Dispatch("Broker.Application") Stream ticks def on_tick(tick): ab.ActiveDocument.InsertQuote(tick.symbol, tick.price, tick.volume)
While Broker.Y’s native interface is functional for order execution, its charting tools lag far behind what serious technical analysts need. Enter – the gold standard for backtesting, custom indicators, and speed.
Ultimate Guide: How to Feed Live Data from Broker.Y to Amibroker for Pro-Level Charting brokey for amibroker
By combining them, you get with Amibroker’s analysis engine . Method 1: The RTDMan Approach (Recommended for Intraday) RTDMan (Real-Time Data Manager) is a free utility that acts as the middleman between Broker.Y’s Excel RTD feeds and Amibroker.
This post is for educational purposes. Broker.Y does not officially support Amibroker. Always paper trade your setup before going live. Tags: #BrokerY #BrokeY #Amibroker #AFL #AlgoTrading #IndianStockMarket #RTDMan from pybrokey import BrokeyClient import win32com
client.subscribe(["NIFTY", "BANKNIFTY"], on_tick)
Note: This requires basic Python knowledge but gives you full control. Once data is flowing, use these custom AFL formulas (copy-paste into Amibroker). 1. Broker.Y Custom Spread Indicator Shows the spread between NIFTY and BANKNIFTY. Method 1: The RTDMan Approach (Recommended for Intraday)
Nifty = Foreign("NIFTY", "C"); BankNifty = Foreign("BANKNIFTY", "C"); Spread = (BankNifty - Nifty) / Nifty * 100; Plot(Spread, "Spread %", colorYellow, styleLine); PP = (H + L + C) / 3; R1 = 2*PP - L; S1 = 2*PP - H; Plot(PP, "Pivot", colorWhite, 1); Plot(R1, "R1", colorGreen, 1); Plot(S1, "S1", colorRed, 1); 3. Broker.Y Volume Spike Scanner Scan for sudden volume spikes across all watchlist scrips.