Rank: Member
Groups: Registered, Registered Users Joined: 5/17/2005(UTC) Posts: 14
|
Hello
Probably a dumb question but...
I want to create a expert that detects a ( + or - ) change in a indicator from the previous bar....
Eg........if stoch is higher than the previous bar = 1
Any help much appreciated
thanks
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 3/7/2005(UTC) Posts: 1,346
|
hey vince.... might try something like below.... you can add the input function to get fancy.....
stoch(5,3)>ref(stoch(5,3),-1)
for macd
macd()>ref(macd(),-1
======================
for less than previous bar.....
=======================
stoch(5,3)<ref(stoch(5,3),-1)
for macd
macd()<ref(macd(),-1
and btw, questions help us all.....thanks.....h
|
|
|
|
Rank: Member
Groups: Registered, Registered Users Joined: 5/17/2005(UTC) Posts: 14
|
Thanks Hayseed
Much Appreciated
|
|
|
|
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.