NexusFi: Find Your Edge


Home Menu

 





Trailing stop based on previous bar high or low


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one Guss with 3 posts (0 thanks)
    2. looks_two Marvin S with 3 posts (0 thanks)
    3. looks_3 NinjaTrader with 1 posts (2 thanks)
    4. looks_4 markbb10 with 1 posts (0 thanks)
    1. trending_up 4,728 views
    2. thumb_up 2 thanks given
    3. group 3 followers
    1. forum 7 posts
    2. attach_file 0 attachments




 
Search this Thread

Trailing stop based on previous bar high or low

  #1 (permalink)
 Guss   is a Vendor
 
Posts: 138 since Aug 2011
Thanks Given: 60
Thanks Received: 86

Hi
I am looking for an ATM strategy where the stop can be trailed based on previous bar high/ low.
Also if one can customize which time frame to use for trailing and the number of bars to be used( current bar, or last bar , or 2 bars back...etc) and the number of tics (1or2...etc) to above or below the trailing bar.
Any help and feedback is highly appreciated.
Regards,
Guss

Follow me on Twitter Visit my NexusFi Trade Journal Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
How to apply profiles
Traders Hideout
Trade idea based off three indicators.
Traders Hideout
REcommedations for programming help
Sierra Chart
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
MC PL editor upgrade
MultiCharts
 
  #2 (permalink)
Marvin S
Vancouver Washington United State of America
 
Posts: 11 since Nov 2013
Thanks Given: 2
Thanks Received: 4

What you are asking about I call a "technical stop." I can't tell you how to program it but I'll try to describe it as I understand it. I think it is best after you have gotten half way or more to your target to maximize your profit. If you use it too soon you can be whipsawed for a big loss. You may think you have been whipsawed anyway.

As a stock moves away from your entry (long or short--this example is for long) you place a stop a couple of ticks under the last pivot low or the low of an area of consolidation or basing. Then you wait until the next higher low is formed and the next higher high is exceeded and you move your stop a couple of ticks below the higher pivot low. You repeat until you have reached a target or if you have some of your position left after reaching your target you just proceed until you are stopped out.

Where you place your advancing stops depends on the chart of the time frame you are trading.

You just watch candles on a chart. Nothing else is needed.

I don't think it is programmable.

Reply With Quote
  #3 (permalink)
Marvin S
Vancouver Washington United State of America
 
Posts: 11 since Nov 2013
Thanks Given: 2
Thanks Received: 4


It can be used to trade all time highs when there is not target in sight.

Reply With Quote
  #4 (permalink)
 Guss   is a Vendor
 
Posts: 138 since Aug 2011
Thanks Given: 60
Thanks Received: 86


Marvin S View Post
What you are asking about I call a "technical stop." I can't tell you how to program it but I'll try to describe it as I understand it. I think it is best after you have gotten half way or more to your target to maximize your profit. If you use it too soon you can be whipsawed for a big loss. You may think you have been whipsawed anyway.

As a stock moves away from your entry (long or short--this example is for long) you place a stop a couple of ticks under the last pivot low or the low of an area of consolidation or basing. Then you wait until the next higher low is formed and the next higher high is exceeded and you move your stop a couple of ticks below the higher pivot low. You repeat until you have reached a target or if you have some of your position left after reaching your target you just proceed until you are stopped out.

Where you place your advancing stops depends on the chart of the time frame you are trading.

You just watch candles on a chart. Nothing else is needed.

I don't think it is programmable.

Thanks Marvin,
i am very aware of where to place my stops manually. I was just wondering if it can be automated based on price bars, specially in fast momentum moves trading shorter term time frames, 200-500tics.
where markets can run 50+ tics in few seconds, you don't really have time to move your stop fast enough.

Thanks again for your feedback

Follow me on Twitter Visit my NexusFi Trade Journal Started this thread Reply With Quote
  #5 (permalink)
Marvin S
Vancouver Washington United State of America
 
Posts: 11 since Nov 2013
Thanks Given: 2
Thanks Received: 4

I didn't mean to talk down to you.

If you have TradeStation, they have two strategies called Pivot Reversal LE (long entry), and Pivot Reversal SE (short entry). You select the number of bars before and after the low bar to set as the entry point then when it hits that price again a sell or a buy order is sent. It might be a place to start.

Reply With Quote
  #6 (permalink)
 Guss   is a Vendor
 
Posts: 138 since Aug 2011
Thanks Given: 60
Thanks Received: 86


Marvin S View Post
I didn't mean to talk down to you.

If you have TradeStation, they have two strategies called Pivot Reversal LE (long entry), and Pivot Reversal SE (short entry). You select the number of bars before and after the low bar to set as the entry point then when it hits that price again a sell or a buy order is sent. It might be a place to start.

Marvin
No need to apologize at all.
Thanks for your suggestion and feedback.
Just trying to figure out If this is possible on NT or not.

Thanks again.

Follow me on Twitter Visit my NexusFi Trade Journal Started this thread Reply With Quote
  #7 (permalink)
 markbb10 
Treasure Coast, Florida
 
Experience: Advanced
Platform: Ninja 8
Trading: Futures
Posts: 135 since Aug 2012
Thanks Given: 57
Thanks Received: 50

Hello wanted to see if there was any additional insight on this.

Specifically coding a trailing stop that will track the high/low of a previous bar or bars (i.e 2 bars back). Specifically looking to set a stop at a bar at the HALow/HAHigh of a specific bar (Heiken Ashi)

Thanks for any additional insight

Reply With Quote
  #8 (permalink)
 
NinjaTrader's Avatar
 NinjaTrader  NinjaTrader is an official Site Sponsor
Site Sponsor

Web: NinjaTrader
AMA: Ask Me Anything
Webinars: NinjaTrader Webinars
Elite offer: Click here
 
Posts: 1,714 since May 2010
Thanks Given: 203
Thanks Received: 2,686


markbb10 View Post
Hello wanted to see if there was any additional insight on this.

Specifically coding a trailing stop that will track the high/low of a previous bar or bars (i.e 2 bars back). Specifically looking to set a stop at a bar at the HALow/HAHigh of a specific bar (Heiken Ashi)

Thanks for any additional insight

With NinjaTrader 8, you could set a 1 period SMA using the High or Low of the bar as Input. You can then set the Displacement value X bars to get the previous bars value to plot on the current bar. Then if you want, you can attach your stop loss order to such indicator and have NinjaTrader automatically modify the order when as a new bar closes. Set it and forget it.

Disclosure: This communication is sent to you by NinjaTrader, LLC, a software development company which owns and supports all proprietary technology relating to and including the NinjaTrader trading platform.
Follow me on Twitter Reply With Quote
Thanked by:




Last Updated on April 5, 2018


© 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