Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
I'm trying to get a zigzag indicator for TOS and it seems like I'll have to go through a translation from another platform language. I found a simple Easy Language script for TradeStation that possibly someone can help me with.
Here's my first attempt at translation, but how do you draw lines between highs and lows and how can I change the period length between highs and lows?
Can you help answer these questions from other members on NexusFi?
declare upper;
input n = 2.0;
input p = open;
input offset = 1;
input average = yes;
plot zig = reference zigZagpercent("reversal amount" = n, "price" = p);
zig.EnableApproximation();
def sign = reference zigZagtrendpercent("reversal amount" = n, "price" = p);
def new = if !IsNaN(zig) then 1 else 0;
rec count = if new then 1 else count[1] + 1;
rec vol = if new then volume else vol[1] + volume;
def avgvol = if average then roundDown(vol[1] / count[1], 0) else vol[1];
def up = if new and sign > 0 then 1 else 0;
def down = if new and sign < 0 then 1 else 0;
AddChartBubble(up, high + offset, concat(avgvol, ""), color.blue, yes);
AddChartBubble(down, low - offset, concat(avgvol, ""), color.black, no);
Thanks for your code. I eventually want to use this to develop two other codes, if I can get TOS to do them. They are to adapt zigzag for Fibonacci levels and adapt zigzag for parallel offset lines to show trend channels with overbought and oversold zones (a little like Andrew's Pitchfork ). I'm thinking of using the standard deviation to plot the offset lines. Could you tell me which part of the code determines the end points of each of the zigzag lines and how I can capture their values for my new codes?
I've tried to make the trend channel code, but its not working. Any ideas?
At first glance, it looks likme it should work but I will be more than happy to play with it after the trading day to see what I can come up with. I would like to attempt to use it myself for TDDwave...since I am told it can't be done I think I will try.
2 seperate versions / time-frame implementations of Time-Segmented Volume turned into a copy of the 3C indicator used by trade-guild.net or at least my versions. They encompass the two crazy lines are I use them as leading indicators of institutional money flows. Then, I have TD Propulsion and TD Setup for trend as well as TD Price Flips. Yes, I do use them all and sometimes even more and quite well too