Where is the code?
Marco vd Heijden:
Where is the code?
woops thanks!
okay so you store the current highest value in a variable say
double curr_highest_value;
curr_highest_value=x;
And then in another part u simply compare the value of the highest value to the new current value
if(new_highest_value!=curr_highest_value) { Alert("There is a new Highest value!!"); curr_highest_value=new_highest_value;// overwrite the old value with the new value }
or
if(new_highest_value>curr_highest_value) { Alert("There is a new Highest value!!"); curr_highest_value=new_highest_value;// overwrite the old value with the new value }
Marco vd Heijden:
okay so you store the current highest value in a variable say
And then in another part u simply compare the value of the highest value to the new current value
Ill give it a go! Thank you Marco much appreciated! :)
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
Need some help with one section of my code, I am trying to add feature which will alert when previous high/ low values of index are reached by the current index (eg. low/ high point has been set, histogram crosses line creates new high/ low point and then crosses again until first high/ low has been reached - at which point an alert). I have tried several different approaches now but they always end in error, and not do as wanted on chart.
Any help/ ideas much appreciated..