NexusFi: Find Your Edge


Home Menu

 





1 minute coding advice will save my sanity


Discussion in NinjaTrader

Updated
    1. trending_up 1,472 views
    2. thumb_up 0 thanks given
    3. group 2 followers
    1. forum 3 posts
    2. attach_file 1 attachments




 
Search this Thread

1 minute coding advice will save my sanity

  #1 (permalink)
 
mokodo's Avatar
 mokodo 
Bridgwater, UK
 
Experience: Beginner
Platform: Ninjatrader
Broker: MB Trading
Trading: Forex
Posts: 385 since Jun 2011
Thanks Given: 525
Thanks Received: 348

Hi Coders,

Can you save my fragile mind from meltdown?

I use the ZigZag indi in NT7 in my trading system but need to tweak it. Simply enough I thought, but it has me stumped.

I want to see the previous end points for each leg of the zigzag before its fixes and starts a search for the next leg. I have made the change to the ZigZag UTC version (see attached chart, in green the ZigZag UTC line, the purple dots are the 'repainted' previous endpoints, blue line is the ZigZag indi I'm trying to tweak.).

I'm only only my 812th reading of 'C# for Dummies' so am lacking a bit in the coding department

If any kind-hearted coders happen to be riding by, any advice would be gratefully received.

Thanks in advance,
Mokodo

Attached Thumbnails
Click image for larger version

Name:	$CHFJPY (15 Min)  28_06_2011.jpg
Views:	167
Size:	137.0 KB
ID:	42223  
Visit my NexusFi Trade Journal Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
NexusFi Journal Challenge - April 2024
Feedback and Announcements
New Micros: Ultra 10-Year & Ultra T-Bond -- Live Now
Treasury Notes and Bonds
Deepmoney LLM
Elite Quantitative GenAI/LLM
Are there any eval firms that allow you to sink to your …
Traders Hideout
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Get funded firms 2023/2024 - Any recommendations or word …
59 thanks
Funded Trader platforms
36 thanks
NexusFi site changelog and issues/problem reporting
25 thanks
The Program
20 thanks
GFIs1 1 DAX trade per day journal
19 thanks
  #3 (permalink)
kandlekid
College Point, NY (Queens)
 
Posts: 63 since Nov 2009
Thanks Given: 5
Thanks Received: 20


It looks like you're trying to find a prior low or high. To do this, I made the lo and hi DataSeries public, so that I could get hold of them. You could then find the prior lows ...

ZigZagUTC( show, span, useHiLo, zigZagColor ).lo[0] ... 1st low

ZigZagUTC( show, span, useHiLo, zigZagColor ).lo[1] ... 2nd low

Don't know if this helps ...

Reply With Quote
  #4 (permalink)
 
mokodo's Avatar
 mokodo 
Bridgwater, UK
 
Experience: Beginner
Platform: Ninjatrader
Broker: MB Trading
Trading: Forex
Posts: 385 since Jun 2011
Thanks Given: 525
Thanks Received: 348

Hi kandlekid,

Thanks for the post. I have actually already made this amendment to the UTC version. My problem is how to achieve the same result with the ZigZag indi that ships with Ninjatrader. But you are right in indentifying what I want to do - see the previous endpoints of each leg after the leg repaints.

Thanks in advance if you can help me out.

Visit my NexusFi Trade Journal Started this thread Reply With Quote




Last Updated on June 30, 2011


© 2024 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 - Privacy Policy - Downloads - Top
no new posts