Hi Spirit,

thank again for your support but I don't understand how I can obtain what I want.
After your advice I created the code below:
Code:
#include <profile.c>

function run()
{

assetList("AssetsFix");
StartDate = 20181009;
EndDate = 2018;
StartMarket = 0000;
EndMarket = 2259;
LookBack = 1440;
BarPeriod = 1;

	while(asset(loop(Assets)))
		{
			var C = dayClose(UTC,1);
			var O = dayOpen(UTC,1);
		print(TO_WINDOW,"n Date: %02d-%02d-%02d %02d:%02d, %s , O = %f, C = %f",day(),month(),year(),hour(),minute(), Asset,O,C);
		}
}


I want obtain the Open and Close of the previous daily candle.
My function run is performed each 1 min (BarPeriod = 1) and in this way I can't obtain what I want.

The broker at UTC time and I want obtain the daily candle at UTC+2.

would you be kind enough to help me?

Thanks again

Last edited by tradingest; 10/16/18 19:44.