lower entries
Author: techtrader007
Creation Date: 6/9/2011 10:39 AM
profile picture

techtrader007

#1
How do create following simple script.

For example RSI 10 < 30 buy 10% of my 10000 equity

if price are lower than my previous entry buy 20% of my 10000 equity
if price are lower than my previous entry buy 30% of my 10000 equity
if price are lower than my previous entry buy 40% of my 10000 equity

Exit: if close > sma5

Do I need for scale in functions a position size script or can I program scale in functions in the script as well?

profile picture

Eugene

#2
See "RSI Agita" strategy on how to program the "price lower than previous entry" condition.

For backtests involving portfolio equity, you need to use (program) a PosSizer.
profile picture

techtrader007

#3
Which posSiz would you prefer, where I can set this figures?
profile picture

Eugene

#4
The Pyramiding PosSizer.
profile picture

techtrader007

#5
Is there an an example to add positions. In RSI Agita it buys all on the same day .
I would like to buy only one position today if RSI < 40 and if close < entryposition1 and rsi < 30 the following next day closing price and if close < entryposition2 and rsi < 20 annother one, so maximum 3 positions on three different days . Not all on the same day.

CODE:
Please log in to see this code.

profile picture

Eugene

#6
This is best handled by the Max Positions Per Day PosSizer (built in WL6) but this makes applying the Pyramiding PosSizer impossible.

For the "price lower than previous entry" condition, take this rule from RSI Agita:
CODE:
Please log in to see this code.


When making a trade, check the last active position's entry date and don't make that trade if a trade has already been taken today. That should do it.
profile picture

techtrader007

#7
Thanks. Is there an add on for Pyramid trade to scale up the size in weakness.
and a percentage add on for 1 signal 10% 2 signal 20% 3 signal 30% and 4 signal 40%.
The pozSizerSettings are not possible for this.
Do you know where I can set this configuration?
profile picture

Eugene

#8
The opposite of the scaled-down pyramid? Never considered it when creating the PosSizer. The existing options can only add equal positions (these addon trades can be any size compared to the base but their size is fixed) or take progressively smaller positions.

I'll look if increasing the addon trade size in the PosSizer is a possible enhancement for a future version.
profile picture

Eugene

#9
QUOTE:
and a percentage add on for 1 signal 10% 2 signal 20% 3 signal 30% and 4 signal 40%.

Seems feasible. Incrementally increasing/decreasing pyramid size will make it to the next build.
profile picture

Eugene

#10
The "Reverse Incremental" pyramid (found in PosSizer library 2011.07) allows to build the pyramid like this:
QUOTE:
and a percentage add on for 1 signal 10% 2 signal 20% 3 signal 30% and 4 signal 40%.
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).