![]() |
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
|
|||||||
| Strategy Development Support for the development of custom automated trading strategies using NinjaScript. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Member
Join Date: Aug 2007
Posts: 39
Thanks: 0
Thanked 0 times in 0 posts
|
1) I have the settings for my stop loss and targets as
SetStopLoss("", CalculationMode.Ticks, 12, false); SetProfitTarget("", CalculationMode.Ticks, 12); I can't seem to find the code to insert auto break even? ie: go to breakeven after profit reaches 8 ticks. Any help would be appreciated. ------------------------------------------------------------------- 2) During the backtesting process, when I insert times for my strategy to operate, I don't get any signals. When I remove the code ToTime(Time[0]) >= 93000 && ToTime(Time[0]) <= 1559 I then get the backtesting results? What am I doing wrong here? Thanks in advance for any direction on these two matters. |
|
|
|
|
|
#2 |
|
Administrator
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
|
1) Unfortunately AutoBreakEven is not support on NinjaScript strategies only.
2) I suggest adding Print() statements to your logic to see where it breaks.
Dierk
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Member
Join Date: Aug 2007
Posts: 39
Thanks: 0
Thanked 0 times in 0 posts
|
[quote=NinjaTrader_Dierk;14474]1) Unfortunately AutoBreakEven is not support on NinjaScript strategies only.
quote] 1) Will auto break-even be an option on "NS strategies only", in the near future? 2) Do I need to program in an ATM custom to get an auto break-even aspect to the strategy? 3) If so, can I combine the custom ATM with other NS exit/profit target strategies? For simplistic sake, could I have a custom ATM and a simple "cross above..." strategy as the exits. If any exit is filled then all orders would be cancelled? Thanks in advance for your response.
Last edited by Thomas; 08-17-2007 at 01:33 PM.
|
|
|
|
|
|
#4 |
|
Administrator
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
|
1) No however, we will provide sample code to accomplish breakeven
2) No, you can program this with NinjaScript right now. We will have some reference samples available soon. 3) No you can not.
Ray
NinjaTrader Customer Service |
|
|
|
|
|
#5 |
|
Member
Join Date: Aug 2007
Posts: 39
Thanks: 0
Thanked 0 times in 0 posts
|
Thanks for your reply...I'll be looking forward to all of the new reference samples.
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Breakeven Trades | pivot44 | Miscellaneous Support | 3 | 07-25-2007 01:32 PM |
| BreakEven Method | MrBaffalo | Strategy Development | 2 | 04-16-2007 01:32 AM |
| Auto breakeven fails? | nicko9 | ATM Strategies (Discretionary Trading) | 3 | 02-05-2007 03:04 AM |
| Auto breakeven fails? (2) | nicko9 | ATM Strategies (Discretionary Trading) | 1 | 02-05-2007 01:36 AM |
| Sliding auto-breakeven | pwald9 | ATM Strategies (Discretionary Trading) | 3 | 11-08-2006 06:45 AM |