Forum

MA on RSI Expert Advisor on MQL5

hello, What I want to code is as follow: 1> calculate RSI on (14 period close) 2> calculate EMA 9 on (RSI value) i have try so many times but unable to solve. *** But it shows an error that is "Invalid Array Access ". here is my code: double vwap, ema, ema_1, wma, rsi, rsi_1; double rsi_array[]

ObjectGet not getting the angle value of a trend line

hello, i wanted to draw a trend line programmatically, and get the angle value of the trend line. here is my code. ObjectDelete ( "angle" ); ObjectCreate ( "angle" , OBJ_TRENDBYANGLE , 0 , iTime ( NULL , 0 ,5),High[5], iTime ( NULL , 0 , 1 ),High[ 1 ]); ObjectSet( "angle" , OBJPROP_STYLE