Dear Members
Seeking advise to improve my code writing for the attached file, where I want to find VSA concept Efforts High and REsult Low.
Currently I am using if statements and many conditions are repeated in different section of method.
I am sure there should be a better way to achieve same results, e.g. may be using Multi Dimensions Array or Matrix or Vector!!!
Since I have never used them, and seek advise will it be worth to explore them!!!
Also if I can get some initial guidelines to kick it off, that will be great help.
The full is attached in file as can not paste here due to character limits.
Thanks a lot @Dominik Egert
This sounds interesting. Should I also take the message that using unit/int variable are optimum than using bool variables, as most of the time, for ease of reading I intend to use bool variables instead of unit/int type e.g. Trend_Direction I can easily use 0(Sideways) 1(Long) 2 (Short) but I prefer to used custom enumerations as SIDEWAYS,LONG and SHORT.
So for Spread: instead of "low,"high","ultra" I should use unit case1 = 123;
"low","low","ultra" case2 = 113;
And Spread+Range I can use Spread(low,high,ultra) + Range(low,high,ultra) case1 = 123123;
Spread(low,low,ultra) + Rate(ultra+high+low case2 = 113321;
Just trying to making sure I understood your concept.
Also a question out of curiosity what is the benefits of Metrix/Vectors? Is is worth to invest time to learn these? (I am already way behind my budgeted time for learning from scratch MQL and have my own EA)
Thanks again for your valuable feedback.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Dear Members
Seeking advise to improve my code writing for the attached file, where I want to find VSA concept Efforts High and REsult Low.
Currently I am using if statements and many conditions are repeated in different section of method.
I am sure there should be a better way to achieve same results, e.g. may be using Multi Dimensions Array or Matrix or Vector!!!
Since I have never used them, and seek advise will it be worth to explore them!!!
Also if I can get some initial guidelines to kick it off, that will be great help.
The full is attached in file as can not paste here due to character limits.