NexusFi: Find Your Edge


Home Menu

 





import levels from txt file and draw horizontal lines


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one Maxin with 5 posts (3 thanks)
    2. looks_two jayawog400 with 3 posts (0 thanks)
    3. looks_3 rlan214 with 3 posts (0 thanks)
    4. looks_4 mrchengan with 3 posts (3 thanks)
      Best Posters
    1. looks_one TigerStripes with 7 thanks per post
    2. looks_two mrchengan with 1 thanks per post
    3. looks_3 bobwest with 1 thanks per post
    4. looks_4 Maxin with 0.6 thanks per post
    1. trending_up 2,616 views
    2. thumb_up 18 thanks given
    3. group 9 followers
    1. forum 19 posts
    2. attach_file 7 attachments




 
Search this Thread

import levels from txt file and draw horizontal lines

  #11 (permalink)
 
Maxin's Avatar
 Maxin 
Raleigh NC
 
Experience: Intermediate
Platform: TOS Ninjatrader
Trading: Futures
Posts: 9 since Dec 2022
Thanks Given: 4
Thanks Received: 3

It looks correct
I am not using it anymore so I can't check - sorry

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
About a successful futures trader who didnt know anythin …
Psychology and Money Management
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
What broker to use for trading palladium futures
Commodities
Better Renko Gaps
The Elite Circle
 
  #12 (permalink)
 Mojomood 
Chicago, Illinois, US
 
Experience: Master
Posts: 6 since Jan 2023
Thanks Given: 0
Thanks Received: 2


TigerStripes View Post
Yes, the file I attached is a planned level visualizer, simple but gives the idea of what the text is executing and will label zones, color them, and print daily levels, they can be separated through a date pre input.

Can you make this available as an indicator, not a .dll so the community can help debug? I'm pretty sure dll's are not preferred as they cannot be verified as safe.

@Big Mike

Reply With Quote
Thanked by:
  #13 (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,172 since Jan 2013
Thanks Given: 57,523
Thanks Received: 26,292



TigerStripes View Post
Yes, the file I attached is a planned level visualizer, simple but gives the idea of what the text is executing and will label zones, color them, and print daily levels, they can be separated through a date pre input.

HI @TigerStripes,

The file you attached to the quoted post, DtPlannedLevelsVisualizer.zip, contains two dll files, DiscoTrading.Net48.Common.dll and DtPlannedLevelsVisualizer.dll.

Under forum rules, we cannot have dll's uploaded to the forum, as explained in the Terms and Conditions:

"As a general policy, we make a best-effort to not allow DLL files. Never upload a DLL file. This is because a .dll file is an executable file that does not contain source code (the human-readable program) that can be examined to determine what it does. Instead, it is in a compiled form that contains only computer-readable instructions that are directly executed by the computer, without the possibility of human review. It therefore represents a potential risk and we cannot allow these types of files (files of either type ".dll" or ".exe") to be posted on the site. If you encounter a DLL file on the site, please Report it to the moderators."
( https://nexusfi.com/disclaimer/ )

Therefore, I have deleted your post. If you have the source code, feel free to upload the indicator in that form.

Thanks.

Bob.

When one door closes, another opens.
-- Cervantes, Don Quixote
Reply With Quote
Thanked by:
  #14 (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,172 since Jan 2013
Thanks Given: 57,523
Thanks Received: 26,292


Mojomood View Post
Can you make this available as an indicator, not a .dll so the community can help debug? I'm pretty sure dll's are not preferred as they cannot be verified as safe.

@Big Mike

Correct. Thanks for bringing this up. We didn't catch it when it was first uploaded. It's now removed.

Bob.

When one door closes, another opens.
-- Cervantes, Don Quixote
Reply With Quote
Thanked by:
  #15 (permalink)
jayawog400
Dallas, Texas
 
Posts: 3 since Aug 2023
Thanks Given: 1
Thanks Received: 0


Fripi View Post
Also doesn't seem to work here, is there anything wrong with that way of typing it ?

 
Code
// PRICE1 PRICE2 @Opacity #Color "Text Label" // Commentary

10/19/2023

4314	@50	#DodgerBlue
4302	@80	#DodgerBlue
4292	@50	#DodgerBlue
4373	4375	@80	#OrangeRed	"Bearish Reversal Zone"
4385	@50	#OrangeRed
4394	@80	#OrangeRed
Must I use 2 tabs where only 1 price is given ?

Hello, Which indicator is this? Were you able to get it to work?

Reply With Quote
  #16 (permalink)
jayawog400
Dallas, Texas
 
Posts: 3 since Aug 2023
Thanks Given: 1
Thanks Received: 0


Maxin View Post
It looks correct
I am not using it anymore so I can't check - sorry

When you did use it? Were you able to get the text label on the chart? The part that says "Bearish Reversal Zone." I would love to get the labels on the chart on each price line.

4373 4375 @80 #OrangeRed "Bearish Reversal Zone"

Reply With Quote
  #17 (permalink)
 Fripi 
Brussels Belgium
 
Experience: Beginner
Platform: NinjaTrader
Broker: NinjaTrader Brokerage
Trading: Futures
Posts: 41 since May 2023
Thanks Given: 21
Thanks Received: 25


jayawog400 View Post
Hello, Which indicator is this? Were you able to get it to work?

I'm trying to do it myself, I started from the indicator "RgbPriceLines" and modified it, as I don't really know the ninjascript it's far from done, not much configuration yet.

It displays levels I have saved in txt files and displays horizontal lines at the given prices.
So if I restart the platform or for any reason lose my workspace it's saved elsewhere.

To do so it reads 2 documents: "resistances.txt" and "supports.txt" which are placed in "drive:\Documents\NinjaTrader 8"
Colors, line width, transparency... are fixed in the code, I don't know yet how to make that configurable, so if you want to change that you'll need to do so in Ninja Script Editor.
Actually supports are blue and resistance orange, see screenshot.

In the txt file there MUST be a space after the price and one price per line.
You can also add the mention (major) after this space if it's an important level, the line will be thicker and plain, otherwise it's dashed.



When I got time I would like to add:
- make colors configurable in the indicator properties
- also line opacity property
- also line width property
- checkbox property to add or not the price text above the line
- add zones with "region highlight y" so in the txt file if on one line I write : "4400 4405 (major)" it could mark a zone and not just a line

But I need to learn how to code all this yet

Attached Files
Elite Membership required to download: SupResLvls.zip
Elite Membership required to download: resistances.txt
Elite Membership required to download: supports.txt
Reply With Quote
Thanked by:
  #18 (permalink)
 
Maxin's Avatar
 Maxin 
Raleigh NC
 
Experience: Intermediate
Platform: TOS Ninjatrader
Trading: Futures
Posts: 9 since Dec 2022
Thanks Given: 4
Thanks Received: 3


jayawog400 View Post
When you did use it? Were you able to get the text label on the chart? The part that says "Bearish Reversal Zone." I would love to get the labels on the chart on each price line.

4373 4375 @80 #OrangeRed "Bearish Reversal Zone"

I installed it again and it is very easy and does everything you want. When I went looking for the download I found this: https://proptraderz.com/planned-level-visualizer/
It should get you going with this indicator

Scott

Reply With Quote
Thanked by:
  #19 (permalink)
jayawog400
Dallas, Texas
 
Posts: 3 since Aug 2023
Thanks Given: 1
Thanks Received: 0

Bless you sir. You are greatness @Maxin

Reply With Quote
  #20 (permalink)
 MONICAP 
Bucharest Romania
 
Experience: Advanced
Platform: NinjaTrader
Broker: NinjaTrader Broker
Trading: futures
Frequency: Daily
Duration: Minutes
Posts: 12 since Apr 2022
Thanks Given: 3
Thanks Received: 4



jayawog400 View Post
Hello, Which indicator is this? Were you able to get it to work?

Here is a Txt file model for that planned levels visualizer. It will plot text also.
the add on can be downloaded from here : https://proptraderz.com/planned-level-visualizer/

Attached Files
Elite Membership required to download: NQ LEVEL nexusfi.txt
Follow me on Twitter Reply With Quote
Thanked by:




Last Updated on January 31, 2024


© 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