NinjaTrader Support Forum  
X

Attention!

This website will be down for maintenance from Friday May 24th at 6PM MDT until Sunday May 26th at 12PM 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 > General Programming

General Programming General NinjaScript programming questions.

Reply
 
Thread Tools Display Modes
Old 11-04-2010, 10:36 AM   #1
Italy
Senior Member
 
Join Date: Jul 2009
Location: San Feliciano - Perugia- Italy
Posts: 150
Thanks: 0
Thanked 2 times in 2 posts
Default Mae - mfe - etd

Hello, I wanted to know if you have example codes that use the MAE or MFE or ETD, to define stops.
Thanks.
Roberto
Italy is offline  
Reply With Quote
Old 11-04-2010, 10:57 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,

Thank you for your note.

We do not have any examples for this specifically. However what you would need to do is access this value and then use any calculation you need to formulate at what price you want the stop loss placed then use this as the stop price.

http://www.ninjatrader-support.com/H...luesClass.html

Then use this to modify the stop loss price:

http://www.ninjatrader.com/support/f...ead.php?t=3222

Here is all our reference samples as well that are posted to the forum:

http://www.ninjatrader.com/support/f...ead.php?t=3220

Let me know if I can be of further assistance.
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 not working bigtee Version 7 Beta General Questions & Bug Reports 3 09-03-2010 02:11 PM
MAE, MFE, ETD showing NaN in Account Performance for IB keeda Miscellaneous Support 3 07-21-2010 07:53 AM
Average MAE, MFE, ETD = $NaN Eoghan O Sullivan Miscellaneous Support 3 03-02-2010 08:10 AM
MAE, MFE and ETD missing in latest version? alanack Miscellaneous Support 11 01-05-2010 08:21 AM
AVerage MAE, MFE, ETD gg80108 Market Analyzer 1 12-13-2008 12:39 AM


All times are GMT -6. The time now is 02:05 AM.