Hi,
I am trying to get the Stochastic value from other Symbol like below but i got 0 value.
if(Symbol() == EURUSD)
{
double Env_USDJPY_Sto_Cur = iCustom("USDJPY",60,"Stochastic",K_Period,D_Period,Slowing,0,0);
}
May some1 can gives some advice? thanks~
No need to use iCustom for stochastic. Just use
- docs.mql4.com
No need to use iCustom for stochastic. Just use
Thanks for the reply :)
However, i still got the 0 value --> Env_USDJPY_Sto_Cur = 0
double Env_USDJPY_Sto_Cur = iStochastic("USDJPY",0,K_Period,D_Period,Slowing,MODE_SMA,0,MODE_MAIN,0);
if i change it to
double Env_USDJPY_Sto_Cur = iStochastic(Symbol(),0,K_Period,D_Period,Slowing,MODE_SMA,0,MODE_MAIN,0);
i can get the value but the Symbol() is not i wanted.
Thanks.
Thanks for the reply :)
However, i still got the 0 value --> Env_USDJPY_Sto_Cur = 0
double Env_USDJPY_Sto_Cur = iStochastic("USDJPY",0,K_Period,D_Period,Slowing,MODE_SMA,0,MODE_MAIN,0);
if i change it to
double Env_USDJPY_Sto_Cur = iStochastic(Symbol(),0,K_Period,D_Period,Slowing,MODE_SMA,0,MODE_MAIN,0);
i can get the value but the Symbol() is not i wanted.
Thanks.
Things to check:
- Do you have a suffix on your symbols? Like "USDJPYm" or "USDJPY-sb"
- Have you had a USDJPY chart open? If not, it will take some time for data to be downloaded from your broker
Things to check:
- Do you have a suffix on your symbols? Like "USDJPYm" or "USDJPY-sb"
- Have you had a USDJPY chart open? If not, it will take some time for data to be downloaded from your broker
Hi,
i have open the EURUSD Chart and drag my EA on it, my EA have below command but i still get the 0 value, only i use Symbol() instead of "EURUSD" just can get the value.
double Env_USDJPY_Sto_Cur = iStochastic("EURUSD",0,K_Period,D_Period,Slowing,MODE_SMA,0,MODE_MAIN,0);
Please check my first point.
If you are unsure, post a screenshot of your chart.
Hi,
i just put "EURUSD", attached is the print screen.
thanks.
Hi,
i just put "EURUSD", attached is the print screen.
thanks.
You need to write EURUSD.sfx1
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi,
I am trying to get the Stochastic value from other Symbol like below but i got 0 value.
if(Symbol() == EURUSD)
{
double Env_USDJPY_Sto_Cur = iCustom("USDJPY",60,"Stochastic",K_Period,D_Period,Slowing,0,0);
}
May some1 can gives some advice? thanks~