ArraySort - Export strings in descending or ascending order
- Array sort help
- How to create rank function for some value's? Need Help
- Ask!
MQL4? ArraySort() returns a bool, not string. So if it returns true, you'll have to iterate through and create a string out of it's content.
MQL4? ArraySort() returns a bool, not string. So if it returns true, you'll have to iterate through and create a string out of it's content.
double BUY_1 = ArrayMinimum (My_array);
- Please edit your (original) post and use the CODE
button (Alt-S)! (For large amounts of code, attach it.)
General rules and best pratices of the Forum. - General - MQL5 programming forum
Messages Editor -
double My_array [7]; My_array [1] = RSI_EUR_GBP; My_array [2] = RSI_EUR_AUD; My_array [3] = RSI_EUR_NZD; My_array [4] = RSI_EUR_USD; My_array [5] = RSI_EUR_CAD; My_array [6] = RSI_EUR_CHF; My_array [7] = RSI_EUR_JPY;
Your array has seven (7) elements. Their indexes are [0 … 6]. You would know that if you had used strict.Always use strict. Fixing the warnings will save you hours of debugging.
- Why did you post your MT4 question in the Root / MT5 Indicators
section instead of the MQL4 section, (bottom of the Root page?)
General rules and best pratices of the Forum. - General - MQL5 programming forum
Next time post in the correct place. The moderators will likely move this thread there soon.
- Please edit your (original) post and use the CODE
button (Alt-S)! (For large amounts of code, attach it.)
General rules and best pratices of the Forum. - General - MQL5 programming forum
Messages Editor - Your array has seven (7) elements. Their indexes are
[0 … 6]. You would know that if you had used strict.
Always use strict. Fixing the warnings will save you hours of debugging.
- Why did you post your MT4 question in the Root / MT5 Indicators
section instead of the MQL4 section, (bottom of the Root page?)
General rules and best pratices of the Forum. - General - MQL5 programming forum
Next time post in the correct place. The moderators will likely move this thread there soon.