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

Notification

Icon
Error

Options
Go to last post Go to first unread
nisaf  
#1 Posted : Saturday, April 4, 2009 5:18:52 PM(UTC)
nisaf

Rank: Newbie

Groups: Registered, Registered Users, Subscribers
Joined: 5/6/2005(UTC)
Posts: 6

How can I set up an EA to do the following

1. plot a graphic above or below a bar when it is "X" days from a specific date.

- I can set up the start day,start month and start year -- with input boxes

2. then I would like to have a input box to specify the number of days ("X") to count forward:

- if it is too complicated to specify a variable for X, then I could use a set number, for e.g. 3.

3. then the graphic would plot on that day.

Thanks for your help.

johnl  
#2 Posted : Saturday, April 4, 2009 8:35:10 PM(UTC)
johnl

Rank: Advanced Member

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


Play around with this:

a1:=Input("day",1,30,7);
a2:=Input("month",1,12,1);
a3:=Input("year",1990,2010,2009);
a4:=Input("Bars",1,50,10);
a5:=BarsSince((DayOfMonth()=a1) AND
(Month()=a2) AND
(Year()=a3));
a6:=(a4=a5);
a6
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.