Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
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...
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.
I only quickly googled it, and it seems to be available in a strategy. If it is, I might be able to make it available in an indicator too. Will look closer tomorrow
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.
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?
Hi guys, time for a YAGOF (Yet another Gom framework ;-) )
I had a problem not being able to access Trades and Trade history from Indicators.
In Ninja's mind, Indicators do the drawing , Strategies run the trades, but what if you want to draw stuff …