This is a trading item or a component that was created using QuantShare by one of our members.
This item can be downloaded and used by QuantShare Trading Software.
Trading items are of different types. There are data downloaders, trading indicators, trading systems, watchlists, composites/indices...
You can use this item and hundreds of others for free by downloading QuantShare.
Top Reasons Why You Should Use QuantShare:
Works with US and international markets (stock, forex, options, futures, ETF...)
Offers you the tools that will help you become a profitable trader
Allows you to implement any trading ideas
Exchange items and ideas with other QuantShare users
Our support team is very responsive and will answer any of your questions
We will implement any features you suggest
Very low price and much more features than the majority of other trading software
This simple function can be used in Forex trading; it returns for a given symbol whether the specified currency is the base currency or the counter/quote currency.
The function is named "isbase", it accepts the currency name and it returns one if the specified currency is the base currency, minus one if the specified currency is the counter currency and zero if the specified currency does not belong to the current symbol.
For example, if you are working with the EURUSD forex pair, the following formula: isbase("USD"), returns -1.
This Forex function can be used in different scenarios:
Create a conditional trading rule that uses different rules depending on whether the currency tested is the base currency of the pair or not.
Create a composite index that creates an index for a particular currency. In this case, you must be able to detect whether the currency is a base currency and modify the calculation accordingly. For example, if you want to calculate the number of times the USD closed higher against other currencies, you should use "close > ref(close, 1)" in case USD is the base currency and "close < ref(close, 1)" in case the USD if the counter currency.
Forex Pairs historical data can be downloaded using one of the following downloaders: Forex Quotes downloads EOD quotes for the following forex pairs: CHFJPY, EURCHF, EURGBP, EURJPY, EURUSD, GBPUSD, USDCHF, USDDEM (U.S Dollar / Germany Deutsche Mark), USDJPY, USDRUB (U.S Dollar / Russian Ruble) Futures and Forex historical data gets historical data for futures, as well as for the following forex pairs: AUDJPY, AUDUSD, AUDCAD, GBPJPY, GBPCHF, EURAUD, EURCAD, EURJPY, EURCHF, EURGBP, EURUSD, USDCAD, USDJPY, USDCHF, GBPUSD, USDCNY (U.S Dollar / Chinese Yuan), USDINR (U.S Dollar / Indian Rupees), USDBRL (U.S Dollar / Brazilian Real), USDKRW (U.S Dollar / Korean Won)
>>>> More trading objects? click here to search for trading sytems, downloaders, screens, custom drawing tools, indicators... by country, market or style.