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

Notification

Icon
Error

Options
Go to last post Go to first unread
opensource  
#1 Posted : Sunday, May 24, 2009 12:40:19 PM(UTC)
opensource

Rank: Member

Groups: Registered, Registered Users, Subscribers
Joined: 1/27/2009(UTC)
Posts: 11

I wanted to do a couple of thing with the Expert Advisors/Indicator Builder and RMO in particular: one was to know the number of days the stock has been in an uptrend since the RMO gave a buy signal (blue arrow) in EA, and two was to know how many buy and sell signals RMO (or any other EA) has given in the last one year. Any idea how I can code this? Thanks.
johnl  
#2 Posted : Sunday, May 24, 2009 8:17:50 PM(UTC)
johnl

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 11/7/2005(UTC)
Posts: 602

When I want to do stuff like this I usually turn my function into a 1 or 0 signal then use
BarsSince() or Cum() to get my counts.
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.