Using TradeStations Object Oriented Code

This little code snippet uses EasyLanguage objects to get inside of the program and pull out some pretty cool information.  What it’s doing is using elsystem.drawingobjects to count the number of “text elements” on the chart and then report where the objects are located.  Our cartesian plane utilizes time as the x and price as the y.  So with price and time we can locate exactly where the points are located and feed this system into a system or an indicator.  Over the summer I plan on delving into the OO aspect of EL and reporting back the things that may enhance a charting analysis.  I have already created a pretty neat strategy that will allow a user to place “B” for buy “S” for sell and “X” for exit and have TradeStation calculate the P/L from the hand placed signals.  You can buy this from www.futurestruth.com for a small price.

using elsystem ;
using elsystem.drawingobjects ;

method void PrintTextObjectContents()
variables: int MyTextObjects, TextLabel MyTextObj, DTPoint MyTextLoc,
int Counter ;
begin
     {  limit drawing object collection to manually drawn text objects }
     MyTextObjects = ObjectCategory.textlabelcreatedbydrawingobject ;
     print (DrawingObjects.Items[MyTextObjects].Count);
     { loop through the manually drawn text objects to try and locate "A" and "B" }
     bCnt = 0;sCnt = 0;
     for Counter = 0 to DrawingObjects.Items[MyTextObjects].Count - 1
     begin
          MyTextObj = DrawingObjects.Items[MyTextObjects][Counter] astype TextLabel ;
Please follow and like us:

3 thoughts on “Using TradeStations Object Oriented Code”

  1. Hi George,
    Thanks for sharing that! Is your your strategy for placing a buy with text object \”B\” on the chart etc. still available? I\’d love to take a look.
    Regards!

  2. Hi George,
    Very interesting thanks!
    Is you strategy with text object \”B\” etc. still available? I\’d love to be able to take a look!

    1. Hi Janny – the code in its entirety is copyrighted. I can send you a locked version via email. I will go ahead and do this and later I will reveal some more of the code that is not copyrighted. Thanks for visiting my blog. Any other readers can contact me as well.

Leave a Reply