To Get Buy/sell signal alert from Amibroker using PI bridge.I have done the beow steps,
1.Requested PI bridge and it is enabled.
2.Installed amibroker and strategy is ready.My strategy is giving buy and sell signals as shown below
3.installed PI bridge.
4.Changed 2 way Semiauto option.Now PI bridge icon in PI tool status is green color so i confirmed that connecivity between amibroker and PI bridge.
5.Below AFL code I have added in amibroker.
_SECTION_BEGIN(“Treasure Trading system”);
/////Treasure Trading System //////////
brd = CreateStaticObject(“pibridge.Bridge”);
brd.PlaceOrder(“NFO”, “NIFTY17AUGFUT”, “NIFTY”,“STRATEGY-S”, 1,1, 1, 7700.25, 0, “L”, “NRML”, “RB0799”,“DAY”);
brd.PauseCode(60); //Pause the code for 60 seconds
My problem is I am getting alerts every 0 sec from amibroker to PI generated alerts. I dont want want this one.I want alert whenever buy or sell signal generated.Could you please tell me what mistake i did here …Any coding mistake or some other mistake.