Trying to set trailing stop to be two ticks below the low>> HELP! - NinjaTrader Programming | futures io social trading
futures io futures trading


Trying to set trailing stop to be two ticks below the low>> HELP!
Updated: Views / Replies:1,255 / 22
Created: by budfox Attachments:0

Welcome to futures io.

Welcome, Guest!

This forum was established to help traders (especially futures traders) by openly sharing indicators, strategies, methods, trading journals and discussing the psychology of trading.

We are fundamentally different than most other trading forums:
  • We work extremely hard to keep things positive on our forums.
  • We do not tolerate rude behavior, trolling, or vendor advertising in posts.
  • We firmly believe in openness and encourage sharing. The holy grail is within you, it is not something tangible you can download.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.


You'll need to register in order to view the content of the threads and start contributing to our community. It's free and simple, and we will never resell your private information.

-- Big Mike

Reply
 
Thread Tools Search this Thread
 

Trying to set trailing stop to be two ticks below the low>> HELP!

  #21 (permalink)
Trading Apprentice
Chicago, IL
 
Futures Experience: Advanced
Platform: Tradestation + Multicharts
Favorite Futures: Forex, Futures
 
Posts: 34 since Jul 2013
Thanks: 21 given, 1 received


kevinkdog View Post
setexitonclose;

but remember it will not work with real money on last bar of day. It works in backtest though.

Hello again, Kevin.

For the life of me, I can't get "MaxPositionProfit" to work anything like a percent trailing. Any ideas or different avenues I should look at?

Any information would be greatly appreciated! -brandon

Reply With Quote
 
  #22 (permalink)
Market Wizard
Cleveland Ohio/United States
 
Futures Experience: Advanced
Platform: Tradestation
Broker/Data: various
Favorite Futures: futures
 
Posts: 2,255 since Jul 2012
Thanks: 1,059 given, 4,099 received


djvie11 View Post
Hello again, Kevin.

For the life of me, I can't get "MaxPositionProfit" to work anything like a percent trailing. Any ideas or different avenues I should look at?

Any information would be greatly appreciated! -brandon

Did you do something like this? You define XXX - where the function kicks in, and the trailing amount ZZZ

So, if I wanted to hit a max profit of $1000, and then have a stop $500 below that, XXX=1000 and ZZZ=500


if maxpositionprofit> XXX then begin
YYY=maxpositionprofit-ZZZ;

sell next bar at YYY stop;

end;

If you have any questions please send me a Private Message or use the futures.io "Ask Me Anything" thread
Reply With Quote
The following user says Thank You to kevinkdog for this post:
 
  #23 (permalink)
Trading Apprentice
Chicago, IL
 
Futures Experience: Advanced
Platform: Tradestation + Multicharts
Favorite Futures: Forex, Futures
 
Posts: 34 since Jul 2013
Thanks: 21 given, 1 received



kevinkdog View Post
Did you do something like this? You define XXX - where the function kicks in, and the trailing amount ZZZ

So, if I wanted to hit a max profit of $1000, and then have a stop $500 below that, XXX=1000 and ZZZ=500


if maxpositionprofit> XXX then begin
YYY=maxpositionprofit-ZZZ;

sell next bar at YYY stop;

end;

Excellent idea. Once again, thanks again for the knowledge Kevin!

Reply With Quote

Reply



futures io > > > > > Trying to set trailing stop to be two ticks below the low>> HELP!

Thread Tools Search this Thread
Search this Thread:

Advanced Search



Upcoming Webinars and Events (4:30PM ET unless noted)

FIO Journal Challenge featuring NinjaTrader ($2,000+ of prizes)

May

An overview of volumetric analytical tools w/Sergey Sokolov @ PTMC

Elite only

John Hoagland (TBA)

Elite only

FuturesTrader71 Extended Ask Me Anything (AMA)

Elite only

Pete @ Jigsaw Trading (TBA)

Elite only

John @ No BS Day Trading (TBA)

Elite only

An Afternoon with FIO member Softsoap (being rescheduled)

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
CLICK HERE if you are landlord>>> Creditor trying to garnish my precious rent budfox Off-Topic 16 May 12th, 2014 11:25 AM
ACD System>>>A & C Values for the ES budfox Emini Index Futures Trading 3 October 28th, 2013 04:20 PM
Difference in simulator trading the ES and live trading with a small account>>> budfox Traders Hideout 8 July 6th, 2013 10:59 PM
BLUELINE DELIGHT >>>Intraday Trading Strategy Guide<<< Gabriyele The Elite Circle 407 May 30th, 2013 07:29 AM
TIP : Search for free NinjaTrader Indicator on BMT ? >> How to use our searchtools ! max-td Beginners and Introductions 2 July 19th, 2010 06:16 AM


All times are GMT -4. The time now is 12:42 AM.

Copyright © 2017 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
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.
no new posts
Page generated 2017-05-27 in 0.08 seconds with 19 queries on phoenix via your IP 54.224.200.104