Just to say that I finally succeed to use ElCollection. I got a better understanding of it now.
1- The initial goal was to capture from a a chart the present trend line. Store the characteristics of them in a file
2- Redraw the trend lines on another workspace using the stored data.
While creating the tool, I created a switch button concept using mouse click event
A click on the upper corner will capture trend line
A click on the lower corner will redraw using a file of the same instrument
To prevent fatal error using Elcollection, some verification has been done
First thing first: Check if the file do exist using : Value1 = ELC.PathExists(FilePath);
Always make sure that there is at least one inscription in the file. To do so, at the creation if no trend line present, I write "EOF" in the file. If "EOF" is detected as the first string value then don't try to read further and exit.
Count the the number of line in the file using: Count = ListS.Count(TL_String_ID) ;
Make sure that we don't try to read a line above the count number
On each event: a voice message is heard
Trend line are captured
Trend line are draw
No file Exist
No Trend line to draw
A Special thanks to ABC. FuryTrader, JohnB
All the best for the New Year to come
The following user says Thank You to arjfca for this post:
Were you wanting to do this in TradeStation or in MultiCharts ? If in MultiCharts then why post the query within the TradeStation programming forum ? I am new here so might be confused as to how the structure of questioning and forum structure goes.
I am well familiar with ELCollections. I actually have the source code for it given to me by the creator of the DLL many years ago. As you may know the creator of the ELC is now on the programming team at TradeStation and the ELC is an integral part of the TradeStation platform.
Regardless, glad to hear you have a solution because in the end that is all that matters.
The following user says Thank You to StratOpt for this post: