Comment on Pi Bridge for Amibroker

Nithin Kamath commented on 28 Feb 2015, 01:24 PM

Use this:

SECTION_BEGIN(“PiBridge”);
RequestTimedRefresh(15, False);
brd=Null;
if(IsNull(brd))
{
brd = CreateStaticObject(“pibridge.Bridge”);
}

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

brd.PlaceOrder(“NFO”, “NIFTY15FEBFUT”, “NIFTY”,”STRATEGY-B”, 2, 1, 1, 8412.50, 0, “L”, “NRML”, “RB0799″,”DAY”);

brd.PlaceOrder(“NFO”, “NIFTY15FEBFUT”, “NIFTY”,”STRATEGY-S”, 2, 1, 1, 8395.25, 0, “L”, “NRML”, “RB0799″,”DAY”);

_SECTION_END();

View the full comment thread »