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



How does TradeStation Stop-Loss Strategy interpret Entry Position?


Discussion in TradeStation

Updated
    1. trending_up 1,790 views
    2. thumb_up 3 thanks given
    3. group 3 followers
    1. forum 4 posts
    2. attach_file 0 attachments




Welcome to futures io: the largest futures trading community on the planet, with well over 125,000 members
  • Genuine reviews from real traders, not fake reviews from stealth vendors
  • Quality education from leading professional traders
  • We are a friendly, helpful, and positive community
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts
  • We are here to help, just let us know what you need
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

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

 
Search this Thread
 

How does TradeStation Stop-Loss Strategy interpret Entry Position?

(login for full post details)
  #1 (permalink)
Port St. Lucie, FL.
 
 
Posts: 25 since May 2016
Thanks: 17 given, 8 received

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?

Reply With Quote
The following user says Thank You to Vientomarsol for this post:

Journal Challenge February 2021 results:
Competing for $1500 in prizes from Topstep
looks_oneSBtrader82 's Trading Journalby SBtrader82
(173 thanks from 31 posts)
looks_twoJust BEING a Trader: Letting Go!!by iqgod
(120 thanks from 33 posts)
looks_3Wisdom is Emptinessby Mtype
(68 thanks from 25 posts)
looks_4Deetee’s DAX Trading Journal (time based)by Deetee
(35 thanks from 17 posts)
looks_5Journal for peanuts1956by peanuts1956
(23 thanks from 13 posts)
 
 
(login for full post details)
  #2 (permalink)
 
 
Posts: 2,230 since Apr 2013
Thanks: 409 given, 1,471 received

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

Follow me on Twitter Reply With Quote
The following user says Thank You to ABCTG for this post:
 
(login for full post details)
  #3 (permalink)
Port St. Lucie, FL.
 
 
Posts: 25 since May 2016
Thanks: 17 given, 8 received


ABCTG,

Thanks much for your very prompt response.

Looks like your suggestion will resolve my issue.

Reply With Quote
 
(login for full post details)
  #4 (permalink)
Port St. Lucie, FL.
 
 
Posts: 25 since May 2016
Thanks: 17 given, 8 received

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:
 
(login for full post details)
  #5 (permalink)
 
 
Posts: 2,230 since Apr 2013
Thanks: 409 given, 1,471 received

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

Follow me on Twitter Reply With Quote


futures io Trading Community Platforms and Indicators TradeStation > How does TradeStation Stop-Loss Strategy interpret Entry Position?


Last Updated on November 4, 2016


Upcoming Webinars and Events
 

NinjaTrader Indicator Challenge!

Ongoing
 

Battlestations! Show us your trading desk - $1,500 in prizes!

March
 

Call Option Buying: The New Pain Trade? w/Carley Garner

Elite only
 

Importance of Finding Your Own Way w/Adam Grimes

Elite only
 

New Challenge (TBD)

April
     



Copyright © 2021 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