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 forgiven with 3 posts (2 thanks)
    3. looks_3 rleplae with 3 posts (2 thanks)
    4. looks_4 adaisguy with 2 posts (0 thanks)
    1. trending_up 9,753 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

  #21 (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'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.

You can have long and short orders at the same time. Simply use two AtmStrategyCreate commands, give them two different names and make one a long entry and the other a short entry. You cannot directly make the orders OCO but you can have your strategy cancel one order when the other order is filled.

You can download an example strategy here: OCO bracket [AUTOLINK]stop orders[/AUTOLINK] with different [AUTOLINK]ATM[/AUTOLINK] strategies - [AUTOLINK]NinjaTrader[/AUTOLINK] Support Forum

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Better Renko Gaps
The Elite Circle
REcommedations for programming help
Sierra Chart
Quantum physics & Trading dynamics
The Elite Circle
What broker to use for trading palladium futures
Commodities
MC PL editor upgrade
MultiCharts
 




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