The LinRegMulti is a CCI look alike but is directly based on price. There is no zero line like with the CCI and also no divergence. This version has 2 components that might interest you aside from the way price is represented. The first is that you have the main LinReg(1) which represents price either as the high, low, close, open, typical or median. I prefer to use typical because it smooths the plot considerably. You can also specify up to 4 more LinReg with different periods. I like to use 6, 9, 12, and 15 because there is enough separation between them that I can actually use it to my advantage. The other feature is that we included smoothing. The LinReg with typical price is relatively smooth anyway but maybe there is utility to smooth is more. LinReg(1) or main plot has a smoothing feature and the others as a unit have one as well. I've experimented with using the LinReg(1) with typical price and the other LinRegs with a smooth set at various settings. Just use your imagination with the settings to see what pops out at you. Personally I like the way they identify the pullbacks so clearly in a way that you get entries at really good places. Takes practice though to feel comfortable taking them.
As I said above you can have up to 4 alternate LinRegs. So experiment with having just one or all 4 or none.
You will notice the bars change color, green, red, and gray. Green means all the alternate LinRegs are pointing up. Red means all the alternate LinRegs are pointing down. Gray means the alternate LinRegs are pointing in different directions. Be cautious using them as they don't always refresh properly during the live market. I use them for confirmation but I also have to reload the script to be sure. That can obviously be a problem in the heat of battle. Maybe we can get this fixed at some point. But it isn't a show stopper.
I think that about covers it except to say that we would appreciate your comments on using it.
To import:
- Download the file contained in this thread to your desktop
- From the Control Center window select the menu File > Utilities > Import NinjaScript
- Select the downloaded file
Note that EMA-Multi is just like LinReg-Multi but based on EMA values rather than LinReg ones.
Comment