Active Boundaries for Amibroker

Hi Everyone, I’m looking for the indicator "Active boundaries" described by the author in his webpage. http://www.willain.com/content/ActiveBoundaries.html I found that there are scripts for another platforms (can I public the link?) but I can´t found anything for Amibroker. I can make a donation if it’s requested.

Thanks and Regards

I've done some quick conversion for this indicator

_SECTION_BEGIN( "Pascal Willain Active Boundaries" );

// http://www.willain.com/content/ActiveBoundaries.html

_FreeFloat = Param("Free Float", 1000000, 1, 10000000); // Free float
_BarsCount = Param("Bars", 100, 10, 5000); // Aantal bars weergeven

sAB = Null;

sAvgPrice = (O + H + L + C)/4;

iStart = Max(0, BarCount - 1 - _BarsCount);

for (i = iStart; i < BarCount; i++)
{
 pos = i;

 TROI = 0;
 j = pos;
 tv = V[pos]; // shld be 0, bc curr pos dbl counted ??
 
  while (j >= 0 && tv < _FreeFloat)
  {
	 tv += Volume[j];
	 TROI += Volume[j] * (Close[pos] - sAvgPrice[j]) / sAvgPrice[j];
	 --j;
  }
  
  if (tv != 0)
	 sAB[pos] = 100 * TROI / tv;
}

Plot(sAB, "Active Boundaries", colorBlue, styleLine);

_SECTION_END();

1 Like

"Active boundaries" looks like normal support and resistance to me. There's plenty of S&R codes in the library.

2 Likes

Thanks, It was very quick!, let me try the code. Regards :smile:

Can anybody help to make Active boundaries in excel