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 13,768 views
    2. thumb_up 4 thanks given
    3. group 10 followers
    1. forum 20 posts
    2. attach_file 0 attachments




 
Search this Thread
  #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 stop orders with different ATM strategies - NinjaTrader Support Forum


Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Peace Deal Forward Curve: May 22%, June 51%, December 81 …
Prediction Markets & Event Contracts
Iran Forward Curve: June 30 at 56% vs June 15 at 28% -- …
Prediction Markets & Event Contracts
Iran Peace Expired NO: Ceasefire on Life Support, OPEC a …
Prediction Markets & Event Contracts
Rubios Good News Within Hours and the 30-Day Math: Why H …
Prediction Markets & Event Contracts
Iran Airspace Collapses 18 Points to 15.5% While Hormuz …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
NexusFi site changelog and issues/problem reporting
8 thanks
Darmok and Jalad at Tanagra
3 thanks




Last Updated on March 1, 2017


© 2026 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 - Downloads - Top
no new posts