----
if 50EMA is more than 200EMA, Plot equal +1.
if 50EMA is less than 200EMA, Plot equal -1.
----
The following is my code:
if (EMA(50)[1] > EMA(200)[1]){ Plot2.Set(1); } if ( EMA(200)[1] > EMA(50)[1]) { Plot2.Set(-1); }
Please check the attached picture. It shows my indicator worked well on ARNA daily chart (Plot = +1), but in Market Analyzer it returned -1.
I would appreciate your suggestion.
Thanks
Comment