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
iStochastic() - MT4
iStochastic() - MT5
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.
Things to check:
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.
i just put "EURUSD", attached is the print screen.
You need to write EURUSD.sfx1
Problem Solve :D
Thanks a lot honest_knave !!!