Help with ListN Plotting - futures io
futures io



Help with ListN Plotting


Discussion in EasyLanguage Programming

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




Welcome to futures io: the largest futures trading community on the planet, with well over 150,000 members
  • Genuine reviews from real traders, not fake reviews from stealth vendors
  • Quality education from leading professional traders
  • We are a friendly, helpful, and positive community
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts
  • We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

(If you already have an account, login at the top of the page)

 
Search this Thread
 

Help with ListN Plotting

(login for full post details)
  #1 (permalink)
 olobay 
Montreal
 
Experience: Intermediate
Platform: MultiCharts
Broker: DeepDiscountTrading.com
Trading: CL
 
Posts: 363 since Jul 2011
Thanks: 465 given, 550 received

Hi,

I have created a file that plots a horizontal line from price data in an Excel csv file. Everything works fine but I would like to know if there is a better way to code the plot portion of the code to just plot everything. Right now, if I have 10 rows of data in my Excel file, I would need 10 plot statements in my indicator, incrementing the ref number on every line. For example:

Plot1(Listn.Get(ListID, 1));
Plot2(Listn.Get(ListID, 2));
Plot3(Listn.Get(ListID, 3));
etc

Is there a simple one line method to just plot everything from my Excel file?

Thanks.

 
Code
Inputs: File_Directory("C:\Book1.csv");

var: listid(0);

listid = Listn.New;

value1 = Listn.Readfile(listid, File_Directory);     
   
Plot1(Listn.Get(ListID, 1));

Started this thread Reply With Quote

Can you help answer these questions
from other members on futures io?
Book for fundamental analysis
Stocks and ETFs
in depth understanding of last, bid, and ask volume in c …
NinjaTrader
Anyone ever use "Seasonax" website?
Trading Reviews and Vendors
Multi Time Frame High/Low/Median levels
NinjaTrader
Tradovate + Jigsaw issues
Tradovate
 
Best Threads (Most Thanked)
in the last 7 days on futures io
Is anyone actually making money?
52 thanks
An embarrassing, honest confession
37 thanks
Sierra vs. Ninja : why I chose .....
8 thanks
Machine Learning Journal
5 thanks
Institutional Grade Massive Data Dump for Quant Research …
5 thanks
 
(login for full post details)
  #2 (permalink)
 ABCTG   is a Vendor
 
 
Posts: 2,363 since Apr 2013
Thanks: 426 given, 1,579 received

olobay,

you could loop through the contents of your list and use a switch statement to pass an entry to a respective plot number. However, you would still have to add X different plots where X is the number of rows you read into the list. It might look more elegant, but it will likely not be less code compared to what you are doing now.

Regards,

ABCTG


olobay View Post
Hi,

I have created a file that plots a horizontal line from price data in an Excel csv file. Everything works fine but I would like to know if there is a better way to code the plot portion of the code to just plot everything. Right now, if I have 10 rows of data in my Excel file, I would need 10 plot statements in my indicator, incrementing the ref number on every line. For example:

Plot1(Listn.Get(ListID, 1));
Plot2(Listn.Get(ListID, 2));
Plot3(Listn.Get(ListID, 3));
etc

Is there a simple one line method to just plot everything from my Excel file?

Thanks.

 
Code
Inputs: File_Directory("C:\Book1.csv");

var: listid(0);

listid = Listn.New;

value1 = Listn.Readfile(listid, File_Directory);     
   
Plot1(Listn.Get(ListID, 1));


Follow me on Twitter Reply With Quote
The following user says Thank You to ABCTG for this post:


futures io Trading Community Platforms and Indicators EasyLanguage Programming > Help with ListN Plotting


Last Updated on August 23, 2021


Upcoming Webinars and Events
 

NinjaTrader Indicator Challenge!

Ongoing
     



Copyright © 2023 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada), info@futures.io
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.
no new posts