NexusFi: Find Your Edge


Home Menu

 





ZigZagUTC problem


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one lookOutBelow with 3 posts (0 thanks)
    2. looks_two yeohass with 2 posts (0 thanks)
    3. looks_3 Big Mike with 1 posts (3 thanks)
    4. looks_4 Quick Summary with 1 posts (0 thanks)
    1. trending_up 3,671 views
    2. thumb_up 3 thanks given
    3. group 3 followers
    1. forum 7 posts
    2. attach_file 0 attachments




 
Search this Thread
  #1 (permalink)
lookOutBelow
San Francisco, CA
 
Posts: 40 since Sep 2010
Thanks Given: 5
Thanks Received: 19

Perhaps I'm being a complete dummy. But, I'm having a problem with the ZigZagUTC indicator. I was hoping someone could help.

Print("Bar num of last high: " + ZigZagUTC(3,2,true,Color.Green).lasthibar);

Should give me the bar number of the last high? It continually gives me a result of 0. I'm using version 7 of NT. Is anyone else having this issue?


Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Pakistan Mediator in Tehran as Hormuz Normalization Coll …
Prediction Markets & Event Contracts
$4.5M Floods Russia Nuclear Contract in 24 Hours -- Krem …
Prediction Markets & Event Contracts
Trump Media to sell instant access to market-moving soci …
Traders Hideout
CME Expands 24/7 Trading to WTI Crude Oil and Gold -- We …
Commodities
Double Deadlock: Rubio Calls Hormuz Tolls "Unfeasib …
Traders Hideout
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
NexusFi site changelog and issues/problem reporting
10 thanks
Darmok and Jalad at Tanagra
3 thanks
Big Mike in Ecuador
1 thanks
30 Sessions
1 thanks
  #3 (permalink)
lookOutBelow
San Francisco, CA
 
Posts: 40 since Sep 2010
Thanks Given: 5
Thanks Received: 19


Turns out. It is reporting 0 when running a backtest. But when running real time, it reports properly.

Would anyone know how to get this to report properly in a backtest? I'm stumped.


Reply With Quote
  #4 (permalink)
lookOutBelow
San Francisco, CA
 
Posts: 40 since Sep 2010
Thanks Given: 5
Thanks Received: 19

I emailed the author of the indicator and he was nice enough to straighten me out. It was a botched syntax job on my part.

Sorry to bother you guys.


Reply With Quote
  #5 (permalink)
yeohass
LOS ANGELES
 
Posts: 4 since Jul 2011
Thanks Given: 4
Thanks Received: 0

Hi lookOutBelow

I've just stumbled across your post from last year whilst trying to resolve some of my own issues with the ZigZagUTC indicator...

Any chance you could post your solution please?

Thanks


Reply With Quote
  #6 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,669 since Jun 2009
Thanks Given: 33,669
Thanks Received: 102,577


yeohass View Post
Hi lookOutBelow

I've just stumbled across your post from last year whilst trying to resolve some of my own issues with the ZigZagUTC indicator...

Any chance you could post your solution please?

Thanks

Take a look here for a more up-to-date tool:



Mike




We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on X Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #7 (permalink)
yeohass
LOS ANGELES
 
Posts: 4 since Jul 2011
Thanks Given: 4
Thanks Received: 0

Thank Mike, that looks like a much more user-friendly indicator


Reply With Quote
  #8 (permalink)
 
cory's Avatar
 cory 
virginia
 
Experience: Intermediate
Platform: ninja
Trading: NQ
Posts: 6,099 since Jun 2009
Thanks Given: 877
Thanks Received: 8,098

@makusan I don't maintain zigzagutc any more use price action swing instead.


Reply With Quote




Last Updated on February 20, 2013


© 2026 NexusFi®, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Downloads - Top
no new posts