Download software Tutorial videos
Subscription & data-feed pricing Class schedule


New account application Trading resources
Margin rates Stock & option commissions

Attention: Discussion forums are read-only for extended maintenance until further notice.
Welcome Guest, please sign in to participate in a discussion. Search | Active Topics |

Backtesting rules Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
Gaute
Posted : Tuesday, September 8, 2009 12:20:22 PM
Registered User
Joined: 2/15/2008
Posts: 155

I need two rules for backtesting.  One to buy when the price closes above a moving average and one to sell when the price closes below a moving average.  The MA is 8 day.

Question.  Are the standard rules based on price based on the close.  IE:  Price crossing the 8 day.  Does that mean the closing price is crossing the 8 day?

Thanks for all responses.

Bruce_L
Posted : Tuesday, September 8, 2009 12:24:01 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
Yes, the standard Drag and Drop Rules are based on the Last or Closing value of an Indicator. You can create a Rule for Price crossing through the Moving Average by Dragging and Dropping Price onto the Moving Average and selecting Crossing Up Through or Crossing Down Through.

Rule Basics

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
Gaute
Posted : Tuesday, September 8, 2009 12:28:53 PM
Registered User
Joined: 2/15/2008
Posts: 155
That's what I was doing and the "buy signal" seem to be right  on but it didn't sell when the priced closed below the 8 day.  I have it set on 2 bars true and sell next open.
Bruce_L
Posted : Tuesday, September 8, 2009 12:33:52 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
I'm not quite sure I understand the phrase, "set on 2 bars true and sell next open", but Price can't cross up through its Moving Average two bars in a row. It can however be Above its Moving Average for two bars.

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
Gaute
Posted : Tuesday, September 8, 2009 12:42:27 PM
Registered User
Joined: 2/15/2008
Posts: 155
Thanks, I'll check my settings and get better input for you.
Bruce_L
Posted : Tuesday, September 8, 2009 12:58:29 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
You're welcome.

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
Users browsing this topic
Guest-1

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.