Possible to relocate a stoploss after position open? - MultiCharts | futures io social day trading
futures io futures trading


Possible to relocate a stoploss after position open?
Updated: Views / Replies:764 / 8
Created: by Speculationist Attachments:0

Welcome to futures io.

(If you already have an account, login at the top of the page)

futures io is the largest futures trading community on the planet, with over 90,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors Ė all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you donít need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • 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.

-- Big Mike, Site Administrator

Reply
 
Thread Tools Search this Thread
 

Possible to relocate a stoploss after position open?

  #1 (permalink)
Elite Member
Calgary, Alberta/Canada
 
Futures Experience: Intermediate
Platform: Tradestation, Multicharts
Broker/Data: IB, Disnat
Favorite Futures: Stocks, ES
 
Posts: 5 since Sep 2012
Thanks: 1 given, 0 received

Possible to relocate a stoploss after position open?

Need a little help. I've been working on this for a couple of days now with no success.

I like using Risk/Reward multiples for money management...
For example, go long at 10 with a stop at 9 the Risk/Reward amount would be 1.
Should the price reach 11 I would like my new stop to be 10..
Should the price reach 12 I would like my new stop to be 11 and so on...

I have coded this up a number of ways in Multicharts, and the limiting factor seems to always be the sell "next bar" at ... The stop isn't always hit during the next bar, it can be any number of bars later.

The only way I can come up with to make this work is to change the setstoploss function as price progresses, but I have not been able to do this.

Any suggestions would be great

Thanks in advance.

Jeff

Reply With Quote
 
  #2 (permalink)
Market Wizard
Hamburg Germany
 
Futures Experience: Advanced
Platform: Multicharts, Tradestation, Multicharts.NET, NinjaTrader, MetaTrader
Broker/Data: DTN IQ
Favorite Futures: ES
 
Posts: 1,528 since Apr 2013
Thanks: 230 given, 854 received
Forum Reputation: Legendary

Jeff,

what exactly is the problem you are running into? What if the stop is not hit next bar, what happens?

Regards,
ABCTG


Speculationist View Post
Need a little help. I've been working on this for a couple of days now with no success.

I like using Risk/Reward multiples for money management...
For example, go long at 10 with a stop at 9 the Risk/Reward amount would be 1.
Should the price reach 11 I would like my new stop to be 10..
Should the price reach 12 I would like my new stop to be 11 and so on...

I have coded this up a number of ways in Multicharts, and the limiting factor seems to always be the sell "next bar" at ... The stop isn't always hit during the next bar, it can be any number of bars later.

The only way I can come up with to make this work is to change the setstoploss function as price progresses, but I have not been able to do this.

Any suggestions would be great

Thanks in advance.

Jeff


Reply With Quote
 
  #3 (permalink)
Elite Member
Newcastle, Australia
 
Futures Experience: Intermediate
Platform: Multicharts 8 - Full Version
Broker/Data: IB
Favorite Futures: SPI,FTSE100, 6E, 6A
 
Posts: 285 since Oct 2010
Thanks: 108 given, 177 received


Go to the multicharts download area and look for "NWT Exits"
This will do what you want and 500% more.
If your brave, have a look at the code

Sent from my SM-N9005 using Tapatalk

Reply With Quote
The following user says Thank You to NW27 for this post:
 
  #4 (permalink)
Elite Member
Calgary, Alberta/Canada
 
Futures Experience: Intermediate
Platform: Tradestation, Multicharts
Broker/Data: IB, Disnat
Favorite Futures: Stocks, ES
 
Posts: 5 since Sep 2012
Thanks: 1 given, 0 received

Thanks for the responses so far.

ABCGT.... if the stop is not hit the next bar, it will ignore the new stop placement, and revert to the original setstoploss and settarget functions.

NW27..... I have downloaded "NWT Exits" and had a good look through the code, actually for inspiration for what I'm trying to do, and from what I was able to tell it didn't do what I'm trying to do. But I will have another hard look at it tonight and see what there is to see.

Regards,
Jeff

Reply With Quote
 
  #5 (permalink)
Market Wizard
Hamburg Germany
 
Futures Experience: Advanced
Platform: Multicharts, Tradestation, Multicharts.NET, NinjaTrader, MetaTrader
Broker/Data: DTN IQ
Favorite Futures: ES
 
Posts: 1,528 since Apr 2013
Thanks: 230 given, 854 received
Forum Reputation: Legendary

Jeff,

you could prevent it from doing so by using a flag for example that blocks the code from resetting the stop to the original values when you have moved it.

Regards,
ABCTG


Speculationist View Post
ABCGT.... if the stop is not hit the next bar, it will ignore the new stop placement, and revert to the original setstoploss and settarget functions.


Reply With Quote
 
  #6 (permalink)
Elite Member
Calgary, Alberta/Canada
 
Futures Experience: Intermediate
Platform: Tradestation, Multicharts
Broker/Data: IB, Disnat
Favorite Futures: Stocks, ES
 
Posts: 5 since Sep 2012
Thanks: 1 given, 0 received


ABCTG View Post
Jeff,

you could prevent it from doing so by using a flag for example that blocks the code from resetting the stop to the original values when you have moved it.

Regards,
ABCTG

I'm not familiar with flags, what would something like that look like?
Basically all I'm after is the ability to move my stop as the close of a bar reaches a new price level then have it stay there until it is hit or moved once again. It sounds simple enough don't you think?

Jeff

Reply With Quote
 
  #7 (permalink)
Elite Member
Calgary, Alberta/Canada
 
Futures Experience: Intermediate
Platform: Tradestation, Multicharts
Broker/Data: IB, Disnat
Favorite Futures: Stocks, ES
 
Posts: 5 since Sep 2012
Thanks: 1 given, 0 received

Cracked it!

Hey Guys

Thanks for your suggestions.
I finally cracked it.
Instead of using "If C > " blah blah blah, I used "If Highest( C , Barssinceentry_checked( 0 ) ) >" blah blah blah.
That way it is continually checking back to the entry candle the highest close on every bar, and then the sell at next bar stop is not a problem.

Thanks again.

Jeff

Reply With Quote
 
  #8 (permalink)
Market Wizard
Hamburg Germany
 
Futures Experience: Advanced
Platform: Multicharts, Tradestation, Multicharts.NET, NinjaTrader, MetaTrader
Broker/Data: DTN IQ
Favorite Futures: ES
 
Posts: 1,528 since Apr 2013
Thanks: 230 given, 854 received
Forum Reputation: Legendary

Speculationist,

I am glad to hear that you got it working. A flag can be something simple like a boolean variable that you set to true when your condition is met. Something like this, which is just a very basic example and is not meant to be used:

 
Code
if HaveFirstStop = false and MarketPosition > 0 then //HaveFirstStop would be the flag
begin
    HaveFirstStop = true;
    StopValue = EntryPrice - 10;
end;

//update the stop when the bar is rising
if HaveFirstStop and Close > Open and MarketPosition > 0 then
   StopValue = Open - 1;
end;
You could set the flag to false again when you are flat. This way the code can only set the initial stop once at the beginning of the position and after that only updates would be possible.

Regards,
ABCTG


Speculationist View Post
I'm not familiar with flags, what would something like that look like?
Basically all I'm after is the ability to move my stop as the close of a bar reaches a new price level then have it stay there until it is hit or moved once again. It sounds simple enough don't you think?

Jeff


Reply With Quote
 
  #9 (permalink)
Elite Member
Calgary, Alberta/Canada
 
Futures Experience: Intermediate
Platform: Tradestation, Multicharts
Broker/Data: IB, Disnat
Favorite Futures: Stocks, ES
 
Posts: 5 since Sep 2012
Thanks: 1 given, 0 received


ABCTG View Post
Speculationist,

I am glad to hear that you got it working. A flag can be something simple like a boolean variable that you set to true when your condition is met. Something like this, which is just a very basic example and is not meant to be used:

 
Code
if HaveFirstStop = false and MarketPosition > 0 then //HaveFirstStop would be the flag
begin
    HaveFirstStop = true;
    StopValue = EntryPrice - 10;
end;

//update the stop when the bar is rising
if HaveFirstStop and Close > Open and MarketPosition > 0 then
   StopValue = Open - 1;
end;
You could set the flag to false again when you are flat. This way the code can only set the initial stop once at the beginning of the position and after that only updates would be possible.

Regards,
ABCTG



This looks interesting. I will definitely play around with it. Might be simpler to implement into a strategy than what I cam up with too. Thanks

Jeff

Reply With Quote

Reply



futures io > > > > Possible to relocate a stoploss after position open?

Thread Tools Search this Thread
Search this Thread:

Advanced Search



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

Linda Bradford Raschke: Reading The Tape

Elite only

Adam Grimes: TBA

Elite only

NinjaTrader: TBA

January

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Close Open Position on Startup MWinfrey NinjaTrader Programming 3 October 19th, 2013 02:36 PM
[MC] indicator - Range Charts - position of the next close and the next open Nicolas11 The Elite Circle 2 June 12th, 2012 09:15 AM
Contract Rollover: Adopt Real World Position and manage per previous position entry RM99 EasyLanguage Programming 3 May 30th, 2012 07:55 AM
Order and Position Tracker - Open P&L ccfeldt MultiCharts 13 July 6th, 2011 09:22 AM
Volitility indicator question - Open - Open / open - close / close to open andresimon NinjaTrader 2 September 27th, 2010 01:33 AM


All times are GMT -4. The time now is 09:25 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-12-13 in 0.13 seconds with 19 queries on phoenix via your IP 54.82.56.95