NexusFi: Find Your Edge


Home Menu

 





Bar back adjusting line coding, is it possible?


Discussion in NinjaTrader

Updated
    1. trending_up 3,916 views
    2. thumb_up 4 thanks given
    3. group 3 followers
    1. forum 6 posts
    2. attach_file 7 attachments




 
Search this Thread

Bar back adjusting line coding, is it possible?

  #1 (permalink)
 hector24 
austin, texas
 
Experience: Intermediate
Platform: ninja trader
Trading: currency futures
Posts: 506 since Jan 2011
Thanks Given: 14
Thanks Received: 234

Does anyone know how to code the following:
1. A line at the close of the last 10th bar or whatever, of course there should be a user parameter function for this.
2. At the close of the next bar that line would move up or down depending on what happened.
I have attached a video explaining. Which I could code but don't know how. Thanks Hector

www.screencast.com/t/DN0gx0rw9FcK

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
NexusFi Journal Challenge - April 2024
Feedback and Announcements
Request for MACD with option to use different MAs for fa …
NinjaTrader
ZombieSqueeze
Platforms and Indicators
My NT8 Volume Profile Split by Asian/Euro/Open
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Retail Trading As An Industry
58 thanks
Battlestations: Show us your trading desks!
55 thanks
NexusFi site changelog and issues/problem reporting
48 thanks
What percentage per day is possible? [Poll]
31 thanks
GFIs1 1 DAX trade per day journal
29 thanks

  #2 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,102


hector24 View Post
Does anyone know how to code the following:
1. A line at the close of the last 10th bar or whatever, of course there should be a user parameter function for this.
2. At the close of the next bar that line would move up or down depending on what happened.
I have attached a video explaining. Which I could code but don't know how. Thanks Hector

bars back - hector24's library

Here you go. The indicator is quite useful, as it is a different way of showing the n-period momentum.

Attached Thumbnails
Click image for larger version

Name:	Horizontal Line.jpg
Views:	175
Size:	78.8 KB
ID:	41791  
Reply With Quote
  #3 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,102


This is an improved version using a custom plot. You will notice the difference, if you scroll back horizontally.

Attached Thumbnails
Click image for larger version

Name:	Horizontal Line.jpg
Views:	208
Size:	77.4 KB
ID:	41797  
Attached Files
Elite Membership required to download: HorizontalLineBarsBack.zip
Reply With Quote
The following 2 users say Thank You to Fat Tails for this post:
  #4 (permalink)
 hector24 
austin, texas
 
Experience: Intermediate
Platform: ninja trader
Trading: currency futures
Posts: 506 since Jan 2011
Thanks Given: 14
Thanks Received: 234

FatTails,
Just want to tell you thanks a lot. This is one of the best rooms I know of.

Thanks Again,
Hector

Started this thread Reply With Quote
  #5 (permalink)
 
Trafford's Avatar
 Trafford 
London, England
 
Experience: Intermediate
Platform: Ninja
Broker: Mirus Futures/Zen-Fire
Trading: EUR
Posts: 337 since Sep 2010
Thanks Given: 378
Thanks Received: 229


Fat Tails View Post
This is an improved version using a custom plot. You will notice the difference, if you scroll back horizontally.


HI FT,

How do you get the price marker to show on the vertical scale to plot the price. The price marker is set to True but does not display level. Also is it possible to apply an audio alert if price touches the horizontal line.

Thanks

Reply With Quote
  #6 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,102

Have added price markers.

Attached Files
Elite Membership required to download: HorizontalLineBarsBack.zip
Reply With Quote
The following 2 users say Thank You to Fat Tails for this post:
  #7 (permalink)
 hector24 
austin, texas
 
Experience: Intermediate
Platform: ninja trader
Trading: currency futures
Posts: 506 since Jan 2011
Thanks Given: 14
Thanks Received: 234

Fat Tails,
Worked like a champ. You da MAN!

Thanks
Hector

Started this thread Reply With Quote





Last Updated on June 24, 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