Welcome to the Traders Laboratory Forums.
Forex Trading Laboratory Discussion forum for Forex traders - all forex pairs

Reply
Old 08-30-2009, 09:12 PM   #1

simterann22's Avatar

Join Date: May 2009
Location: Sydney
Posts: 64
Ignore this user

Thanks: 42
Thanked 51 Times in 20 Posts

Forex Symbol Function

Do you find you cannot either use text to speech alerts or get confused when pop ups quote 6 letter forex symbols? Here is a symbol function to help with this.

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";
Special thanks to TAMS and SURI for helping me with the bugs!

Enjoy!
simterann22 is offline  
Reply With Quote
The Following User Says Thank You to simterann22 For This Useful Post:
Tams (08-30-2009)

Reply

Thread Tools
Display Modes Help Others By Rating This Thread
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

All times are GMT -4. The time now is 02:44 AM.
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
CS to VB integration by DeskLancer
©2006-2011 Traders Laboratory, All Rights Reserved.