Comment on Pi Bridge for Amibroker

kirrick commented on 28 Feb 2015, 05:49 AM

During non market hours does PI Bridge work ( For testing purpose). Its not turning Green when I fire the code from Amibroker.

I am using the following code:

brd=Null;
if(IsNull(brd))
{
brd = CreateStaticObject(“pibridge.Bridge”);
}

if(!brd.GetConnectionStatus()) brd.Reconnect();

brd.PlaceOrder(“NFO”, “NIFTY15MARFUT”, “NIFTY”,”STRATEGY-S”, 1, 1, 1, 8395.25, 0, “LIMIT”, “NRML”, “RB0799″,”DAY”);
brd.PlaceOrder(“NFO”, “NIFTY15MARFUT”, “NIFTY”,”STRATEGY-B”, 2, 1, 1, 8412.50, 0, “LIMIT”, “NRML”, “RB0799″,”DAY”);

View the full comment thread »