| Coding Forum Collaborate, receive help, or discuss coding related issues. |
![]() | | Tweet | |
| | #1 | ||
![]() | Add the Timeframe to the Alert Box in TS? So is it possible to add any kind of code to the Alert( "Signal "); statement? I was thinking maybe the use of BarInterval? I tried adding it as a string with the + numtoStr(BarInterval,2) stuff to no avail. Any ideas gents? | ||
| |
|
| | #2 | ||
![]() | Re: Add the Timeframe to the Alert Box in TS? all the parameters are there. ;-) | ||
| |
|
| | #3 | ||
![]() | Re: Add the Timeframe to the Alert Box in TS? I keep trying stuff like: Code: Alert("Alert" + BarInterval); Code: Alert("A New High has been hit for ” + GetSymbolName); | ||
| |
|
| | #4 | ||
![]() | Re: Add the Timeframe to the Alert Box in TS? Paul | ||
| |
|
| The Following User Says Thank You to Trader333 For This Useful Post: | ||
daedalus (06-29-2009) | ||
| | #5 | ||
![]() | Re: Add the Timeframe to the Alert Box in TS? Triggers an alert window where the necessary text can be created. The text can be dynamic, static or absent. Usage Alert Notes If the text isn't set in the alert then Source, Symbol, Resolution, Price is displayed Alerts are shown on the last bar only Detailed information of alerts' settings is available in Formatting Studies > Alerts Example This statement will call an alert without text message: Alert; This statement creates a dynamic alert text and displays the number of the weekday: Alert( Text("Day-of-week-is:", DayOfWeek(Date)) ); This statement will show static text: If Close > Close[1] Then Alert( "Price turning up" ) Source: EasyLanguage / PowerLanguage manual Last edited by Tams; 06-29-2009 at 02:46 PM. | ||
| |
|
| The Following User Says Thank You to Tams For This Useful Post: | ||
daedalus (06-29-2009) | ||
| | #6 | ||
![]() | Re: Add the Timeframe to the Alert Box in TS? ALERT( StringVariable ); you can replace StringVariable with anything you like. e.g. var: StringVariable(""); stringvariable = numtoStr(BarInterval,0); If Close > Close[1] Then Alert( stringvariable ); | ||
| |
|
| The Following User Says Thank You to Tams For This Useful Post: | ||
daedalus (06-29-2009) | ||
| | #7 | ||
![]() | Re: Add the Timeframe to the Alert Box in TS? input: Chart.ID(1); var: StringVariable(""); stringvariable = "Chart=" + numtostr(chart.id,0) + ":" + GetSymbolName + ":" + numtoStr(BarInterval,0); If Close > Close[1] Then Alert( stringvariable ); | ||
| |
|
![]() |
| Thread Tools | |
| Display Modes | Help Others By Rating This Thread |
| |
| ∧ Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Easy Language - Order Last for 24 Hours on 1-min Timeframe | Radek | Automated Trading | 2 | 06-29-2009 09:28 AM |
| Help W/ Avg Vol By TimeFrame ELD | CuriousGeorge | Coding Forum | 1 | 04-05-2009 12:03 AM |
| How to Access Higher Timeframe Data | thewoj | Coding Forum | 3 | 02-29-2008 12:36 AM |
| How vital is the timeframe that you pick for your charts? | brownsfan019 | Technical Analysis | 29 | 11-22-2007 06:49 PM |
| Stay Alert! 11/15/07 | Soultrader | Market Analysis | 0 | 11-15-2007 05:03 AM |