NinjaTrader Support Forum  
X

Attention!

This website will be down for maintenance from Friday May 24th at 6PM MDT until Saturday May 25th at 11AM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com


Go Back   NinjaTrader Support Forum > NinjaScript Development Support > Strategy Development

Strategy Development Support for the development of custom automated trading strategies using NinjaScript.

Reply
 
Thread Tools Display Modes
Old 03-24-2011, 10:35 AM   #1
drolles
Senior Member
 
Join Date: Mar 2009
Posts: 292
Thanks: 12
Thanked 1 time in 1 post
Default Misreporting of MAE, MFE and ETD in live trading

Hi NT support,

I thought it best to open a thread here; we have discussed this previously but due to the confusion of the issues we had open I think this issue got a bit lost.

I’m running an automated in Live testing, using the MBT price feed in to the Sim101 account. This screen shot is from the Control Centre. Note, this isn’t anything to do with backtesting, this is live trading into the Sim101 account.

I had a trade the occurred this morning that appears to be completely misreporting MAE, MFE and ETD. Could you please help me understand what is happening here?


I've had to email the PDF to the support address. Why are we only able to attach 39k PDFs and much bigger MS Word docs?


Thanks and regards,

drolles
drolles is offline  
Reply With Quote
Old 03-24-2011, 10:58 AM   #2
NinjaTrader_Brett
NinjaTrader Customer Service
 
NinjaTrader_Brett's Avatar
 
Join Date: Dec 2009
Location: Denver, CO, USA
Posts: 6,498
Thanks: 109
Thanked 291 times in 280 posts
Default

Hello,

I covered this in a previous email but most likely got lost. Let me grab the response on this from development.

This is a limitation of the these 3 stats. They were never specced to include the currency conversion math involved to do this as the PnL fields where. Therefor, there is no currency conversion going on for these fields for non home currency pairs.

This is on our suggestion list to possibly change in a future version of NinjaTrader since development currently views it as a feature request then a bug as this would be the first this has been brought up since >4 years. It is being tracked with tracking number: #781

For now you will need to export these results to excel and do the currency conversion by hand if this is needed on the non home currency pairs Unfortunately at this time.

Let me know if I can be of further assistance.
NinjaTrader_Brett is offline  
Reply With Quote
Old 03-24-2011, 11:56 AM   #3
drolles
Senior Member
 
Join Date: Mar 2009
Posts: 292
Thanks: 12
Thanked 1 time in 1 post
Default

Brett,

Thanks for the reply.

I’m not sure I understand why this is happening? Why is there no cross rate information? This is coming off a live data feed, with live trading.

Thanks and regards,

drolles
drolles is offline  
Reply With Quote
Old 03-24-2011, 01:33 PM   #4
NinjaTrader_Brett
NinjaTrader Customer Service
 
NinjaTrader_Brett's Avatar
 
Join Date: Dec 2009
Location: Denver, CO, USA
Posts: 6,498
Thanks: 109
Thanked 291 times in 280 posts
Default

Hello,

Its not that there is no cross rate information. Its simply these statistics do not include code to do the currency conversion. Therefor these are non-currency adjusted rates.

Let me know if I can be of further assistance.
NinjaTrader_Brett is offline  
Reply With Quote
Old 03-25-2011, 03:15 AM   #5
drolles
Senior Member
 
Join Date: Mar 2009
Posts: 292
Thanks: 12
Thanked 1 time in 1 post
Default

Brett,

Thanks very much for that.

What do you mean by “non-home currency pairs”? Of the MBT list (http://www.mbtrading.com/forexSpreadsPairs.aspx)which fit that criteria?

Thanks and regards,

drolles
drolles is offline  
Reply With Quote
Old 03-25-2011, 06:31 AM   #6
NinjaTrader_Brett
NinjaTrader Customer Service
 
NinjaTrader_Brett's Avatar
 
Join Date: Dec 2009
Location: Denver, CO, USA
Posts: 6,498
Thanks: 109
Thanked 291 times in 280 posts
Default

Hello,

What I mean is when a conversion is needed.

For example for me.

My Home Currency is the USD.

If I trade the EURUSD, the PnL does not need to be converted since USD is used in this currency pair and the PnL makes since to me.

However if I trade the EURJPY, since EUR or JPY does not have USD in it the PnL reported will be JPY. Therefor I would need to convert JPY to USD and convert the PnL to make since of the PnL. Unless I knew what JPY currency is and what equals what and I can do the conversion in my head for example.

Let me know if I can be of further assistance.
NinjaTrader_Brett is offline  
Reply With Quote
Old 03-25-2011, 07:12 AM   #7
drolles
Senior Member
 
Join Date: Mar 2009
Posts: 292
Thanks: 12
Thanked 1 time in 1 post
Default

Brett,

Thanks very much for the clarification.

How do I determine my home currency? I can’t find any documentation in this. This is trading into the sym account.

Kind regards,

drolles
drolles is offline  
Reply With Quote
Old 03-25-2011, 07:44 AM   #8
NinjaTrader_Brett
NinjaTrader Customer Service
 
NinjaTrader_Brett's Avatar
 
Join Date: Dec 2009
Location: Denver, CO, USA
Posts: 6,498
Thanks: 109
Thanked 291 times in 280 posts
Default

Helllo,

This is the currency you use in your home country. It is simply what your computer is set to in windows to report as. This is under control panel->Reginal and Language options of the windows PC.

Let me know if I can be of further assistance.
NinjaTrader_Brett is offline  
Reply With Quote
Old 03-27-2011, 05:09 AM   #9
drolles
Senior Member
 
Join Date: Mar 2009
Posts: 292
Thanks: 12
Thanked 1 time in 1 post
Default

Brett,

Thanks for the reply.

Unfortunately, I’m not more confused than I was before. I’ve included a screen shot from my Regional Settings screen – it shows that I’m set to the UK – England.

I’ve also included a screen shot of the control which tracked a trade against the CADCHF, neither of these two currencies are my home currency, yet the MAE, MFE and ETD appear to be correct. Whilst I haven’t gone back to recalculate this tick by tick it appears reasonable. Unlike the calculations I forwarded over to your previously.

Thanks and regards,

drolles
Attached Images
File Type: jpg MAE - non base currency.JPG (69.7 KB, 6 views)
File Type: jpg Regional settings.JPG (45.8 KB, 5 views)
drolles is offline  
Reply With Quote
Old 03-27-2011, 02:25 PM   #10
NinjaTrader_Austin
NinjaTrader Customer Service
 
NinjaTrader_Austin's Avatar
 
Join Date: Jun 2009
Location: Denver, CO
Posts: 3,149
Thanks: 10
Thanked 89 times in 81 posts
Default

drolles, I will have Brett get back to you on Monday.
NinjaTrader_Austin is offline  
Reply With Quote
Old 03-28-2011, 06:45 AM   #11
NinjaTrader_Brett
NinjaTrader Customer Service
 
NinjaTrader_Brett's Avatar
 
Join Date: Dec 2009
Location: Denver, CO, USA
Posts: 6,498
Thanks: 109
Thanked 291 times in 280 posts
Default

Hello,

Since there is no currency conversion going on here.

The MAE you see is listed in CAD or Canadian dollars. You will see different currencies that are formatedd differently. Such as CAD is close to your currency, howevere JPY pais are really different in there price quotation.

Let me know if I can be of further assistance.
NinjaTrader_Brett is offline  
Reply With Quote
Old 04-01-2011, 01:10 PM   #12
drolles
Senior Member
 
Join Date: Mar 2009
Posts: 292
Thanks: 12
Thanked 1 time in 1 post
Default

Brett,

Thanks for your help on this.

You say below that is this the first time that it has been highlighted in 4 years. I don’t get that? Are you saying I’m the only person with this problem? Or are you saying that the problem has always existed and I’m on the only person who has brought it up?

Thanks and regards,

drolles
drolles is offline  
Reply With Quote
Old 04-01-2011, 01:26 PM   #13
NinjaTrader_Brett
NinjaTrader Customer Service
 
NinjaTrader_Brett's Avatar
 
Join Date: Dec 2009
Location: Denver, CO, USA
Posts: 6,498
Thanks: 109
Thanked 291 times in 280 posts
Default

Hello,

What I mean by this is that this has existed since NinjaTrader was first created and your the first to bring it up.
NinjaTrader_Brett is offline  
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mae,mfe,etd billr Strategy Analyzer 1 03-14-2011 11:41 PM
Mae - mfe - etd Italy General Programming 1 11-04-2010 10:57 AM
MAE, MFE, ETD not working bigtee Version 7 Beta General Questions & Bug Reports 3 09-03-2010 02:11 PM
Average MAE, MFE, ETD = $NaN Eoghan O Sullivan Miscellaneous Support 3 03-02-2010 08:10 AM
AVerage MAE, MFE, ETD gg80108 Market Analyzer 1 12-13-2008 12:39 AM


All times are GMT -6. The time now is 05:32 PM.