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 |

Comlicated rule that works as a trailing stop for Back Scanner, Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
pipeacosta
Posted : Sunday, July 26, 2009 11:08:00 PM
Registered User
Joined: 4/12/2008
Posts: 41
I want to create a rule that works as a trailing stop to apply in Back Scanner, 1. Im defining the first part of the trailing stop as follows: IF Price.MinLow(5, 1) > price.low Then pass2. The complicated part is, I want to trigger that stop ONLY if its > than the Price.Open of the next bar of the rule I used as a Buy signal. In other words, the trailing stop should be triggered only if > entry price. If the Buy rule were the following, whats the syntax for the entire trailing stop rule: Rule used as a Buy in Back Scanner: If price.close > price.close(1) then passPs: I suppose I have to name a single variable “entryprice” for the Buy rule, (I dont know how exactly) and then: something like IF price.low > “entry price” then passA million thanks.
Bruce_L
Posted : Tuesday, July 28, 2009 3:49:35 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
I do not know of a way to access the Entry Price of the Trade in a generalized fashion in a RealCode Rule or in anything besides one of the built in Trade Based Rules.

You pretty much need to re-create the entire BackScan in RealCode to know the Entry Price to use it in RealCode. This is rarely practical as the RealCode required can be very complicated and any changes to the BackScan would require similar alterations to the RealCode as well.

-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.