[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Position size strategies



PureBytes Links

Trading Reference Links

Dans un courrier daté du 05/11/98 19:36:22 Heure d7iver Pari22 Madrid,
UWKaestner@xxxxxxxxxxx a écrit :

> 
>  Actually there is no way to code the simple task ("trade the half size
after 
> a
>  loss") in Easy Language.
>  (Without 
>  - changing to a shorter time frame, 
>  - using DLLs,
>  - testing all the entry- and exit-conditions to evaluate if the system is 
> long,
>    short or flat yet and calculate the position profit/-loss,
>  - writing data to a file an using it from the system (works only for 
> backtesting).
>  
>  ...and including an other cause of the fault.
>  

In fac, tis should be possible, but not by waiting the exit on loss
information that is one bar late ( known at the end of the bar, and available
for the next bar  once completed).

One may think  a clever solution:

You may know in advance if a position is a winning or losing one, by using
openpositionprofit:

Suppose that you are trading num contracts (Long in this case):

Instead of waiting the reverse signal to adjust the position that is known 1
bar later, you may try this

If openpositionprofit <0 then   sell num/2 contract else sell num contracts.

Doing so if position (openpositionprofit <0 )is a potential loser, you reverse
by a num/2 position ( your goal), the other case is a winning position, so you
reverse from the normal num amount.

The drawback with this simple method is that a winning position can tur into a
loser one ( during the completion of the current bar), but it's a minor
disadvantage.
Now, if you use stop orders, you are able to determine if the current positon
will be a real winner or a loser in advance ( more complicated , but feasible,
by using entryprice value [already known] and the stop value [known in
advance]. Also apply to limit orders).

I have not tested it, just directly  typed  into the Email software, but you
got the idea.

As you may see, TradStation has a lot of possibilities by properly unsing and
understanding the language ( not so easy, I admit)

Sincerely,

Pierre Orphelin
www.sirtrade.com