Get volume and Turnover of the index

Hallo everyone,
How to get volume and Turnover of the index which includes some of the symbols,
to be specified I have a watchlist including number index and all one of them includes a number of symbols, how to get volume and Turnover of that these indices.
there is process to get it

Either use this
https://www.amibroker.com/guide/afl/staticvaradd.html

or ATC ( Addtocomposite)
https://www.amibroker.com/guide/afl/addtocomposite.html

Then run scan with Filter set to your watchlist.

Multiple threads already so use forum search.

37

/// @link https://www.amibroker.com/guide/h_batch.html
/// Click New Analysis button "Run sequence"
#pragma sequence(scan,explore)

Version(6.40);

/// @link https://www.amibroker.com/guide/afl/staticvaradd.html
if ( Status("action") == actionScan ) {
	Buy = 0;
	if ( Status("stocknum") == 0 )
		StaticVarRemove("~Turnover");
	StaticVarAdd("~Turnover", C*V, True, False);
	_exit(); // quick exit in scan mode
}

turnover = StaticVarGet("~Turnover");

Filter = Status("lastbarinrange");
AddColumn(turnover, "Turnover", 1.0);
1 Like

ok, thanks for your efforts

This topic was automatically closed 100 days after the last reply. New replies are no longer allowed.