bollingers bands always give the same value and give the same value in each symbol there is no error in the code sequence but there is a logical error can you help
property copyright "Copyright 2024, MetaQuotes Ltd."
property link "https://www.mql5.com"
property version "1.00"
property strict
//+------------------------------------------------------------------+
//| Script program start function |
//+------------------------------------------------------------------+
void OnStart()
{
double bb_degeri = iBands(NULL,PERIOD_CURRENT,21,0,2,PRICE_CLOSE);
Alert("");
Alert(bb_degeri);
it needs to give a different value for each symbol and the forex bot I will write will open and close trades according to these values
Your question states MQL4, your code looks more like MQL5, you need to clarify which language you are using as they are distinctly different.
MQL4 is relitevly straight forward, check the documentation: iBands
Values are retrieved using the following code
MQL5 requires a handler. Again check the documentation: iBands
Example: