The indicator below tries to address that requirement: Code attached.Calculation for open trades
1 Lot AUDUSD long = 1 lot AUD long / 1 lot USD short
2 Lot EURAUD short = 2 Lot EUR short / 2 lot AUD long
1 Lot EURUSD short = 1 Lot EUR short / 1 Lot USD long
0.5 Lot EURGBP short = 0.5 EUR short / 0.5 GBP long
Only Lot Results would be displayed like:
AUD: 3.00
USD: 0.00
EUR: -3.50
CurrencyExposure
- renexxxx
- Trader
- Posts: 860
- Joined: Sat Dec 31, 2011 3:48 am
CurrencyExposure
Ernst (Tebis) had the idea to create an indicator that would display the exposure of currencies (as opposed to currency pairs, by using the following calculation, and I quote:
You do not have the required permissions to view the files attached to this post.
Last edited by renexxxx on Sat Oct 25, 2014 8:44 pm, edited 1 time in total.
- mobthehop
- Trader
- Posts: 362
- Joined: Wed Nov 16, 2011 12:16 am
CurrencyExposure
another nice one - thanks!
- milanese
- TechAdmin
- Posts: 3293
- Joined: Wed Jan 09, 2013 9:02 am
- Location: btr rdx, r8 +
CurrencyExposure
Great coding, I like it!
Cheers
Tommaso
Cheers
Tommaso
Global Prime is the official SHF broker 
Searching for Servers and Workstations with individual configuration?
Just PM
Click here to go to the BoardKnowledgeBase
NOTE: Cookies and JavaScript are required for the using the board, with full functionality
Searching for Servers and Workstations with individual configuration?
Just PM
NOTE: Cookies and JavaScript are required for the using the board, with full functionality
- Tebis
- Trader
- Posts: 111
- Joined: Wed Nov 16, 2011 9:50 am
- Location: Switzerland
CurrencyExposure
Information is all, gr8 indicator, thanks Rene for the fast coding 
- renexxxx
- Trader
- Posts: 860
- Joined: Sat Dec 31, 2011 3:48 am
CurrencyExposure
There was a little copy-paste bloop in the code ...
This
should of course be:
Update is in post 1.
This
Code: Select all
#property indicator_separate_window
Code: Select all
#property indicator_chart_window
- Tebis
- Trader
- Posts: 111
- Joined: Wed Nov 16, 2011 9:50 am
- Location: Switzerland
CurrencyExposure
thanks Rene !renexxxx » Yesterday, 22:46 wrote:There was a little copy-paste bloop in the code ...
- renexxxx
- Trader
- Posts: 860
- Joined: Sat Dec 31, 2011 3:48 am
CurrencyExposure
I have made a small cosmetic change to this indicator, as the white text color was hard to read in bright green and bright red tiles. So, it now looks like this:
Thanks go to Tebis for finding this fault. Update is in post 1.
You do not have the required permissions to view the files attached to this post.