Rank: Member
Groups: Registered, Registered Users, Subscribers Joined: 7/13/2005(UTC) Views messages in topic : 20
|
Can anyone help me in using Trough() and Peak() functions with intraday 1 minute data.
They are not providing the real results and mostly i get FUNCTION DIDNOT RETURN VALUE.
Any help will be appreciated.
Thanks
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 4/1/2006(UTC) Posts: 135 Location: Romania
|
That is most probably because the percentage u specified in function was to big for the very small movements in a 1 min chart. Verify manually the percentage difference between two peaks or troughs and put that result in ur peak or trough function.
|
|
|
|
Rank: Member
Groups: Registered, Registered Users, Subscribers Joined: 7/13/2005(UTC) Views messages in topic : 20
|
I used only 1 percent and it returned nothing
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 4/1/2006(UTC) Posts: 135 Location: Romania
|
abc,
put your formula here to have a look. Anyway 1 percent is still a big move in a one min chart especially if it is a forex chart.
|
|
|
|
Rank: Member
Groups: Registered, Registered Users, Subscribers Joined: 7/13/2005(UTC) Views messages in topic : 20
|
writeval(Trough(3,LOW,1));
writeval(Troughbars(3,LOW,1))
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 4/1/2006(UTC) Posts: 135 Location: Romania
|
the formula is corect but the percentage is to big for a 1 min chart as i have told u. try for example writeval(trough(3,l,0.02)) that should work and u will see that the formula is ok.
|
|
|
|
Rank: Member
Groups: Registered, Registered Users, Subscribers Joined: 7/13/2005(UTC) Views messages in topic : 20
|
Yes now at least i get some value returned , Thanks for ur help!!!
|
|
|
|
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.