# Respected Sir the AFL i am using in amibroker creates signals but the order aren't fired in the Pi. Please help. The Pi Bridge Symbol Shows green. I am not a coder. Thank you

_SECTION_BEGIN(“PRT Crossover”);

function ZeroLagTEMA( array, period )
{
TMA1 = TEMA( array, period );
TMA2 = TEMA( TMA1, period );
Diff = TMA1 - TMA2;
return TMA1 + Diff ;
}

HaClose = (O+H+L+C)/4;
HaOpen = AMA( Ref( HaClose, -1 ), 0.5 );
HaHigh = Max( H, Max( HaClose, HaOpen ) );
HaLow = Min( L, Min( HaClose, HaOpen ) );

HaClose = ( HaClose + HaOpen + HaHigh + HaLow )/4;

if( ParamToggle(“Plot Heikin-Ashi”, “No,Yes”, 1 ) )
PlotOHLC( HaOpen, HaHigh, HaLow, HaClose, “Heikin Ashi " + Name(), colorRose, styleCandle );
else
Plot( C, “Regular candles " + Name(), colorRose, styleCandle );
period = Param(“Avg. TEMA period”, 15, 1, 100 );
ZLHa = ZeroLagTEMA( HaClose, period );
ZLTyp = ZeroLagTEMA( Avg, period );
Plot( ZLHa, “ZLTema(Ha,”+period+”)”, colorRed );
Plot( ZLTyp, “ZLTema(Typ,”+period+")", colorRed );
Buy = Cross( ZLTyp, ZLHa );
Sell = Cross( ZLHa, ZLTyp );

Short = Sell;

PlotShapes( shapeUpArrow * Buy, colorGreen, 0, HaLow );
PlotShapes( shapeDownArrow * Sell, colorRed, 0, HaHigh );

Title = EncodeColor(colorWhite)+ " - " + Name() + " - " + EncodeColor(colorRed)+ Interval(2) + EncodeColor(colorWhite) +
" - " + Date() +" - “+EncodeColor(colorYellow) +“Op-”+O+” “+“Hi-”+H+” “+“Lo-”+L+” “+
“Cl-”+C+” "+ “Vol= “+ WriteVal(V)+”\n”+
_SECTION_END();

Hi pratik, u have not included the pibridge code in your afl. Ur afl is just generating signal. U have to code in your afl to place a order when signal comes. I have developed a dll for placing order from ami. Download the installer from the below link and install it as an administrator. Post install read the help file which will open automatically.make sure u have selected, live semi automatic option in pi user settings. https://drive.google.com/open?id=0B-AWKNHhYByLaEplVEZuQkg2b3M

Pls go through my answers on tradingqna w.r.t pibridge.U ll get a clear idea on pibridge.

Check it once again…

Thank you Sir will check it