NexusFi: Find Your Edge


Home Menu

 





Help with ListN Plotting


Discussion in EasyLanguage Programming

Updated
    1. trending_up 3,136 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?
Bookmap Global Plus Lifetime + Lifetime Addons For Sale
Platforms and Indicators
April FOMC Minutes: Most Divided Fed Since 1992 -- Many …
Traders Hideout
Trump Lands in Beijing on CPI Day: Iran Peace Expires To …
Prediction Markets & Event Contracts
Warsh Opens Today, Hormuz June 19 -- WTI Below $80, Fran …
Prediction Markets & Event Contracts
Six Days to Kickoff: World Cup Prediction Markets Hit $1 …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Big Mike in Ecuador
196 thanks
Sober Journey With S&P
27 thanks
30 Sessions
20 thanks
Volume Indicators
8 thanks
BERN ALGOS algo trading journal
8 thanks
  #2 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,448 since Apr 2013
Thanks Given: 494
Thanks Received: 1,642

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