#### d4dahl

##### New member

I’ve recently been intrigued with W.D. Gann theory. I’ve been scouring the internet for script similar to my idea, but can’t find anything close to what I want so I tried my hand at coding. Long story short, I’m awful. I also posted this on Reddit, but it's dead there, so hoping for some help.

What I want is simple, that is horizontal lines, aka “tunnels”, at specified price levels. OR, a 10% color overlay between levels, say $0-12, $24-36, $48-60, etc. Each way achieves the same desired outcome, they just look different.

In the end, it might be great to have all 12 sections of the zodiac: Aries, Taurus, Gemini, etc, selectable in the customizing window. But maybe having only one zodiac sign per study is best? Not sure yet.

Each sign has their own tunnels, but below is my script for Aries only. It seems extremely text heavy for something so simple. And, in the customizing window, you have to click each plot ON/OFF as to whether or not you want to see that specific level. It’s quite time consuming, hoping to avoid that. I can give the other zodiac levels in a future post, but they all follow the same formula, just add 12 to the previous one up to 360.

Also, color seems like it should be easier to script than what I have below. And, magnification is an issue when they're all turned on. Hopefully that can be fixed, too.

So, my question to the community is if a mathematical formula could somehow be used for the plot? Please have a look. And, thank you!

#ARIES

#Tunnels Through Time

#0-29° plot for W.D. Gann's Wheel of 12

plot theLine12 = 12;

plot theLine24 = 24;

plot theLine36 = 36;

plot theLine48 = 48;

plot theLine60 = 60;

plot theLine72 = 72;

plot theLine84 = 84;

plot theLine96 = 96;

plot theLine108 = 108;

plot theLine120 = 120;

plot theLine132 = 132;

plot theLine144 = 144;

plot theLine156 = 156;

plot theLine168 = 168;

plot theLine180 = 180;

plot theLine192 = 192;

plot theLine204 = 204;

plot theLine216 = 216;

plot theLine228 = 228;

plot theLine240 = 240;

plot theLine252 = 252;

plot theLine264 = 264;

plot theLine276 = 276;

plot theLine288 = 288;

plot theLine300 = 300;

plot theLine312 = 312;

plot theLine324 = 324;

plot theLine336 = 336;

plot theLine348 = 348;

plot theLine360 = 360;

theLine12.SetDefaultColor(CreateColor(204,0,51));

theLine24.SetDefaultColor(CreateColor(204,0,51));

theLine36.SetDefaultColor(CreateColor(204,0,51));

theLine48.SetDefaultColor(CreateColor(204,0,51));

theLine60.SetDefaultColor(CreateColor(204,0,51));

theLine72.SetDefaultColor(CreateColor(204,0,51));

theLine84.SetDefaultColor(CreateColor(204,0,51));

theLine96.SetDefaultColor(CreateColor(204,0,51));

theLine108.SetDefaultColor(CreateColor(204,0,51));

theLine120.SetDefaultColor(CreateColor(204,0,51));

theLine132.SetDefaultColor(CreateColor(204,0,51));

theLine144.SetDefaultColor(CreateColor(204,0,51));

theLine156.SetDefaultColor(CreateColor(204,0,51));

theLine168.SetDefaultColor(CreateColor(204,0,51));

theLine180.SetDefaultColor(CreateColor(204,0,51));

theLine192.SetDefaultColor(CreateColor(204,0,51));

theLine204.SetDefaultColor(CreateColor(204,0,51));

theLine216.SetDefaultColor(CreateColor(204,0,51));

theLine228.SetDefaultColor(CreateColor(204,0,51));

theLine240.SetDefaultColor(CreateColor(204,0,51));

theLine252.SetDefaultColor(CreateColor(204,0,51));

theLine264.SetDefaultColor(CreateColor(204,0,51));

theLine276.SetDefaultColor(CreateColor(204,0,51));

theLine288.SetDefaultColor(CreateColor(204,0,51));

theLine300.SetDefaultColor(CreateColor(204,0,51));

theLine312.SetDefaultColor(CreateColor(204,0,51));

theLine324.SetDefaultColor(CreateColor(204,0,51));

theLine336.SetDefaultColor(CreateColor(204,0,51));

theLine348.SetDefaultColor(CreateColor(204,0,51));

theLine360.SetDefaultColor(CreateColor(204,0,51));

#endCode