Montreal, Canada
Experience: Intermediate
Platform: Multicharts
Broker: Interactive Broker
Trading: Forex
Posts: 263 since Sep 2010
Thanks Given: 440
Thanks Received: 91
|
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
etc.
A Special thanks to ABC. FuryTrader, JohnB
Happy Xmas
All the best for the New Year to come
Martin
|