Discussions
»
Product and Service Development
»
Formula Assistance
»
if( C hasn't Crossed MOV(C, 20, S) since last trade then do not buy) how to code?
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?
|
|
|
|
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?
|
|
|
|
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)
|
Discussions
»
Product and Service Development
»
Formula Assistance
»
if( C hasn't Crossed MOV(C, 20, S) since last trade then do not buy) how to code?
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.