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 aligator with 1 posts (0 thanks)
    3. looks_3 Quick Summary with 1 posts (0 thanks)
    4. looks_4 ab456 with 1 posts (0 thanks)
    1. trending_up 1,619 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

(login for full post details)
  #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?
Request for MACD with option to use different MAs for fa …
NinjaTrader
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
The space time continuum and the dynamics of a financial …
Emini and Emicro Index
ISO Equity Curve Indicator
NinjaTrader
Volume profile TradeStation
EasyLanguage Programming
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Tao te Trade: way of the WLD
33 thanks
GFIs1 1 DAX trade per day journal
28 thanks
Supertradersams Thread Journal on NQ/MNQ
23 thanks
Leaving CFD trading and learning futures
13 thanks
Deaddogs Stock Trading
13 thanks

(login for full post details)
  #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
(login for full post details)
  #4 (permalink)
 
aligator's Avatar
 aligator 
Las Vegas, NV
Market Wizard
 
Experience: Advanced
Platform: Abacus, Slide Rule, HP-65
Trading: Futures, Stocks, Options
Posts: 3,608 since Aug 2010
Thanks Given: 1,071
Thanks Received: 5,985


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
(login for full post details)
  #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
(login for full post details)
  #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