Attachments forums

List of attachments posted on this forum.


All files on forums: 136277

Re: Coding Help

kkfx, Wed Apr 19, 2023 3:25 am

Can anybody suggest the correct way to get long and short trends from step NEMA indicator?

Code: Select all

bool trendLong,trendShort;

Signal1 =iCustom(NULL, 0, "step nema (mtf + alerts + arrows)",PERIOD_CURRENT,NEMAperiod, 2, 0.5, 50.0,0,false,0.0,0.0,0,3,1,false, false, false, false,false,false,159,159,2,2,0.5,0.5,true,true, 2, 0);
Signal2 =iCustom(NULL, 0, "step nema (mtf + alerts + arrows)",PERIOD_CURRENT,NEMAperiod, 2, 0.5, 50.0,0,false,0.0,0.0,0,3,1,false, false, false, false,false,false,159,159,2,2,0.5,0.5,true,true, 3, 0);

      
      if(Signal1>0 && Signal1!=EMPTY_VALUE && Signal2!=0 && Signal2!=EMPTY_VALUE)trendLong=true;
      if(Signal1>0 && Signal1!=EMPTY_VALUE && Signal2>0 && Signal2!=EMPTY_VALUE)trendShort=true;


I am using this version of indicator
All files in topic