i am trying to learn mt4 language.i am very new at coding.i want to ask some questions.i m sure all of my questions are very simple.please answer and help me.
first, i want to define stiuation when rsi crosses 50 line.
i guess code should be like this.
if (rsi2 < 50 && rsi1 >50) buy;
how can define variable rsi2 which represents previous bar rsi value and how can define variable rsi1 which represents current bar rsi value????pls answer this..
first, i want to define stiuation when rsi crosses 50 line.
i guess code should be like this.
if (rsi2 < 50 && rsi1 >50) buy;
how can define variable rsi2 which represents previous bar rsi value and how can define variable rsi1 which represents current bar rsi value????pls answer this..