Thema: iCustom
Einzelnen Beitrag anzeigen
  #12 (permalink)  
Alt 05.03.16
RetepM RetepM ist offline
Mitglied
 
Registriert seit: Feb 2016
Beiträge: 240
RetepM befindet sich auf einem aufstrebenden Ast
Standard

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];

}