NexusFi: Find Your Edge


Home Menu

 





stoploss to breakeven to trailing


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one wgreenie with 4 posts (2 thanks)
    2. looks_two stephenszpak with 3 posts (1 thanks)
    3. looks_3 Eloy with 2 posts (0 thanks)
    4. looks_4 aslan with 2 posts (5 thanks)
      Best Posters
    1. looks_one aslan with 2.5 thanks per post
    2. looks_two cory with 1 thanks per post
    3. looks_3 Trader.Jon with 1 thanks per post
    4. looks_4 wgreenie with 0.5 thanks per post
    1. trending_up 11,123 views
    2. thumb_up 10 thanks given
    3. group 7 followers
    1. forum 13 posts
    2. attach_file 2 attachments




 
Search this Thread

stoploss to breakeven to trailing

  #11 (permalink)
 
aslan's Avatar
 aslan 
Madison, WI
 
Experience: Advanced
Platform: ALT
Trading: ES
Posts: 625 since Jan 2010
Thanks Given: 356
Thanks Received: 1,127

Here are a couple of items to try:

* limit your data set (i.e. specific day or less) to help cut down on the amount of info to sift thru when debugging

* use set TraceOrders = true in Initialize() in order to see all order actions in Ninja in the output window, this combined with your own prints should help you figure out where your looping is coming from.

* make sure you are doing compare of price values correctly, Close[0] > lastPrice does not cut it when comparing double values. Just comparing values works most of the time, but you really need to use the following: Instrument.MasterInstrument.Compare() - see help. I hate needing this, and I usually leave it out until I get to the final code and then add it in. If you have a comparison that you think should trigger this could be it.

Hope this gives you some ideas.

Reply With Quote
Thanked by:

Can you help answer these questions
from other members on NexusFi?
The space time continuum and the dynamics of a financial …
Emini and Emicro Index
Are there any eval firms that allow you to sink to your …
Traders Hideout
Better Renko Gaps
The Elite Circle
NexusFi Journal Challenge - April 2024
Feedback and Announcements
ZombieSqueeze
Platforms and Indicators
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Get funded firms 2023/2024 - Any recommendations or word …
61 thanks
Funded Trader platforms
38 thanks
NexusFi site changelog and issues/problem reporting
26 thanks
GFIs1 1 DAX trade per day journal
19 thanks
The Program
18 thanks
  #12 (permalink)
 
stephenszpak's Avatar
 stephenszpak 
Massachusetts (USA)
 
Experience: None
Platform: NinjaTrader
Trading: YM
Posts: 750 since Jun 2009
Thanks Given: 144
Thanks Received: 356

Not doing much regarding a system these days. I do thank you all though,
Beth, cory, and Aslan.

P.S. Beth, I did come across a programmer that seems to be very knowledgeable,
should you need his name someday.

- Stephen

Started this thread Reply With Quote
Thanked by:
  #13 (permalink)
 danayster 
New York
 
Experience: Intermediate
Platform: thinkorswim
Trading: options
Posts: 28 since Feb 2014
Thanks Given: 62
Thanks Received: 43



wgreenie View Post
Hi Stephen

I also tried for weeks to have a trail code "functioning" in my strategies. Can certainly understand the stress and frustration when days and nights were spent and nothing seemed working.

Just got the enclosed sample and hope it may help you. Good Luck!

Beth

Wow, this script right here is exactly why I joined the elite futures.io (formerly BMT) section. Super thanks, I know its 4 years later but NT is still the leader!

Reply With Quote
  #14 (permalink)
 wgreenie 
Cambridge, Ontario
 
Experience: Intermediate
Platform: NinjaTrader
Broker: Zen-Fire
Trading: 6E
Posts: 1,778 since Dec 2009
Thanks Given: 1,258
Thanks Received: 1,203

Yes Stephen. NT Support Forum is extremely important/helpful for my learning. You can also email the NT support team directly for any issues you may have.

Good Trading is about Trading Right!
Want What the Market Wants!
Trade With the Trend!
Visit my NexusFi Trade Journal Reply With Quote




Last Updated on October 13, 2014


© 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