Comment on Pi Bridge for Amibroker

dp0012 commented on 21 Jan 2015, 03:47 PM

I have tested some other service provider auto trade software it’s working fine with my AFL. Only place the order when signal appear on the chart. But when i live the PI its shooting buy or sell every second. I have added below to my AFL.

_SECTION_BEGIN(“PI-AUTO”);
//COM Calling function:
brd=Null;
if(IsNull(brd)) {
brd = CreateStaticObject(“pibridge.Bridge”);
}// AFL Buy/Sell Logic

brd.PlaceOrder (“NFO”, “ICICIBANKJAN15FUT”,”ICICIBANK”,”AMI-B”, 1,3,1, 0, 0, “M”, “MIS”, “DZ1105″,”DAY”);
brd.PlaceOrder (“NFO”, “ICICIBANKJAN15FUT”,”ICICIBANK”,”AMI-S”, 2,3,1, 0, 0, “M”, “MIS”, “DZ1105″,”DAY”);
_SECTION_END();

View the full comment thread »