I have modified this by adding Position Sizing based on Daily ATR.
ATR Dollar Value represents the amount you wish to risk (or gain) if the price moves by the current ATR for the given period. You can use this to ensure that your risk or reward is the same for one ATR of movement across different instruments.
I have calculate Position size as ATR Dollar Value / (ATR x PipCost).
Here's an example:
ATR Dollar Value = $1000
EUR/USD 14 Day ATR = 0.0121
EUR/USD PipCost = 0.94
ATR x PipCost = 11 (rounded to the nearest integer)
Position Size = $1000 / 11 = 88
Since contract sizes are multiples of 10, you would us a postion size of 80 (rounding down) or 90 (rounding up).
The other way I use this information is to identify which pairs to trade. I have colored a pair's values green if the Position Size is less than ATR Dollar Value/10, and red if the Position Size is greater than ATR Dollar Value/10. This could be improved by sorting on Position Size.
In general, it does what I need it to. However, my programming abilities are not all that great, and I don't have much time to dedicate to fixing it up. If a high-powered programmer like you, Mr. Apprentice wants to look this over, I'm sure you can make it much more elegant than my hackwork.
I've also used this with my live account, which has access to all pairs, so I have set the limit of the arrays higher than the standard 20 symbols allowed in a demo version. I haven't actually used this on a demo version, so not sure what will happen. Again, if someone wants to do a bit of fixing so that it only allows 20 symbols, go right ahead.
The other obvious issue is that it does not display any text at the top of the columns or the last two values for the first two or three rows. I don't trade any of these symbols, so am not too bothered by it. But if someone wants to fix this, be my guest. I'm thinking that this whole concept is getting a bit far from the original purpose of this thread, so if anyone wants to simply rename this indicator to "Position Sizing" and start a new thread, go for it!