Announcement

Collapse
No announcement yet.

whats wrong with this

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • whats wrong with this

    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));
    }

  • #2
    I think it should be:

    Strategy.isLong()...with an uppercase "L".

    Chris

    Comment


    • #3
      you're right that's it.. so simply

      thanks Chris

      Comment

      Working...
      X