NexusFi: Find Your Edge


Home Menu

 





Accessing Trade Markers


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one Xav1029 with 4 posts (0 thanks)
    2. looks_two vvhg with 2 posts (2 thanks)
    3. looks_3 Quick Summary with 1 posts (0 thanks)
    4. looks_4 gomi with 1 posts (3 thanks)
    1. trending_up 2,458 views
    2. thumb_up 6 thanks given
    3. group 4 followers
    1. forum 8 posts
    2. attach_file 0 attachments




 
Search this Thread

Accessing Trade Markers

  #1 (permalink)
 
Xav1029's Avatar
 Xav1029 
Tampa, FL
 
Experience: Beginner
Platform: NinjaTrader, Sierra Chart
Broker: Mirus Futures/Zen-Fire
Trading: 6E, M6E, 6J
Posts: 1,375 since Dec 2011
Thanks Given: 1,452
Thanks Received: 3,377

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 @vvhg , @gregid , @Fat Tails , @MWinfrey , @NJAMC , @monpere , or @gomi can help?

London Calling
Visit my NexusFi Trade Journal Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
MC PL editor upgrade
MultiCharts
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
Cheap historycal L1 data for stocks
Stocks and ETFs
How to apply profiles
Traders Hideout
Better Renko Gaps
The Elite Circle
 
  #3 (permalink)
 
vvhg's Avatar
 vvhg 
Northern Germany
 
Experience: Intermediate
Platform: NT
Trading: FDAX, CL
Posts: 1,583 since Mar 2011
Thanks Given: 1,016
Thanks Received: 2,824



Xav1029 View Post
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...


vvhg

Hic Rhodos, hic salta.
Reply With Quote
Thanked by:
  #4 (permalink)
 
Xav1029's Avatar
 Xav1029 
Tampa, FL
 
Experience: Beginner
Platform: NinjaTrader, Sierra Chart
Broker: Mirus Futures/Zen-Fire
Trading: 6E, M6E, 6J
Posts: 1,375 since Dec 2011
Thanks Given: 1,452
Thanks Received: 3,377


vvhg View Post
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...


vvhg

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.

London Calling
Visit my NexusFi Trade Journal Started this thread Reply With Quote
  #5 (permalink)
 
vvhg's Avatar
 vvhg 
Northern Germany
 
Experience: Intermediate
Platform: NT
Trading: FDAX, CL
Posts: 1,583 since Mar 2011
Thanks Given: 1,016
Thanks Received: 2,824


Xav1029 View 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.

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


vvhg

Hic Rhodos, hic salta.
Reply With Quote
Thanked by:
  #6 (permalink)
 
Silver Dragon's Avatar
 Silver Dragon 
Cincinnati Ohio
Legendary Master Data Manipulator
 
Experience: Intermediate
Platform: TastyWorks / NT
Broker: TastyWorks /NT
Trading: FX, Stocks, Options
Posts: 2,107 since Feb 2011
Thanks Given: 6,422
Thanks Received: 5,238


Xav1029 View Post
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 @vvhg , @gregid , @Fat Tails , @MWinfrey , @NJAMC , @monpere , or @gomi can help?

Hey Xav,


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.

Robert

nosce te ipsum

You make your own opportunities in life.
Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #7 (permalink)
 
Xav1029's Avatar
 Xav1029 
Tampa, FL
 
Experience: Beginner
Platform: NinjaTrader, Sierra Chart
Broker: Mirus Futures/Zen-Fire
Trading: 6E, M6E, 6J
Posts: 1,375 since Dec 2011
Thanks Given: 1,452
Thanks Received: 3,377


Silver Dragon View Post
Hey Xav,


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.

Robert

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?

London Calling
Visit my NexusFi Trade Journal Started this thread Reply With Quote
  #8 (permalink)
 gomi 
Paris
Market Wizard
 
Experience: None
Platform: NinjaTrader
Posts: 1,270 since Oct 2009
Thanks Given: 282
Thanks Received: 4,505

You can try something like this ;-)

Reply With Quote
Thanked by:
  #9 (permalink)
 
Xav1029's Avatar
 Xav1029 
Tampa, FL
 
Experience: Beginner
Platform: NinjaTrader, Sierra Chart
Broker: Mirus Futures/Zen-Fire
Trading: 6E, M6E, 6J
Posts: 1,375 since Dec 2011
Thanks Given: 1,452
Thanks Received: 3,377


gomi View Post
You can try something like this ;-)

Perfect, this I can work with Thanks gomi

London Calling
Visit my NexusFi Trade Journal Started this thread Reply With Quote




Last Updated on November 28, 2012


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts