Rising ADX filter

Enter your questions or support issues here
Post Reply
johnnie1
Posts: 3
Joined: Wed May 20, 2020 4:04 am

Rising ADX filter

Post by johnnie1 » Wed May 20, 2020 4:06 am

I want to buy if the ADX is equal to or greater than 25 , with a filter that the adx is rising ie last bar is greater than 2nd last bar

I think the first part would be

Buy at market, blank, 1m, last bar, ADX,14, blank, blank,greater than,1m,last bar,nominated value,25,blank,blank.
Is this correct???

I have problems coding the second line ie the rising ADX filter. How do I compare the last bar's ADX value to the 2nd last bar's ADX value. What is the coding for this

Administrator
Site Admin
Posts: 7
Joined: Thu Aug 15, 2019 7:38 am

Re: Rising ADX filter

Post by Administrator » Wed May 20, 2020 4:46 am

It is just a matter of nominating the required lookback
Image
Attachments
2020-05-20 11_43_36-ConTEXT - [C__Users_David_Documents_Agility Trader 6_ADX.sdf].jpg
2020-05-20 11_43_36-ConTEXT - [C__Users_David_Documents_Agility Trader 6_ADX.sdf].jpg (10.27 KiB) Viewed 97 times

johnnie1
Posts: 3
Joined: Wed May 20, 2020 4:04 am

Re: Rising ADX filter

Post by johnnie1 » Wed May 20, 2020 5:57 am

I do not understand why the first line should not have a lookback of "last bar". Does agility trader wait until the candle bar is closed to take a trade. ie only open trade on open of next bar when conditions are meet or does it open trade mid bar if conditions are meet. If I add "Last bar" to lookback will it then only open trade on close of bar? Do not understand regarding leaving Lookback blank compared to using "last bar".

Administrator
Site Admin
Posts: 7
Joined: Thu Aug 15, 2019 7:38 am

Re: Rising ADX filter

Post by Administrator » Wed May 20, 2020 1:09 pm

A Lookback (Lbk) value left blank implies the Last Bar (value of 1). No calculations are made on the Current Bar unless the lookback is specifically to zero.

The Lbk value of 1 could have been left blank in lines 3 & 5 in the illustration above but was inserted for clarity to highlight the bars being referenced.

johnnie1
Posts: 3
Joined: Wed May 20, 2020 4:04 am

Re: Rising ADX filter

Post by johnnie1 » Thu May 21, 2020 12:49 am

Thanks

Post Reply