Generally speaking, how do you sort data using metatrader?
I am trying my hand at indicator development and right now I'm trying to get the ATRs of 10 different currencies, and then rank them. So, for example:
Input ATR Values:
EURUSD: 100
GBPJPY: 150
GBPUSD: 91
AUDUSD: 99
USDJPY: 111
GBPCHF: 123
USDCAD: 321
EURCAD: 110
USDCHF: 50
EURJPY: 90
Output ATR Values:
USDCAD: 321
GBPJPY: 150
GBPCHF: 123
USDJPY: 111
EURCAD: 110
EURUSD: 100
AUDUSD: 99
GBPUSD: 91
EURJPY: 90
USDCHF: 50
Output: Rank
USDCAD: 10
GBPJPY: 9
GBPCHF: 8
USDJPY: 7
EURCAD: 6
EURUSD: 5
AUDUSD: 4
GBPUSD: 3
EURJPY: 2
USDCHF: 1
That way, in the indicator window, there will be 10 distinct levels showing order as opposed to a spaghetti-esque jumble.
I am trying my hand at indicator development and right now I'm trying to get the ATRs of 10 different currencies, and then rank them. So, for example:
Input ATR Values:
EURUSD: 100
GBPJPY: 150
GBPUSD: 91
AUDUSD: 99
USDJPY: 111
GBPCHF: 123
USDCAD: 321
EURCAD: 110
USDCHF: 50
EURJPY: 90
Output ATR Values:
USDCAD: 321
GBPJPY: 150
GBPCHF: 123
USDJPY: 111
EURCAD: 110
EURUSD: 100
AUDUSD: 99
GBPUSD: 91
EURJPY: 90
USDCHF: 50
Output: Rank
USDCAD: 10
GBPJPY: 9
GBPCHF: 8
USDJPY: 7
EURCAD: 6
EURUSD: 5
AUDUSD: 4
GBPUSD: 3
EURJPY: 2
USDCHF: 1
That way, in the indicator window, there will be 10 distinct levels showing order as opposed to a spaghetti-esque jumble.