if( MaxValue>MinValue) Comment("\n", "Highest value = ",MaxValue,"\n"); else if(MaxValue<MinValue) Comment("\n","\n", "Lowest value = ",MinValue,"\n");
- Max > min: you print out max and are done.
- Max = min: you then test for Max < Min which is false and print nothing.
- Max < min: is impossible and you print nothing.
- LiorB: I've only suceeded to 'Comment' the highest value, failing do the same for lowest value.Why are you comparing values, when all you want is to Comment both?
William Roeder:
- Max > min: you print out max and are done.
- Max = min: you then test for Max < Min which is false and print nothing.
- Max < min: is impossible and you print nothing.
- Why are you comparing values, when all you want is to Comment both?
If I do that :
if(MaxValue>MinValue) { Comment("\n", "Highest value = ",MaxValue,"\n", "Lowest value = ",MinValue,"\n"); }
The lowest value is always 0
So, I can't figure it out.
What is wrong in code???
LiorB:
If I do that :
The lowest value is always 0
So, I can't figure it out.
What is wrong in code???
I have test it and working correct.
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hello all,
I'm trying to record the values of EMA indicator for the last 610 candles.
I've only suceeded to 'Comment' the highest value, failing do the same for lowest value.
And I don't understand where I'm failing.
I've attached my code.