I need it to maintain the plot level until it slopes down again.
protected override void OnBarUpdate()
{
Value.Set((MAX(High, Period)[0] + MIN(Low, Period)[0]) / 2);
Upper.Set(MAX(High, Period)[0]);
Lower.Set(MIN(Low, Period)[0]);
if((MAX(High, Period)[0]) > (MAX(High, Period)[-1]))
{
Dip.Set(MAX(High, Period)[-1]);
}
else
{
** Not sure what needs to go here to maintain last value ???
It simply doesn't plot anything if the above "IF" statement is not utilized.
{
}
Thx in advance for any guidance...
Comment