I will need the info for a specific date/time... see the red highlight below.
I cannot find this in the ref section.
protectedoverridevoid OnBarUpdate()
{
SMACurrent=SMA(BarsArray[0],50)[0];
SMAPast=SMA(BarsArray[0],50)[1];
//if SMACurrent>SMAPast consider this an up trend
if (SMACurrent > SMAPast) <<<< and DateTime of a bar = '8/15/2012 5:00:00 AM
{
objBarsAgoNumber.Set (Closes[0][1]);
BarsAgoNumber = (HighestBar (objBarsAgoNumber,30)+1);
HighValuePast=MAX(High,30)[1];
HighValueCurrent=Closes[0][0];
Thank you,
Duke
Comment