Moin, Moin,
probier mal das:
datetime BarTime = 0;
double ValueLastClose;
void OncePerBar()
{
if (BarTime < Time[0])
{
// neue Kerze
BarTime = Time[0]; // open time neue Kerze
DataLastClose();
}
}
void DataLastClose()
{
ValueLastClose = Close[current+1];
}
|