NexusFi: Find Your Edge


Home Menu

 





Need help with an indicator that draws and stops lines


Discussion in NinjaTrader

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




Closed Thread
 
Search this Thread
  #1 (permalink)
 kyubiboi 
Vancouver Canada
 
Experience: Beginner
Platform: NinjaTrader
Trading: Emini ES
Posts: 2 since Feb 2021
Thanks Given: 1
Thanks Received: 1

Hello everyone,

I'm trying to build an indicator that would draw "resistance" lines on every micro double top and when the body of a bar closes above/below the line, it would stop drawing on that bar. But I've hit a wall that I don't know how to get pass. I'm not a programmer by any means.

I'm using a swing indicator as the base of my indicator and I've got it working pretty well except for a couple of things. The main problem I have right now is I'm not sure how to keep the line going when it passes in between 2 bars. I know it's the way I have the conditions set that's preventing me from achieving what I want, but I'm not sure how to change it without breaking it.

I have attached screenshots that illustrates what I'm looking for and I have attached the indicator in it's current state.

I am open to any and all suggestions/solutions.

Thank you


Attached Thumbnails
Click image for larger version

Name:	Capture01.JPG
Views:	177
Size:	308.1 KB
ID:	317358  
Attached Files
Elite Membership required to download: ResistanceTest.txt
Started this thread

Can you help answer these questions
from other members on NexusFi?
Rubios Good News Within Hours and the 30-Day Math: Why H …
Prediction Markets & Event Contracts
CME Lists U.S. Election Event Contracts as 2028 Democrat …
Prediction Markets & Event Contracts
Kalshi Sets $4.13B All-Time Weekly Record as Polymarket …
Prediction Markets & Event Contracts
Iran Airspace Collapses 18 Points to 15.5% While Hormuz …
Prediction Markets & Event Contracts
Peace Deal Forward Curve: May 22%, June 51%, December 81 …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Sober Journey With S&P
21 thanks
2026 Jlab journal
10 thanks
Algo automated / semi-automated trading anyone?
6 thanks
Lady Vols Primer: Trading Volatility Journal
6 thanks
Trying to learn Volume and price action correlation
5 thanks
  #2 (permalink)
 
bobwest's Avatar
 bobwest 
Western Florida
Site Moderator
 
Experience: Advanced
Platform: Sierra Chart
Trading: ES, YM
Frequency: Several times daily
Duration: Minutes
Posts: 8,174 since Jan 2013
Thanks Given: 57,989
Thanks Received: 26,406


kyubiboi View Post
Hello everyone,

I'm trying to build an indicator that would draw "resistance" lines on every micro double top and when the body of a bar closes above/below the line, it would stop drawing on that bar. But I've hit a wall that I don't know how to get pass. I'm not a programmer by any means.

I'm using a swing indicator as the base of my indicator and I've got it working pretty well except for a couple of things. The main problem I have right now is I'm not sure how to keep the line going when it passes in between 2 bars. I know it's the way I have the conditions set that's preventing me from achieving what I want, but I'm not sure how to change it without breaking it.

I have attached screenshots that illustrates what I'm looking for and I have attached the indicator in it's current state.

I am open to any and all suggestions/solutions.

Thank you

Hi @kyubiboi,

I suggest you repost this question in the NT free indicator thread, here:

You'll have a better chance of it coming to the attention of someone interested in creating new indicators, or helping with your attempts, and it will also help keep the forum better organized by keeping related topics together. Also, someone may know of a similar indicator that has already been written.

This thread is closed to prevent a split topic.

Bob.


When one door closes, another opens.
-- Cervantes, Don Quixote
Thanked by:

Closed Thread



Last Updated on September 15, 2021


© 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