How does TradeStation Stop-Loss Strategy interpret Entry Position? - TradeStation | futures.io
futures io futures trading


How does TradeStation Stop-Loss Strategy interpret Entry Position?
Started: by Vientomarsol Views / Replies:262 / 4
Last Reply: 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
 

How does TradeStation Stop-Loss Strategy interpret Entry Position?

  #1 (permalink)
Trading Apprentice
Port St. Lucie, FL.
 
Futures Experience: Intermediate
Platform: TradeStation
Favorite Futures: ES
 
Posts: 18 since May 2016
Thanks: 10 given, 6 received

How does TradeStation Stop-Loss Strategy interpret Entry Position?

OVERVIEW:
• I’m trading the e-mini (ESZ16) with a custom TradeStation ELD entry strategy, which uses Buy / Sell ‘next bar at market’ entries.
and
• I’m using a ‘canned’ TradeStation strategy for Stop-Loss exits. Code for Stop-Loss exit is:

[IntrabarOrderGeneration = false]
inputs:
PositionBasis (TRUE),
Amount (125);

if PositionBasis then
SetStopPosition
else
SetStopShare;
SetStopLoss( Amount ) ;


• Occasionally (but not always) my strategy fill will be late by one tick. For example:
o Strategy calls for: ‘Short from 2091.75’
o Actual fill is: ‘Short from 2091.50’
• I know this because both Strategy-Fill and Actual-Fill are ‘called-out’ on my chart.

PROBLEM:
• My strategy-Stop is apparently tied to my strategy-Entry; as opposed to the actual fill. I say this because:
o When I’m filled per my entry strategy, my stop will exit properly ($125).
o When my actual fill is one- tick past my entry strategy fill (as in example above), my stop also extends by one tick; and my $125 stop becomes a $137.50 stop.

QUESTIONS:

1. How does TradeStation Stop-Loss code (above) interpret my fill position, in order to set the stop?
2. How may I link the Stop-loss to ‘Actual-fill’? Is there a key-word that may be added to the code to specify “actual position’ for stop placement?


Last edited by Vientomarsol; November 4th, 2016 at 11:35 AM. Reason: Clean-up formatting.
Reply With Quote
 
  #2 (permalink)
 Vendor: abctradinggroup.com 
Hamburg Germany
 
Futures Experience: Advanced
Platform: Multicharts, Tradestation, Multicharts.NET, NinjaTrader, MetaTrader
Broker/Data: DTN IQ
Favorite Futures: ES
 
Posts: 1,234 since Apr 2013
Thanks: 199 given, 694 received

Answer
This post has been selected as an answer to the original posters question Answer

Vientomarsol,

the stop price is based on the entry price as shown on the chart - which explains the results you are having.
Take a look at the strategy automation tab under "Strategy Properties for all strategies on this Chart". There is an option to force the Strategy to fill (on the chart) non-historical orders only when the TradeManager reports them as filled.
You can read more about it in the official help.

Regards,

ABCTG

Reply With Quote
 
  #3 (permalink)
Trading Apprentice
Port St. Lucie, FL.
 
Futures Experience: Intermediate
Platform: TradeStation
Favorite Futures: ES
 
Posts: 18 since May 2016
Thanks: 10 given, 6 received

Hats-Off to ABCTG (Again)


ABCTG,

Thanks much for your very prompt response.

Looks like your suggestion will resolve my issue.

Reply With Quote
 
  #4 (permalink)
Trading Apprentice
Port St. Lucie, FL.
 
Futures Experience: Intermediate
Platform: TradeStation
Favorite Futures: ES
 
Posts: 18 since May 2016
Thanks: 10 given, 6 received

Advice Was On-The-Money

ABCTG,

Just wanted to let you know; I just took a trade with your suggested change to the TS Strategy Automation menu.
Based on your response, I selected the second radio-button: "Strategy will fill non-historical orders only when the TradeManager reports them as filled" and the second check-box: "Adopt the real-world position position for the current acount". Results were PERFECT.

Tradesation used my actual fill to calculate my Stop and Target strategy orders, and provided feedback as to filled and pending orders from their server. Best of all, I cleared $50 of profit!

Thanks again for your generous support to us novice ELD coders. I feel like I got something accomplished today. A great way to end the week!

Respectfully,

Vientomarsol

Reply With Quote
The following user says Thank You to Vientomarsol for this post:
 
  #5 (permalink)
 Vendor: abctradinggroup.com 
Hamburg Germany
 
Futures Experience: Advanced
Platform: Multicharts, Tradestation, Multicharts.NET, NinjaTrader, MetaTrader
Broker/Data: DTN IQ
Favorite Futures: ES
 
Posts: 1,234 since Apr 2013
Thanks: 199 given, 694 received

Futures Edge on FIO

Which time slot for our live webinar events works best for you?

 
Vientomarsol,

thank you for the feedback, I am glad to hear that it's working the way you want it.

Have a great weekend.

Regards,

ABCTG

Reply With Quote

Reply



futures io > > > > How does TradeStation Stop-Loss Strategy interpret Entry Position?

Thread Tools Search this Thread
Search this Thread:

Advanced Search



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

NinjaTrader 8: Tips and Tricks (part 2)

Mar 2
 

An Afternoon With FIO member @michaelleemoore

Elite only
 

Jigsaw Trading: Keys to successfully trading the open

Mar 9

Macro view: Trump Market Risk w/Piers Curran @ Amplify Trading

Elite only

Reading the Psychology of the Market w/Brett Steenbarger & Trading Technologies

Elite only

Hybrid Machine Learning (R and TradeStation) w/Murray Ruggiero

Elite only

Spring Grains Outlook w/Sean Lusk @ Walsh Trading

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Strategy help: Trying to have entry, set stop loss, and set target on the next bar turboscottomatic EasyLanguage Programming 2 January 22nd, 2015 07:46 AM
Tradestation Automatic Stop Loss? mursedrew TradeStation 4 June 3rd, 2014 01:02 PM
Stop Loss Buy for Entry tahseen EasyLanguage Programming 2 March 2nd, 2014 03:08 PM
Setting a Stop loss for all Position arjfca Elite EasyLanguage Automated Trading 3 November 28th, 2012 09:16 AM
Rooky questionning, Coding a conditionnal entry + a stop loss if done arjfca EasyLanguage Programming 7 December 13th, 2010 04:10 PM


All times are GMT -4. The time now is 03:09 PM.

no new posts
Page generated 2017-02-26 in 0.11 seconds with 29 queries on phoenix via your IP 54.204.130.94