Relative Strength chart
Author: wphill
Creation Date: 12/10/2010 10:56 AM
profile picture

wphill

#1
I have cut and paste the following code to in order have a chart that shows relative strength with fast and slow ema's. It worked fine when I used ".spx" as the external signal and added any other stock/index as the regular symbol.

I then substituted "EDV" for the external signal and t placed "VT" as the regular symbol. This worked OK. However, in order to get more historical data I placed "TLT" as the external symbol and "VTI" as the regular symbol. This compiled OK, but the chart only showed a price line for VTI.

How do I get both of these symbols (TLT and VTI) to show in the chart?

My ultimate goal is to use code to add two panes of the following indicators: PPO and RSI, each with their own parameter values.
And, to have additional code to use the above parameter values to enter/exit long the entered signal with back testing on the above parameter values.


I am hoping that you guys can take me a little closer to having a complete relative strength trading strategy based on two symbols.

CODE:
Please log in to see this code.
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).