NexusFi: Find Your Edge


Home Menu

 





Help with ListN Plotting


Discussion in EasyLanguage Programming

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




 
Search this Thread
  #1 (permalink)
 olobay 
Montreal
 
Experience: Intermediate
Platform: MultiCharts
Broker: DeepDiscountTrading.com
Trading: CL
Posts: 364 since Jul 2011

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 NexusFi?
EA
Platforms and Indicators
requesting .nrd replay files from 2026 spy and qqq
The Elite Circle
I developed a free AI-powered (Kronos) forecasting indic …
The Elite Circle
[WTS] ATAS Lifetime ULTRA license – EU buyers only – …
Platforms and Indicators
My Rant with AMP Futures
Trading Reviews and Vendors
 
  #2 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,448 since Apr 2013
Thanks Given: 494
Thanks Received: 1,643

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 X Reply With Quote
Thanked by:




Last Updated on August 23, 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