Download MetaTrader 5

Indicators: sideway trend indicator

To add comments, please log in or register
MetaQuotes Software Corp.
Moderator
182436
MetaQuotes Software Corp. 2013.10.25 06:55 

sideway trend indicator:

this sideway or trend...confuse?? use this indicator

Author: reza rahmad

rossiya
38
rossiya 2013.10.28 07:00  

Hi you have a bug in your code:


iADX(NULL,0,period_adx,PRICE_CLOSE,MODE_MINUSDI,0 && iADX(NULL,0,period_adx,PRICE_CLOSE,MODE_MAIN,0)
Umar Ismail
10932
Umar Ismail 2013.10.30 08:37  
if(
iADX(NULL,0,period_adx,PRICE_CLOSE,MODE_MAIN,0)>iADX(NULL,0,period_adx,PRICE_CLOSE,MODE_PLUSDI,0) &&
iADX(NULL,0,period_adx,PRICE_CLOSE,MODE_MAIN,0)>iADX(NULL,0,period_adx,PRICE_CLOSE,MODE_MINUSDI,0)&&
iADX(NULL,0,period_adx,PRICE_CLOSE,MODE_PLUSDI,0)>iADX(NULL,0,period_adx,PRICE_CLOSE,MODE_MINUSDI,0) &&
iADX(NULL,0,period_adx,PRICE_CLOSE,MODE_MAIN,0) < 20
)
MQL4 Comments
16319
MQL4 Comments 2013.10.30 10:42  
What are Moving Averages used in the above chart?
reza rahmad
2788
reza rahmad 2013.10.31 03:06  
ismail77:
if(
iADX(NULL,0,period_adx,PRICE_CLOSE,MODE_MAIN,0)>iADX(NULL,0,period_adx,PRICE_CLOSE,MODE_PLUSDI,0) &&
iADX(NULL,0,period_adx,PRICE_CLOSE,MODE_MAIN,0)>iADX(NULL,0,period_adx,PRICE_CLOSE,MODE_MINUSDI,0)&&
iADX(NULL,0,period_adx,PRICE_CLOSE,MODE_PLUSDI,0)>iADX(NULL,0,period_adx,PRICE_CLOSE,MODE_MINUSDI,0) &&
iADX(NULL,0,period_adx,PRICE_CLOSE,MODE_MAIN,0) < 20
)
okay sire i think that the bug i will change
reza rahmad
2788
reza rahmad 2013.10.31 03:10  
kacraj:
What are Moving Averages used in the above chart?
moving simple 20,50,100,200
To add comments, please log in or register