can someone tell me what's wrong with the below action? I don't get any alerts on NEWBAR?
var vt1 = 930;
var vState = getBarState();
if (
Strategy.islong() &&
(getHour()*100)+getMinute() > vt1 &&
vState == (BARSTATE_NEWBAR))
{
Alert.playSound("C:\\Program Files\\eSignal\\Sounds\\Reminder.wav");
Alert.addToList(getSymbol(), "Buy Signal large time frame", Color.RGB(0,0,0), Color.RGB(0,255,0));
}
var vt1 = 930;
var vState = getBarState();
if (
Strategy.islong() &&
(getHour()*100)+getMinute() > vt1 &&
vState == (BARSTATE_NEWBAR))
{
Alert.playSound("C:\\Program Files\\eSignal\\Sounds\\Reminder.wav");
Alert.addToList(getSymbol(), "Buy Signal large time frame", Color.RGB(0,0,0), Color.RGB(0,255,0));
}
Comment