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

Notification

Icon
Error

Options
Go to last post Go to first unread
deerisaw  
#1 Posted : Saturday, April 29, 2006 5:52:27 PM(UTC)
deerisaw

Rank: Newbie

Groups: Registered, Registered Users
Joined: 4/6/2006(UTC)
Posts: 9
Location: USA

I realize that I am probably being lazy, but I am definitely not a computer programmer and I am new to MS. Could someone help me write an explorer for these conditions: Buy when 5dSMA crosses over 20dSMA Sell when 5DSMA crosses below 20dSMA If you could also supply an indicator formula, that would be extremely beneficial so that I can back test. THX 8)
StorkBite  
#2 Posted : Saturday, April 29, 2006 6:37:26 PM(UTC)
StorkBite

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 3/19/2005(UTC)
Posts: 2,995

Was thanked: 14 time(s) in 10 post(s)
deerisaw- Make sure you go through the Formula Primer and also read the exampels in the User's Manual. The online help is a good source of examples too. Until you get through with that task, perhaps the code below will get you started. {colA: Buy} c1:=mov(C,5,S); c2:=mov(C,20,S); cross(c1,c2) {colB: Sell} c1:=mov(C,5,S); c2:=mov(C,20,S); cross(c2,c1) i1:=Input("Short average",5,50,5); i2:=Input("Long average",20,100,20); c1:=Mov(C,i1,S); c2:=Mov(C,i2,S); buy:=Cross(c1,c2); sell:=Cross(c2,c1); buy;-sell
deerisaw  
#3 Posted : Sunday, April 30, 2006 6:53:57 AM(UTC)
deerisaw

Rank: Newbie

Groups: Registered, Registered Users
Joined: 4/6/2006(UTC)
Posts: 9
Location: USA

g- Thanks for the simplistic help. =D> I have had a tough time reading the manual so seeing real demonstrations helps me out for the better. deerisaw
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.