Can I call another ticker while in the DLL

my buy program will call the ticker
it jump into my dll
now my dll needs to process data from a set ticker list around 30+ ticker
How can i call and read the data from another ticker.
I need to start the barcount at the ticker and the set date

I don’t see the reason why you would want to do that in DLL. It will be slower than AFL. Excess usage of DLLs slows down the system because functions in DLLs are serialized.

I do it in vb com but it really slow. I get a buy signal that is process threw a dll.
If the dll trigger the buy it output a list of tickers that correlate to the buy.
What I need to do in the dll read the output list and print out the the price and the data x days ahead.
lets say the dll trigger a buy on tiffiny
the list says the last time few time that dll patterrn was trigger was
ACRX,Buy,05/22/2015
ALNY,Buy,02/12/2015
AMH,Buy,10/18/2013

what i need to do is set the barcount + ticker to acrx on 05/22/2015 then get the data 5 ,10, 15 days going out
I need to do it for all the tickers in the list and count how many time each hit .25 .75 1.00 1.25 etc or %.

I do it now in vb take hr to create the output file
I figure the dll access to the data should be faster.

here a small example of the data i need to output

SYNA 8/29/2017 0:00 41.47 -0.29 0.16 0.95 -0.57 -3.55 -1.48 0.95 -4.08 -0.68 -1.92 0.95 -4.08 -0.67 -0.87 0.95 -4.08 -2.16 -1.78 0.95 -4.08 -4.34 -3.76 0.95 -4.7 -2.97 -3.05 0.95 -4.7
T 9/23/2016 0:00 41.28 -0.43 -0.27 0.42 -0.7 -0.51 -0.66 0.42 -0.84 -2.17 -2.15 0.42 -2.45 -2.18 -2.34 0.42 -3.07 -2.06 -1.87 0.42 -3.07 -1.9 -1.82 0.42 -3.07 -4.49 -4.67 0.42 -5.01
TXT 5/8/2017 0:00 46.69 1.88 0 1.98 -0.17 1.49 1.33 1.98 -0.17 -0.2 -0.44 1.98 -1.23 0.78 0.49 1.98 -1.23 1.3 1.37 1.98 -1.23 1.06 1.05 1.98 -1.23 0.71 0.84 1.98 -1.23
VR 7/15/2013 0:00 35.57 0.13 -0.01 0.21 -0.57 -0.41 -0.02 0.37 -0.57 0.11 -0.32 0.37 -0.77 -0.14 0.31 0.6 -0.77 -0.44 -0.16 0.6 -0.77 -0.86 -0.63 0.6 -0.86 -0.9 -1.23 0.6 -1.3
YY 4/21/2017 0:00 45.88 1.88 1.08 2.41 -0.75 3.22 3.12 3.3 -0.75 4.77 4.62 5.21 -0.75 9.09 7.77 9.87 -0.75 8.05 8.09 9.87 -0.75 7.05 7.83 10.33 -0.75 12.37 12.12 13.42 -0.75

		Min	-0.86	-0.57	-0.02	-8.44		-3.92	-3.33	-0.01	-11.18		-11.3	-2.68	-0.01	-17.64		-81.48	-88.71	-0.01	-97.78		-54.23	-75.25	-0.01	-97.78		-47.54	-69.91	-0.01	-97.78		-9.74	-17.45	0	-97.78						
		Max	7.69	7.7	11.7	0.2		10.23	18.25	24.57	0.2		10.52	12.49	24.57	0.2		13.04	12.11	24.57	0.2		13.8	18.55	24.57	0.2		19.73	16.61	24.57	0.2		17.62	22.54	28.06	0.2						
		Average	0.4961765	0.5005882	1.107647	-0.7570588		0.5091176	1.085588	2.186177	-1.111765		0.3461765	0.6799998	2.457941	-1.539412		-1.721765	-1.914412	2.775882	-4.18853		-0.9029412	-1.446176	3.091177	-4.362942		-0.1694117	-1.14853	3.397941	-4.551471		1.34147	1.222647	4.318235	-4.728235						
																																								Average Over Time		
																																							Close	Open	Hhv	Llv
	$7.00 		1 | 2.9 %	1 | 2.9 %	1 | 2.9 %	0 | 0.0 %		1 | 2.9 %	2 | 5.9 %	2 | 5.9 %	0 | 0.0 %		1 | 2.9 %	1 | 2.9 %	2 | 5.9 %	0 | 0.0 %		2 | 5.9 %	2 | 5.9 %	3 | 8.8 %	0 | 0.0 %		2 | 5.9 %	2 | 5.9 %	3 | 8.8 %	0 | 0.0 %		2 | 5.9 %	2 | 5.9 %	3 | 8.8 %	0 | 0.0 %		4 | 11.8 %	4 | 11.8 %	5 | 14.7 %	0 | 0.0 %		$7.00 	5.50%	5.90%	8.00%	0.00%
	$6.00 		1 | 2.9 %	1 | 2.9 %	1 | 2.9 %	0 | 0.0 %		1 | 2.9 %	2 | 5.9 %	2 | 5.9 %	0 | 0.0 %		1 | 2.9 %	1 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 %	9 | 26.5 %	0 | 0.0 %		9 | 26.5 %	7 | 20.6 %	11 | 32.4 %	0 | 0.0 %		9 | 26.5 %	10 | 29.4 %	12 | 35.3 %	0 | 0.0 %		$3.00 	15.50%	14.30%	21.80%	0.00%
	$2.00 		2 | 5.9 %	2 | 5.9 %	5 | 14.7 %	0 | 0.0 %		4 | 11.8 %	4 | 11.8 %	11 | 32.4 %	0 | 0.0 %		7 | 20.6 %	7 | 20.6 %	13 | 38.2 %	0 | 0.0 %		7 | 20.6 %	5 | 14.7 %	13 | 38.2 %	0 | 0.0 %		8 | 23.5 %	6 | 17.6 %	13 | 38.2 %	0 | 0.0 %		10 | 29.4 %	9 | 26.5 %	15 | 44.1 %	0 | 0.0 %		9 | 26.5 %	10 | 29.4 %	16 | 47.1 %	0 | 0.0 %		$2.00 	19.70%	18.10%	36.10%	0.00%
	$1.50 		5 | 14.7 %	3 | 8.8 %	7 | 20.6 %	0 | 0.0 %		8 | 23.5 %	7 | 20.6 %	14 | 41.2 %	0 | 0.0 %		11 | 32.4 %	8 | 23.5 %	14 | 41.2 %	0 | 0.0 %		9 | 26.5 %	9 | 26.5 %	14 | 41.2 %	0 | 0.0 %		9 | 26.5 %	8 | 23.5 %	14 | 41.2 %	0 | 0.0 %		11 | 32.4 %	10 | 29.4 %	16 | 47.1 %	0 | 0.0 %		10 | 29.4 %	10 | 29.4 %	17 | 50.0 %	0 | 0.0 %		$1.50 	26.50%	23.10%	40.30%	0.00%
	$1.00 		5 | 14.7 %	5 | 14.7 %	11 | 32.4 %	0 | 0.0 %		12 | 35.3 %	13 | 38.2 %	17 | 50.0 %	0 | 0.0 %		11 | 32.4 %	11 | 32.4 %	17 | 50.0 %	0 | 0.0 %		9 | 26.5 %	9 | 26.5 %	17 | 50.0 %	0 | 0.0 %		11 | 32.4 %	11 | 32.4 %	17 | 50.0 %	0 | 0.0 %		13 | 38.2 %	13 | 38.2 %	18 | 52.9 %	0 | 0.0 %		10 | 29.4 %	11 | 32.4 %	21 | 61.8 %	0 | 0.0 %		$1.00 	29.80%	30.70%	49.60%	0.00%
	$0.75 		9 | 26.5 %	6 | 17.6 %	14 | 41.2 %	0 | 0.0 %		14 | 41.2 %	14 | 41.2 %	19 | 55.9 %	0 | 0.0 %		11 | 32.4 %	12 | 35.3 %	20 | 58.8 %	0 | 0.0 %		10 | 29.4 %	9 | 26.5 %	20 | 58.8 %	0 | 0.0 %		12 | 35.3 %	12 | 35.3 %	20 | 58.8 %	0 | 0.0 %		15 | 44.1 %	14 | 41.2 %	21 | 61.8 %	0 | 0.0 %		14 | 41.2 %	12 | 35.3 %	23 | 67.6 %	0 | 0.0 %		$0.75 	35.70%	33.20%	57.60%	0.00%
	$0.50 		10 | 29.4 %	10 | 29.4 %	17 | 50.0 %	0 | 0.0 %		14 | 41.2 %	14 | 41.2 %	22 | 64.7 %	0 | 0.0 %		12 | 35.3 %	12 | 35.3 %	23 | 67.6 %	0 | 0.0 %		12 | 35.3 %	10 | 29.4 %	25 | 73.5 %	0 | 0.0 %		14 | 41.2 %	13 | 38.2 %	25 | 73.5 %	0 | 0.0 %		17 | 50.0 %	16 | 47.1 %	26 | 76.5 %	0 | 0.0 %		17 | 50.0 %	15 | 44.1 %	26 | 76.5 %	0 | 0.0 %		$0.50 	40.30%	37.80%	68.90%	0.00%
	$0.25 		10 | 29.4 %	13 | 38.2 %	20 | 58.8 %	0 | 0.0 %		14 | 41.2 %	15 | 44.1 %	26 | 76.5 %	0 | 0.0 %		12 | 35.3 %	13 | 38.2 %	29 | 85.3 %	0 | 0.0 %		13 | 38.2 %	14 | 41.2 %	29 | 85.3 %	0 | 0.0 %		16 | 47.1 %	14 | 41.2 %	29 | 85.3 %	0 | 0.0 %		18 | 52.9 %	18 | 52.9 %	30 | 88.2 %	0 | 0.0 %		18 | 52.9 %	16 | 47.1 %	30 | 88.2 %	0 | 0.0 %		$0.25 	42.40%	43.30%	81.10%	0.00%
	$0.00 		17 | 50.0 %	20 | 58.8 %	32 | 94.1 %	2 | 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8.8 %	4 | 11.8 %	0 | 0.0 %	9 | 26.5 %		5 | 14.7 %	6 | 17.6 %	0 | 0.0 %	11 | 32.4 %		($2.00)	11.30%	8.40%	0.00%	20.20%
	($1.50)		0 | 0.0 %	0 | 0.0 %	0 | 0.0 %	4 | 11.8 %		4 | 11.8 %	1 | 2.9 %	0 | 0.0 %	6 | 17.6 %		4 | 11.8 %	3 | 8.8 %	0 | 0.0 %	7 | 20.6 %		7 | 20.6 %	6 | 17.6 %	0 | 0.0 %	10 | 29.4 %		7 | 20.6 %	7 | 20.6 %	0 | 0.0 %	11 | 32.4 %		7 | 20.6 %	6 | 17.6 %	0 | 0.0 %	12 | 35.3 %		6 | 17.6 %	6 | 17.6 %	0 | 0.0 %	13 | 38.2 %		($1.50)	14.70%	12.20%	0.00%	26.50%
	($1.00)		0 | 0.0 %	0 | 0.0 %	0 | 0.0 %	6 | 17.6 %		4 | 11.8 %	3 | 8.8 %	0 | 0.0 %	7 | 20.6 %		5 | 14.7 %	5 | 14.7 %	0 | 0.0 %	12 | 35.3 %		9 | 26.5 %	7 | 20.6 %	0 | 0.0 %	13 | 38.2 %		8 | 23.5 %	9 | 26.5 %	0 | 0.0 %	14 | 41.2 %		8 | 23.5 %	9 | 26.5 %	0 | 0.0 %	14 | 41.2 %		6 | 17.6 %	8 | 23.5 %	0 | 0.0 %	16 | 47.1 %		($1.00)	16.80%	17.20%	0.00%	34.50%
	($0.75)		1 | 2.9 %	0 | 0.0 %	0 | 0.0 %	8 | 23.5 %		4 | 11.8 %	4 | 11.8 %	0 | 0.0 %	13 | 38.2 %		6 | 17.6 %	6 | 17.6 %	0 | 0.0 %	16 | 47.1 %		9 | 26.5 %	10 | 29.4 %	0 | 0.0 %	17 | 50.0 %		9 | 26.5 %	10 | 29.4 %	0 | 0.0 %	17 | 50.0 %		9 | 26.5 %	10 | 29.4 %	0 | 0.0 %	17 | 50.0 %		9 | 26.5 %	11 | 32.4 %	0 | 0.0 %	19 | 55.9 %		($0.75)	19.70%	21.40%	0.00%	45.00%
	($0.50)		2 | 5.9 %	1 | 2.9 %	0 | 0.0 %	17 | 50.0 %		7 | 20.6 %	7 | 20.6 %	0 | 0.0 %	19 | 55.9 %		9 | 26.5 %	7 | 20.6 %	0 | 0.0 %	21 | 61.8 %		12 | 35.3 %	12 | 35.3 %	0 | 0.0 %	22 | 64.7 %		10 | 29.4 %	11 | 32.4 %	0 | 0.0 %	22 | 64.7 %		10 | 29.4 %	11 | 32.4 %	0 | 0.0 %	23 | 67.6 %		10 | 29.4 %	11 | 32.4 %	0 | 0.0 %	25 | 73.5 %		($0.50)	25.20%	25.20%	0.00%	62.60%
	($0.25)		9 | 26.5 %	6 | 17.6 %	0 | 0.0 %	23 | 67.6 %		10 | 29.4 %	9 | 26.5 %	0 | 0.0 %	24 | 70.6 %		11 | 32.4 %	13 | 38.2 %	0 | 0.0 %	26 | 76.5 %		14 | 41.2 %	14 | 41.2 %	0 | 0.0 %	27 | 79.4 %		12 | 35.3 %	12 | 35.3 %	0 | 0.0 %	28 | 82.4 %		12 | 35.3 %	12 | 35.3 %	0 | 0.0 %	28 | 82.4 %		10 | 29.4 %	12 | 35.3 %	0 | 0.0 %	29 | 85.3 %		($0.25)	32.80%	32.80%	0.00%	77.70%
	$0.00 		17 | 50.0 %	15 | 44.1 %	3 | 8.8 %	32 | 94.1 %		14 | 41.2 %	15 | 44.1 %	1 | 2.9 %	32 | 94.1 %		19 | 55.9 %	19 | 55.9 %	1 | 2.9 %	32 | 94.1 %		20 | 58.8 %	18 | 52.9 %	1 | 2.9 %	32 | 94.1 %		15 | 44.1 %	19 | 55.9 %	1 | 2.9 %	32 | 94.1 %		16 | 47.1 %	16 | 47.1 %	1 | 2.9 %	32 | 94.1 %		13 | 38.2 %	15 | 44.1 %	0 | 0.0 %	32 | 94.1 %		$0.00 	47.90%	49.20%	3.40%	94.10%

I only call the Dll once . I just need access to the ticker list data.
I think i need to set foreign or something but how do i make sure i get the right data and the reset it to the original so when it exit the call it will hit the next ticker

You should not be doing it in Visual Basic, but directly in AFL. DLL is not magical recipe for speed. Properly written AFL is as fast as machine code: http://www.amibroker.com/kb/2008/08/12/afl-execution-speed/

You not helping.
I run a dll to get a buy signal because of the data I am comparing it logical to run the comparison in the dll instead of tons of afl lines. The dll produce a buy. once i get that buy it create a ticker list of stock in the past that also have that buy. What i need to do is get the data (ohlc) starting on the date of each ticker and going forward. in 5 days
ticker 1 is up .05
ticker 2 is up .25
ticker 3 is up .12
etc over 30
how many of those ticker are up 1%
2%
5%
let say 95% out of 30 had a gain of 5%
I can assume the buy signal for the ticker will have a high probability off hitting 4%
You understand.
I am now in the dll I need to get all the data from each ticker that corresponds to the buy and count