NexusFi: Find Your Edge


Home Menu

 





Automatically plot lines "x ticks/pts" below swing highs/above swing lows


Discussion in NinjaTrader

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




 
Search this Thread

Automatically plot lines "x ticks/pts" below swing highs/above swing lows

  #1 (permalink)
skiguy
sydney + nsw australia
 
Posts: 16 since Jul 2013
Thanks Given: 8
Thanks Received: 6

I am trying to find some code that I can modify/adapt to automatically plot a line "x ticks/pts" below recent swing highs/above recent swing lows.

For example, swing high was at 100 and the retracement amount is say 4 then I want a line drawn/dots on the chart when/if the market reaches 96.

Ideally the line would only be a few bars to the left and right of the bar that hit the level i.e. I want the line to be clear and not just one dot ideally.

Look back period is x bars.

I found the swing indicator and it looks very close to what I want but I want the plot(dots) to be the swing high value - my value e.g. -3.

The code is fairly advanced for me.

Could someone please highlight the code in the Swing indicator that actually plots the dots and can I just subtract a value from it without stuffing up the rest of the code i.e. it still needs to detect new swing highs but when a new swing high is detected I want to plot the (new swing high - x).

The Word file has a screenshot of a chart with the Swing indicator applied.

Attached Files
Elite Membership required to download: Doc2.doc
Elite Membership required to download: @Swing.cs
Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Quant vue
Trading Reviews and Vendors
Cheap historycal L1 data for stocks
Stocks and ETFs
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
What broker to use for trading palladium futures
Commodities
ZombieSqueeze
Platforms and Indicators
 
  #3 (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,463 since Jun 2009
Thanks Given: 33,239
Thanks Received: 101,661


Look here:



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 Twitter Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #4 (permalink)
 jkt1120 
Cincinnati, Ohio
 
Experience: Master
Platform: NinjaTrader Tradestation
Trading: Russell
Posts: 8 since May 2012
Thanks Given: 0
Thanks Received: 1

I'm looking for the same modification to the swing indicator that your were in this post. I'd like to display the Dots + or Minus - ticks from the pivot. Could you tell me if you were successful in finding what you were looking for ?

Jack Telford

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


skiguy View Post
I am trying to find some code that I can modify/adapt to automatically plot a line "x ticks/pts" below recent swing highs/above recent swing lows.

For example, swing high was at 100 and the retracement amount is say 4 then I want a line drawn/dots on the chart when/if the market reaches 96.

Ideally the line would only be a few bars to the left and right of the bar that hit the level i.e. I want the line to be clear and not just one dot ideally.

Look back period is x bars.

I found the swing indicator and it looks very close to what I want but I want the plot(dots) to be the swing high value - my value e.g. -3.

The code is fairly advanced for me.

Could someone please highlight the code in the Swing indicator that actually plots the dots and can I just subtract a value from it without stuffing up the rest of the code i.e. it still needs to detect new swing highs but when a new swing high is detected I want to plot the (new swing high - x).

The Word file has a screenshot of a chart with the Swing indicator applied.

I wrote;
SwingHLColor.cs (16.2 KB, 40 views)
as you can see it calculate the range of the pivot candle, so you can modify the candle range to a fix value you want.
you can find it here

Reply With Quote
Thanked by:




Last Updated on April 7, 2015


© 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