GumRai:
Thanks
PRICE_HIGH is not a function, it enumerates to integer 2
Study High[] , iHigh() and iHighest()
![]() Play video | Please edit your post. For large amounts of code, attach it. |

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
Hi
I am trying to write a simple script to alert me if a pair is close to a resistance or support price. However when I try to use PRICE_HIGH instead of giving me the highest price for that pair in the given time frame, it just gives the value 2.
See the program I have attempted.
Any help will be gratefully recieved.
Patrick
int Count=0; // Global variable
//--------------------------------------------------------------------
int start() // Special funct. start()
{
double PRICE_HIGH;
double Price = PRICE_HIGH; // Local variable
Count++;
Alert("New tick ",Count," Price = ",Price);// Alert
return; // exit start()
}
//--------------------------------------------------------------------
int init() // Special funct. init()
{
Alert ("Function init() triggered at start");// Alert
return; // Exit init()
}
//--------------------------------------------------------------------
int deinit() // Special funct. deinit()
{
Alert ("Function deinit() triggered at exit");// Alert
return; // Exit deinit()
}