NexusFi: Find Your Edge


Home Menu

 





Dynamic stop


Discussion in EasyLanguage Programming

Updated
      Top Posters
    1. looks_one ivanyu with 3 posts (0 thanks)
    2. looks_two Quick Summary with 1 posts (0 thanks)
    3. looks_3 ab456 with 1 posts (0 thanks)
    4. looks_4 aligator with 1 posts (0 thanks)
    1. trending_up 1,666 views
    2. thumb_up 0 thanks given
    3. group 3 followers
    1. forum 5 posts
    2. attach_file 0 attachments




 
Search this Thread

Dynamic stop

  #1 (permalink)
ivanyu
Hong Kong
 
Posts: 15 since Jul 2013
Thanks Given: 0
Thanks Received: 1

Hi,

I am trying to implement a dynamic stop order, i.e. the stop price will be recalculated on every bar, and is not a fixed points away or a fixed percentage, hence cannot be a simple trailing stop.

I see two logical approaches, with MultiCharts connecting to IB TWS, and am wondering which is possible.

1) Send a stop order over to IB TWS, let it sit on TWS server side, and modify the stop price on each new bar. Is this possible? I don't see an order reference for Easy Language, is this even possible?

2) Create a new stop order on each bar

I am a newbie and I might be totally wrong here, in assuming an order can last more than a bar?

Thanks for any advice!

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
ZombieSqueeze
Platforms and Indicators
Better Renko Gaps
The Elite Circle
How to apply profiles
Traders Hideout
REcommedations for programming help
Sierra Chart
 
  #3 (permalink)
ivanyu
Hong Kong
 
Posts: 15 since Jul 2013
Thanks Given: 0
Thanks Received: 1


Anyone can shed some light on this?

Thanks again!

Reply With Quote
  #4 (permalink)
 
aligator's Avatar
 aligator 
Las Vegas, NV
Legendary Market Wizard
 
Experience: Advanced
Platform: Abacus, Slide Rule, HP-65
Trading: Futures, Stocks, Options
Posts: 3,621 since Aug 2010
Thanks Given: 1,071
Thanks Received: 5,994


ivanyu View Post
Anyone can shed some light on this?

Thanks again!

What is the criteria for calculating the dynamic stop for the next bar? You need to first define what your dynamic stop is based on and how to calculate it. Then the question is easier to answer.

Visit my NexusFi Trade Journal Reply With Quote
  #5 (permalink)
ivanyu
Hong Kong
 
Posts: 15 since Jul 2013
Thanks Given: 0
Thanks Received: 1

I will be calculating the stop price using ATR, i.e. a trailing stop based on ATR

I guess my question is more on a more fundamental level question, due to my limited knowledge on Easy Language at the moment, say,

if I send a stop order via "buy next bar at stop xxx", obviously this order will be sent over to IB TWS (I am using IB for execution), but when my logic decides that the stop price should be updated, how do I modify the order over on IB side?

Or such order will always be cancelled at the end of each bar, and I just send a new stop order at the next bar?

Sorry to sound like a noob.

Thanks again!

Reply With Quote
  #6 (permalink)
 ab456 
New Delhi, India
 
Experience: Intermediate
Platform: SierraChart NinjaTrader,
Trading: ES,Stocks, Futures
Posts: 170 since Sep 2011
Thanks Given: 734
Thanks Received: 111


ivanyu View Post
I will be calculating the stop price using ATR, i.e. a trailing stop based on ATR

I guess my question is more on a more fundamental level question, due to my limited knowledge on Easy Language at the moment, say,

if I send a stop order via "buy next bar at stop xxx", obviously this order will be sent over to IB TWS (I am using IB for execution), but when my logic decides that the stop price should be updated, how do I modify the order over on IB side?

Or such order will always be cancelled at the end of each bar, and I just send a new stop order at the next bar?

Sorry to sound like a noob.

Thanks again!

I have no knowledge of Easy Language myself, but the highlighted statement is not correct. It does not work like that. The order will not get automatically cancelled at the end of each bar.

I understand your concept regarding dynamic stop, but I cannot help because of the lack of knowledge about Easy Language. Hopefully someone experienced will tell how to practically make that kind of dynamic stop.

Reply With Quote




Last Updated on August 19, 2013


© 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