//ScalperHighLow Bracket By JRA Jan 2015
offset = 2;
HX = Ref( H, -offset+1 );
LX = Ref( L, -offset+1 );
TicksOffset = Param( "TicksOffset", 0.0001, 0.0001, 0.50, 0.0001 );//NofTicksAboveorBelow
y0 = LastValue( HX ) + TicksOffset;
y1 = LastValue( LX ) - TicksOffset;
Plot( C, "Price", colorDefault, styleCandle );
bars = BarCount - 2*offset;
Plot( LineArray( bars, y0, BarCount-1, y0, 1 ), "", colorDarkRed, styleLine | styleLine | stylenolabel, Null, Null, xshift = 2 );
Plot( LineArray( bars, y1, BarCount-1, y1, 1 ), "", colorDarkRed, styleLine | styleLine | stylenolabel, Null, Null, xshift );
if ( LastValue( C ) > y0 ) color = colorblue;
else color = colorDefault;
PlotText( "" + Y0, BarCount + 1, Y0, Null, color );
AlertIF( LastValue( C ) > y0, "SOUND C:\\Windows\\Media\\ringout.wav", "Audio alert", 1 );
if ( LastValue( C ) < y1 ) color = colorred;
else color = colorDefault;
PlotText( "" + Y1, BarCount + 1, Y1, Null, color );
AlertIF( LastValue( C ) < y1, "SOUND C:\\Windows\\Media\\ringout.wav", "Audio alert", 1 );
|