logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
ktimptim1  
#1 Posted : Monday, March 25, 2013 12:30:14 AM(UTC)
ktimptim1

Rank: Newbie

Groups: Registered, Registered Users
Joined: 3/23/2013(UTC)
Posts: 2

i am not sure what i am missing in the below mentioned filter statement -

{price has a consolidation period for at least 30 days}
HHV(H,30) <= PriceChannelHigh(30) AND
LLV(L,30) >= PriceChannelLow(30) AND
{adx is less than 25 for atleast 20 bars}
BarsSince(ADX(8) < 25) > 20 AND
{both DI lines are above adx for atleast 10 bars}
BarsSince(ADX(8) < MDI(13)) > 10 AND
BarsSince(ADX(8) < PDI(13)) > 10;

maneesh.

wabbit  
#2 Posted : Monday, March 25, 2013 4:34:08 AM(UTC)
wabbit

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers, Unverified Users
Joined: 10/28/2004(UTC)
Posts: 3,111
Location: Perth, Western Australia

Was thanked: 16 time(s) in 16 post(s)
I think you've got some comparison operators facing the wrong direction.... Separate your code into sections or line by line, and see if the results are you expect, then continue to build the parts until the system is complete. wabbit [:D]
Users browsing this topic
Guest (Hidden)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.