Modify afl with target and stoploss

#1
Hi
here is one afl i wish to modify these afl

Target 250 points
stoploss 50 points
exit all at position at 3.15.
time frame 15 min.

afl is below

_SECTION_BEGIN("Unnamed 172");
/* DT Oscillator
**
** AFL translation by X-Trader
** X-Trader.net
**
*/
SetChartBkColor(ParamColor("Outer Panel",colorBlack));

PeriodRSI= Param("PeriodRSI", 33, 1, 250, 1);
PeriodStoch=Param("PeriodStoch", 21, 1, 250, 1);
MAType=Param("MAType", 2, 1, 2, 1);
PeriodSK=Param("PeriodSK", 18, 1, 250, 1);
PeriodSD=Param("PeriodSD", 4, 1, 250, 1);
Upper=Param("Upper", 75, 50, 100, 1);
Lower=Param("Lower", 25, 0, 50, 1);

StoRSI= 100*(( RSI( PeriodRSI) - LLV( RSI( PeriodRSI ) , PeriodStoch ) ) / ( ( HHV( RSI( PeriodRSI) , PeriodStoch ) ) - LLV(RSI( PeriodRSI ), PeriodStoch ) ) );

if(MAType==1)
{
SK=MA(StoRSI,PeriodSK);
SD=MA(SK,PeriodSD);
}

if(MAType==2)
{
SK=EMA(StoRSI,PeriodSK);
SD=EMA(SK,PeriodSD);
}

Plot(SK,"DTOscSK",ParamColor( "ColorSK", ParamColor( "Color", colorCycle ) ),ParamStyle ("Style"));
Plot(SD,"DTOscSD",ParamColor( "ColorSD", colorWhite ),styleThick);
Plot(Upper,"Upper",ParamColor( "ColorUpper", colorRed ),styleLine);
Plot(Lower,"Lower",ParamColor( "ColorLower", colorGreen ),styleLine);
Buy = Cross(SK, SD) AND SD<= 25;
Sell = Cross(SD, SK) AND SK >= 75;
PlotShapes(IIf( Sell, shapeDownArrow , shapeNone), colorRed,0, Offset=Null) ;
PlotShapes(IIf( Buy , shapeUpArrow , shapeNone), colorGreen,0, Offset=Null) ;

_SECTION_END();



please try ..................