Need help with this code

Buy alert - value crosses high of the day Sell alert - value crosses low of the day

 //-------------------------------------------------------------------------------------------
//
//  Formula Name:    Break out - Break down
//  Author/Uploader: Neotrade Analytics Pvt Ltd 
//  E-mail:          [email protected]
//  Website          www.neotradeanalytics.com
//
//This is an attempt to provide a basic trading system AFL. The system is purely imaginary
//AND NOT provided as one that would make money. This is just to provide a guide to learners
//on the common components of writing AFL.
//
//-------------------------Summary of AFL---------------------------------------------------
//This AFL produces results of Breakout and Breakdown when 
//current bar close above/below Days High and Days Low
/*-------------------------------------
	Initialize
-------------------------------------*/
GraphXSpace = 5 ;
SetChartOptions(0,chartShowArrows|chartShowDates);
Plot( C, "Close", colorBlack, styleNoTitle | ParamStyle("Style") | GetPriceStyle() ); 

_SECTION_BEGIN("Hi and LO of the day");
TLH = ParamToggle("Days Hi Lo","Off|On",1);
if (TLH==1) {
  Hodcolorsheme=ParamColor("High of day color",colorDarkRed);
  LodColorscheme=ParamColor("Low of day color",colorGreen);
  tempnum = TimeNum(); 
  temphi[0] = H[0]; 
  temphiColor[0] = Hodcolorsheme; 
  templo[0] = L[0]; 
  temploColor[0] = LodColorscheme; 
  for( i = 1; i < BarCount; i++ ) 
  { 
  if(tempnum[i] - tempnum[i-1] > Interval()) 
  { 
  if(H[i] > temphi[i-1]) 
  { 
  temphi[i] = H[i]; 
  temphiColor[i] = Hodcolorsheme; 
  } 
  else 
  { 
  temphi[i] = temphi[i-1]; 
  temphiColor[i] = Hodcolorsheme; 
  } 
  if(L[i] < templo[i-1]) 
  { 
  templo[i] = L[i]; 
  temploColor[i] = LodColorscheme; 
  } 
  else 
  { 
  templo[i] = templo[i-1]; 
  temploColor[i] = LodColorscheme; 
  } 
  } 
  else 
  { 
  temphi[i] = H[i]; 
  temphiColor[i] = Hodcolorsheme; 
  templo[i] = L[i]; 
  temploColor[i] = LodColorscheme; 
  } 
  } 
  Plot(temphi,"", temphiColor,styleBar); 
  Plot(templo,"", temploColor,styleBar);
}

Buy = Cross(Close,Ref(temphi,-1));
Sell = Cross(Ref(templo,-1),Close);

PlotShapes(IIf(Buy, shapeUpArrow, shapeNone),ParamColor("Up Arrow Color",ColorRGB(0,255,0)), 0,L, Offset=-25); 
PlotShapes(IIf(Sell, shapeDownArrow, shapeNone),ParamColor("Down Arrow Color",ColorRGB(255,0,0)), 0,H, Offset=-25);

_SECTION_END();

Please find the Amibroker AFL which displays Buy/Sell when the close is above the days high or days low.

Regards

Vivith

Thank you for taking the time bro. I should have been more clearer. My bad! I was referring to trade script and not afl. I do not have pi bridge or amibroker. Would it be possible?

No Issues. Sreeni should be able to code the same on tradescript.
Regards
Vivith