| Forex Trading Laboratory Discussion forum for Forex traders - all forex pairs |
![]() | | Tweet | |
| | #1 | ||
![]() | Forex Symbol Function I set my alerts to 'text to speech'. Here is an example as to how you would use this function: Alert("Bullish cross over on " + SymbolText + " " + NumtoStr(BarInterval,0) " minute chart."); ie. if symbol is EURJPY on 60min chart.......this will display/speak..... "Bullish crossover on Euro Yen 60 minute chart." You can make a variable using 'BarType' to substitute tick, minute, volume, range bar in the above example if you use multiple bar types. eg. "Bullish crossover on Euro Yen 100 range bar chart." Code: SymbolText=GetSymbolName; //default return for ANY symbol if symbolroot="AUDJPY" then SymbolText="Aussie Yen"; if symbolroot="AUDUSD" then SymbolText="Aussie"; if symbolroot="CADJPY" then SymbolText="Canadian Yen"; if symbolroot="CHFJPY" then SymbolText="Swiss Yen"; if symbolroot="EURAUD" then SymbolText="Euro Aussie"; if symbolroot="EURCAD" then SymbolText="Euro CAD"; if symbolroot="EURCHF" then SymbolText="Euro Swiss"; if symbolroot="EURGBP" then SymbolText="Euro Sterling"; if symbolroot="EURJPY" then SymbolText="Euro Yen"; if symbolroot="EURUSD" then SymbolText="Euro"; if symbolroot="GBPCHF" then SymbolText="Sterling Swiss"; if symbolroot="GBPJPY" then SymbolText="Sterling Yen"; if symbolroot="GBPUSD" then SymbolText="Cable"; if symbolroot="NZDJPY" then SymbolText="Kiwi Yen"; if symbolroot="NZDUSD" then SymbolText="Kiwi"; if symbolroot="USDCAD" then SymbolText="Dollar CAD"; if symbolroot="USDCHF" then SymbolText="Swiss"; if symbolroot="USDJPY" then SymbolText="Yen"; if symbolroot="$DXY" then SymbolText="Dollar Index"; if symbolroot="JC" then SymbolText="Japanese Yen"; if symbolroot="EC" then SymbolText="Euro"; if symbolroot="AD" then SymbolText="Aussie Dollar"; if symbolroot="BP" then SymbolText="Pound Sterling"; if symbolroot="CD" then SymbolText="Canadian Dollar"; if symbolroot="SF" then SymbolText="Swiss Franc"; Enjoy! | ||
| |
|
| The Following User Says Thank You to simterann22 For This Useful Post: | ||
Tams (08-30-2009) | ||
![]() |
| Thread Tools | |
| Display Modes | Help Others By Rating This Thread |
| |
| ∧ Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| A True Composite Symbol for Multicharts. | synonym | Coding Forum | 43 | 08-04-2011 12:24 PM |
| Symbol for Esm in IB | cowcool | E-mini Futures Trading Laboratory | 5 | 04-17-2009 02:50 PM |
| Review Of Strategic Tips on Forex Signals In Forex Forum | forexgreenland | Market Internals | 3 | 11-13-2008 09:22 PM |
| Symbol Settings | ImXotep | Brokers and Data Feeds | 1 | 05-04-2007 06:05 PM |
| @ES.D symbol in ASCII format | ImXotep | Stock Trading Laboratory | 0 | 04-09-2007 03:36 PM |