Rank: Member
Groups: Registered, Registered Users, Subscribers Joined: 7/22/2007(UTC) Posts: 16
|
What is the best way to determine whether an indicator is sloping up or down?
I have been using an IF statement and REF which works ok, but some custom indicators don't give you the opportunity to insert the REF function.
Thanks
Reddog
|
|
|
|
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)
|
Reddog,
Try the ROC() function.
wabbit [:D]
|
|
|
|
Rank: Member
Groups: Registered, Registered Users, Subscribers Joined: 7/22/2007(UTC) Posts: 16
|
Thanks wabbit,
Once you suggested it it is quite obvious but there are so many functions to get you head around, sometimes you don't see the forest from the trees.
Regards
Reddog
|
|
|
|
Rank: Member
Groups: Registered, Registered Users Joined: 9/22/2006(UTC) Posts: 14
|
The following, I believe, would give you the linear regression slope of the last five days of the 50-day simple moving average of the close. Substitute the indicator of your choice ... ;)
Slope50:=LinRegSlope(Mov(Close,50,S),5);
|
|
|
|
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.