Announcement

Collapse
No announcement yet.

Alerts

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

  • Alerts

    hallo,

    i have a question about alerts,

    i made a strategy and i want that eSignal give me a buy alert signal, so a read some threads but i haven't find a good explanation,
    i would like that eSignal gives me a signal every hour and not every second, how can i realise that??
    should i use the 1 hour or the daily chart??

    thank you,
    alen

  • #2
    alen
    In the same section of code where you execute the doLong()/doShort() commands add also the commands for the alerts you want to generate ie Alert.playSound() etc. For the required syntax see thisarticle in the EFS KnowledgeBase.
    If you want an alert to sound every hour you could use the following

    if(getBarState()==BARSTATE_NEWBAR){
    if(hour(0)!=hour(-1)){
    Alert.playSound("ding.wav");
    }
    }


    This should trigger one alert only at the beginning of every hour
    Alex

    Comment


    • #3
      alen
      Another way to get hourly alerts is to use the Time Alerts available in the standard Alerts tool of eSignal (see image below). Set the time for the first alert and then check the Hourly Re-Arm.
      Alex

      Comment

      Working...
      X