| Index | Recent Threads | Who's Online | User List | Search |
|
|
![]() |
Portfolio123 » List all forums » Forum: Feature Suggestions » Thread: Feature Request: Allow #Equity for series in Highest(...) |
|
Total posts in this thread: 6 |
[Request a Feature] [Add To My Favorites] [Watch this Thread] |
| Author |
|
|
strader1
Advanced Member
|
This would alllow for rules like Sell if Close(0, #Equity) < 0.8*Highest(#Equity,100,0). That is, if all else fails, sit out until the current equity is within 20% of the highest equity over the last 100 bars. View the feature request here. |
||
|
|
Jim101
Advanced Member
|
If the requested portfolio trailing stop cannot be done, this would be a fallback although I think it gets executed only on re-balance while the trailing stop would happen on a daily basis. A current work-around is to use the Max function Close(0,#Equity) < 0.8*Max(Close(ii,#Equity,..) but this would be less accurate than Highest since you might miss a gradual slide into the abyss. |
||
|
|
strader1
Advanced Member
|
Jim: Hi. I almost exclusively use daily rebalances. So for me they're pretty much identical. Weekly (or longer) ports could be reconfigured as daily to take advantage. You could use the Mod(...) so rebalancing still takes place weekly (longer). Max(...) has limitations on the number of parameters, and you have to individually enumerate them. Best, Bill |
||
|
|
Jim101
Advanced Member
|
Thanks, Bill. I rarely use anything but a weekly rebalance - probably a habit from only using the screener when I started. Since I don't generate many trades in my models, taking a look at daily re-balancing may be worth the effort. Jim |
||
|
|
strader1
Advanced Member
|
Jim: Another function you may want to look at is "WeekDay." Best, Bill |
||
|
|
Jim101
Advanced Member
|
Bill, WeekDay is interesting. So when I run a daily re-balance, the sell rules fire but I can restrict the buy rules to Monday. Until one of our Feature Requests is in place, this can be a work-aroound. Thanks. Jim |
||
|
| [Show Thread Printable Version] |