| Index | Recent Threads | Who's Online | User List | Search |
|
|
![]() |
Portfolio123 » List all forums » Forum: Errors » Thread: Value not set for temp variable @L uid 17624 |
|
Total posts in this thread: 8 |
[Request a Feature]
[Post new Thread] [Add To My Favorites] [Watch this Thread] |
| Author |
|
|
sglinski
Advanced Member UNITED STATES Joined: Feb 16, 2006 Posts: 139 Status: Offline |
I got this error on a port rebalance, but it is working now (can't reproduce it for you)... |
||
|
|
sglinski
Advanced Member UNITED STATES Joined: Feb 16, 2006 Posts: 139 Status: Offline |
I have a port with a repeatable error: Port name is: Debug Cross Timer.2 I think the problem is that I am defining a variable (L) in the buy rules, and using it in both the buy and sell rules; previous to today this worked, now it appears the definition of L is lost between the execution of the buy and sell rules?! |
||
|
|
marco
|
How did you create this port? It has a NULL ranking system which should not be possible to do. ---------------------------------------- Portfolio123 Staff |
||
|
|
sglinski
Advanced Member UNITED STATES Joined: Feb 16, 2006 Posts: 139 Status: Offline |
Guess I'm cutting edge then! I made my own ranker (public) called "Null," which is just one rule "price>0" which I use in many pure technical trading ports.. Hope I can keep using this to avoid revising several ports.. |
||
|
|
sglinski
Advanced Member UNITED STATES Joined: Feb 16, 2006 Posts: 139 Status: Offline |
I just realized my answer is not complete- the entire reason for the null ranker was to develop ETF trading systems, by creating a custom list of the stocks held by the particular etf, and using technical buy sell rules on a benchmark signal. Then the null rank will include all members of the etf, simulating a (dollar weighted) version of the same. Of course the etf and benchmark need be related or at least correlated in some way. |
||
|
|
sglinski
Advanced Member UNITED STATES Joined: Feb 16, 2006 Posts: 139 Status: Offline |
I have verified that the variables set with @VARIABLE in the buy rules used to be active in the sell rules, but no longer (user must redefine the @VARIABLE in a sell rule to use it there). Anyone who uses @VARIABLE should check there code. |
||
|
|
marco
|
Took a look at your port and SetVar cannot be used your way. The sell rules are processed *first* for *only* your current holdings. You cannot use any temp variables set in the Buy rules becasue they have not being processed yet. You should always get an error using temp variables in the Sell rules if they are not defined there. ---------------------------------------- Portfolio123 Staff |
||
|
|
sglinski
Advanced Member UNITED STATES Joined: Feb 16, 2006 Posts: 139 Status: Offline |
Thanks for checking this out! |
||
|
| [Show Thread Printable Version] [Post new Thread] |