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

Notification

Icon
Error

Options
Go to last post Go to first unread
lantador  
#1 Posted : Monday, August 18, 2008 12:32:52 PM(UTC)
lantador

Rank: Newbie

Groups: Registered, Registered Users, Subscribers
Joined: 8/8/2008(UTC)
Posts: 2

I don't want to get a buy signal if the C hasn't Crossed a 2o day moving average since last trade, how do I code that?
henry1224  
#2 Posted : Monday, August 18, 2008 6:06:13 PM(UTC)
henry1224

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 10/29/2004(UTC)
Posts: 1,394
Location: Glastonbury, CT

Was thanked: 2 time(s) in 2 post(s)

Please define your system?

Long only?long only with trend?long and short?short only?short only with trend?

long and short but only with trend?

What is your buy signal?

what is your exit signal?

lantador  
#3 Posted : Tuesday, August 19, 2008 12:53:37 AM(UTC)
lantador

Rank: Newbie

Groups: Registered, Registered Users, Subscribers
Joined: 8/8/2008(UTC)
Posts: 2

my buy signal is:
((
C - BBandBot(C, 20, S, 2)
)/
((
BBandTop(C, 20, S, 2) -
(
BBandBot(C, 20, S, 2)
))))
< 0

I have a stop loss 3%, so if the stock is in a negative trend I can get a buy signal after my stop loss has been executed. I want to prevent that by adding a formula that only indicates a buy signal again after a loosing trade if the stock has crossed the 20-day moving average, I want to do that so i know the stock isn't still in a negative trend before a buy again.



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.