With the CFB season winding down, I am going to find my saturdays wide open once again, so I will have time to start coding some ideas I've been toying with.
Anyone know how to access either the chart markers or past executions inside of an indicator? I basically want to code an indicator that analyzes my trades and exports to a csv file(or excel). I am looking to generate e-ratio reports with a couple custom reports to go along with it.
Maybe I could do that with invoking a strategy? Do you know if the account stats are fully accessible in a strategy(outside of the instrunent the straategy executes against I mean)?
Other than that I wouldn't know. I guess you would not ask if it was in ChartControl or easy to find with looping through a few things...
Hic Rhodos, hic salta.
The following user says Thank You to vvhg for this post:
I think only the strategie's executions are available. I was thinking maybe they had a hidden tag or hidden properties. I know you could export the executions to a csv file then read the file and do the calculation, but I was hoping there was a easier way.
All the trades are stored in the database. This is accessible through SQL. This may be a easy solution. If you decide to go this route let me know. I have all the connection code needed to access the database.
vvhg mentioned using a strategy which has more options to get trade data. There is a "Performance.AllTrades" code which has options to pull out details of the last trade. In addition, I think there is code which will pulls all the trade detail for the last trade in a single line. I dont remember what it is off the top of my head.
nosce te ipsum
Trade what the market is doing; NOT what you think its going to do.
The following user says Thank You to Silver Dragon for this post:
Thanks Robert. I am really looking for the easiest way to run a little more custom analysis on my trades until Greg at TraderVue adds them (He has added all of the studies I have mentioned so far ) I have never coded anything in SQL. I am currently using the free version of Ninja, because I don't use strategies.
How easy would it be to gather entry datetime, instrument, and price?