Period = Param("display length", 375, 2, 1875,1 );
bi = BarIndex();
procedure PlotLevel( array, nam, Col,sty )
{
x = SelectedValue( bi );
y = SelectedValue( array );
Plot( IIf( bi >= x AND bi < x + Period, y, Null ),nam, Col, sty );
PlotText( nam, x+1, y, Col );
}
if( ParamToggle("Weekly HL", "No|Yes", 1))
{
wh = TimeFrameGetPrice("H",inWeekly,-1);
wl = TimeFrameGetPrice("L",inWeekly,-1);
PlotLevel( wh, "\nWH - "+wh+"", colordarkyellow,styleLine|stylethick );
PlotLevel( wl, "\nWL - "+wl+"", colordarkyellow,styleLine|stylethick );
}
if( ParamToggle("Y'Day HL", "No|Yes", 1))
{
dh = TimeFrameGetPrice("H",indaily,-1);
dl = TimeFrameGetPrice("L",indaily,-1);
PlotLevel( dh, "\nDH - "+dh+"", colortan,styleLine );
PlotLevel( wl, "\nDL - "+dl+"", colortan,styleLine);
}
if( ParamToggle("Today-2 HL", "No|Yes", 1))
{
d2h = TimeFrameGetPrice("H",indaily,-2);
d2l = TimeFrameGetPrice("L",indaily,-2);
PlotLevel( d2h, "\nD2H - "+d2h+"", colororange,styledashed );
PlotLevel( d2l, "\nD@L - "+d2l+"", colororange,styledashed );
}
Period = Param("display length", 375, 2, 1875,1 );
bi = BarIndex();
procedure PlotLevel( array, nam, Col,sty )
{
x = SelectedValue( bi );
y = SelectedValue( array );
Plot( IIf( bi >= x AND bi < x + Period, y, Null ),nam, Col, sty );
PlotText( nam, x+1, y, Col );
}
if( ParamToggle("Weekly HL", "No|Yes", 1))
{
wh = TimeFrameGetPrice("H",inWeekly,-1);
wl = TimeFrameGetPrice("L",inWeekly,-1);
PlotLevel( wh, "\nWH - "+wh+"", colordarkyellow,styleLine|stylethick );
PlotLevel( wl, "\nWL - "+wl+"", colordarkyellow,styleLine|stylethick );
}
if( ParamToggle("Y'Day HL", "No|Yes", 1))
{
dh = TimeFrameGetPrice("H",indaily,-1);
dl = TimeFrameGetPrice("L",indaily,-1);
PlotLevel( dh, "\nDH - "+dh+"", colortan,styleLine );
PlotLevel( wl, "\nDL - "+dl+"", colortan,styleLine);
}
if( ParamToggle("Today-2 HL", "No|Yes", 1))
{
d2h = TimeFrameGetPrice("H",indaily,-2);
d2l = TimeFrameGetPrice("L",indaily,-2);
PlotLevel( d2h, "\nD2H - "+d2h+"", colororange,styledashed );
PlotLevel( d2l, "\nD@L - "+d2l+"", colororange,styledashed );
}
Thread starter | Similar threads | Forum | Replies | Date |
---|---|---|---|---|
USDCHF → Trades near 0.8870 | Forex | 0 | ||
B | Positional trades in shares | Trading Diary | 15 | |
P | My Trades | Technical Analysis | 7 | |
T | live scroll of trades | Software | 0 | |
X | My Live Trades | Trading Diary | 56 |