NexusFi: Find Your Edge


Home Menu

 





Trailing stop in strategy


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one Bullywig with 7 posts (0 thanks)
    2. looks_two rleplae with 3 posts (2 thanks)
    3. looks_3 forgiven with 3 posts (2 thanks)
    4. looks_4 goodoboy with 2 posts (0 thanks)
    1. trending_up 9,542 views
    2. thumb_up 4 thanks given
    3. group 10 followers
    1. forum 20 posts
    2. attach_file 0 attachments




 
Search this Thread

Trailing stop in strategy

  #11 (permalink)
 
Bullywig's Avatar
 Bullywig 
Chicago
 
Experience: Intermediate
Platform: NinjaTrader
Broker: NinjaTrader Brokerage
Trading: FDAX, NQ, HG, SI, CL
Posts: 68 since Oct 2015
Thanks Given: 42
Thanks Received: 22


forgiven View Post
you can buy a prepackaged algo that is smart, it will adjust its self based on changing market conditions. there like 80 to 100 bucks... how much is your time worth trying to playing with the software. hope it helps

Just beginning with the strategy development. Where would I see an example of this pre packaged algo?

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
My NT8 Volume Profile Split by Asian/Euro/Open
NinjaTrader
Better Renko Gaps
The Elite Circle
The space time continuum and the dynamics of a financial …
Emini and Emicro Index
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Deepmoney LLM
Elite Quantitative GenAI/LLM
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Get funded firms 2023/2024 - Any recommendations or word …
59 thanks
Funded Trader platforms
36 thanks
NexusFi site changelog and issues/problem reporting
25 thanks
The Program
20 thanks
GFIs1 1 DAX trade per day journal
19 thanks
  #12 (permalink)
 
forgiven's Avatar
 forgiven 
Fletcher NC
Market Wizard
 
Experience: Intermediate
Platform: nijia trader
Broker: A.M.P. I.Q. ....C.Q.G.
Trading: ym es
Frequency: Every few days
Duration: Days
Posts: 862 since Mar 2012
Thanks Given: 287
Thanks Received: 580

you will find 3 or 4 of them there...if you want to get creative google volume stops for ninjatrader, or vwap or cwap or twap stops for ninjatrader. on and on... just keep digging to you find what you are looking for. there seems to be no end to it.

Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #13 (permalink)
 
Bullywig's Avatar
 Bullywig 
Chicago
 
Experience: Intermediate
Platform: NinjaTrader
Broker: NinjaTrader Brokerage
Trading: FDAX, NQ, HG, SI, CL
Posts: 68 since Oct 2015
Thanks Given: 42
Thanks Received: 22



forgiven View Post
you will find 3 or 4 of them there...if you want to get creative google volume stops for ninjatrader, or vwap or cwap or twap stops for ninjatrader. on and on... just keep digging to you find what you are looking for. there seems to be no end to it.

I really appreciate the resource. Just getting started with this endeavor. No, I'm not a programmer, and not really interested in becoming one in full force. Just a newbie part time trader that does not want to watch screens all day, or let my emotions rule the decision making process. Not looking for a magic fix, but something more manageable in the way of a rules based system that doesn't alter it's approach because of indecision.

Started this thread Reply With Quote
  #14 (permalink)
 
forgiven's Avatar
 forgiven 
Fletcher NC
Market Wizard
 
Experience: Intermediate
Platform: nijia trader
Broker: A.M.P. I.Q. ....C.Q.G.
Trading: ym es
Frequency: Every few days
Duration: Days
Posts: 862 since Mar 2012
Thanks Given: 287
Thanks Received: 580

look a blood hound see if they have what your looking for. i thought you were looking for a better way to trail your stop. auto trading is a different animal ... ever time i try working with that my back test looks grate then it blows up when deployed.

Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
  #15 (permalink)
 ShatteredX 
Houston, TX
 
Experience: Intermediate
Platform: Python
Trading: NQ
Posts: 97 since Apr 2016
Thanks Given: 133
Thanks Received: 96

To get started programming in NinjaTrader, try just "unlocking" the code to a strategy that you have built with the Strategy Wizard to see how the basic syntax works.

After that, an essential reference would be the NT Reference samples forum: Reference Samples - [AUTOLINK]NinjaTrader[/AUTOLINK] Support Forum

Beyond that, google will probably find 99% of what you're looking for with code snippets people have already written

Reply With Quote
  #16 (permalink)
 
dannyinhouston's Avatar
 dannyinhouston 
Houston Texas
 
Experience: Intermediate
Platform: NinjaTrader
Trading: CL, YM, NQ, ES
Posts: 329 since Mar 2016
Thanks Given: 287
Thanks Received: 1,044


Bullywig View Post
I'm new to NT8 and trying to learn to build strategies. I have a basic strategy built that is working with 1 contract, and a simple profit target and stop in place.

I would like to know where I can find information on how, if my strategy is set to trade 2 contracts per execution, the stop moves to break even after the first profit target is filled, and then trails the second contract by (x) number of ticks until either second profit target is hit, or the stop is triggered.

Any direction is appreciated.

Bullywig

No reason for code, the software makes it easy. Suggest you play around with the wizard and use simulated data feed to get familiar with the software. You will want to modify your strategy, and getting familiar with the wizard is essential.


Reply With Quote
  #17 (permalink)
 
Bullywig's Avatar
 Bullywig 
Chicago
 
Experience: Intermediate
Platform: NinjaTrader
Broker: NinjaTrader Brokerage
Trading: FDAX, NQ, HG, SI, CL
Posts: 68 since Oct 2015
Thanks Given: 42
Thanks Received: 22


dannyinhouston View Post
No reason for code, the software makes it easy. Suggest you play around with the wizard and use simulated data feed to get familiar with the software. You will want to modify your strategy, and getting familiar with the wizard is essential.


I'm familiar with manually working the ATM strategy or monitoring it, but can I roll that into the strategy builder as part of a strategy?

Started this thread Reply With Quote
  #18 (permalink)
 
shodson's Avatar
 shodson 
OC, California, USA
Quantoholic
 
Experience: Advanced
Platform: IB/TWS, NinjaTrader, ToS
Broker: IB, ToS, Kinetick
Trading: stocks, options, futures, VIX
Posts: 1,976 since Jun 2009
Thanks Given: 533
Thanks Received: 3,709

There are a number of webinars here on FIO about programming strategies in Ninjascript on Ninjatrader


https://nexusfi.com/webinars/feb23_2011/ninjascript_overview/

https://nexusfi.com/webinars/may25_2011/basic_ninjatrader_programming/
https://nexusfi.com/webinars/sep22_2012/ninjatrader_strategy_risk_management/


Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
  #19 (permalink)
 adaisguy 
Edmonton, Alberta
 
Experience: Intermediate
Platform: NT8
Broker: Continuum, Global Futures, Ironbeam
Trading: ES
Posts: 7 since May 2016
Thanks Given: 1
Thanks Received: 4


Bullywig View Post
I'm familiar with manually working the ATM strategy or monitoring it, but can I roll that into the strategy builder as part of a strategy?

That is what I do for my automated strategy. My strategy looks for the proper setup conditions and then is passes the order to an ATM to handle the exit. Your original strategy can keep on running in tandem and can cancel the order before it is filled or close the trade based on an indicator while the ATM handles the stops.

There is sample code in in the demo strategy called 'SampleAtmStrategy' included with ninja trader. Just open it up and see how it works. I find it much easier to let the ATM control the trailing stops and targets but you cannot backtest this way. You'll need a separate strategy that doesn't use ATM to backtest.

Reply With Quote
  #20 (permalink)
 
Bullywig's Avatar
 Bullywig 
Chicago
 
Experience: Intermediate
Platform: NinjaTrader
Broker: NinjaTrader Brokerage
Trading: FDAX, NQ, HG, SI, CL
Posts: 68 since Oct 2015
Thanks Given: 42
Thanks Received: 22



adaisguy View Post
That is what I do for my automated strategy. My strategy looks for the proper setup conditions and then is passes the order to an ATM to handle the exit. Your original strategy can keep on running in tandem and can cancel the order before it is filled or close the trade based on an indicator while the ATM handles the stops.

There is sample code in in the demo strategy called 'SampleAtmStrategy' included with ninja trader. Just open it up and see how it works. I find it much easier to let the ATM control the trailing stops and targets but you cannot backtest this way. You'll need a separate strategy that doesn't use ATM to backtest.

I've been playing around with that exact strategy, but it's set up for a long entry only. I was able to figure out how to set up the short entry, but not both within the same strategy. As a separate strategy. The parameters to enter in that template are simply close(0)>close(1) if I;m understanding the logic correctly. I'm not ninja script proficient; just starting out so struggling to get my conditions in lieu (close(0) >close(1) portion.

Started this thread Reply With Quote




Last Updated on March 1, 2017


© 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