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?
Size:
Color:
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.
Size:
Color:
Which posSiz would you prefer, where I can set this figures?
Size:
Color:
The Pyramiding PosSizer.
Size:
Color:
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.
Size:
Color:
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.
Size:
Color:
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?
Size:
Color:
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.
Size:
Color:
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.
Size:
Color:
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%.
Size:
Color: