Eugene, I'm looking for a little more help on my strategy code please. ( see message #6 above )
I have studied the documentation, and lots of existing strategies but not able to get my profit sell / cover idea to work.
Here is what I would like to do;  ( The full code is in message 6 above )
We have a var;    
CODE:
Please log in to see this code.
I would like to add, sell the open long position with;  
      IF the ((  ratio value today  - ratio value on buy date ) / ratio value on buy date ) * 100 > 5
And for the short position;
      IF the (( ratio value on buy date  - ratio value today ) / ratio value on buy date ) * 100 > 5
In this strategy the line above represents the profit of the "Spread" , not the price of the tested ticker. This would allow me to sample a list of like industry tickers quickly to compare which tickers had the most profitable trades in X period of time. 
One last question, on a sell / cover rule I thought there was a way to display the value of an indicator (of your choice) when the sell occurred but can't find any reference to it anywhere? I know we can add a name like "profit target" to the rule, but can we add an indicator value? Here I would like to add the value of the ratio.
Thanks for any help, Bill