Macros for flatten and reverse - futures io
futures io futures trading

Macros for flatten and reverse

Discussion in TradeStation

Updated by vmodus
    1. trending_up 590 views
    2. thumb_up 1 thanks given
    3. group 2 followers
    1. forum 1 replies
    2. attach_file 3 attachments

Welcome to futures io: the largest futures trading community on the planet, with well over 100,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

Macros for flatten and reverse

(login for full post details)
  #1 (permalink)
Kingsport, Tennessee
Posts: 18 since Apr 2020
Thanks: 9 given, 7 received

So in TradeStation (10 or 9.5) does one have to write their own macros to implement a hotkey solution for reversing or flattening a position? If so, anybody have any they can share?

Reply With Quote

Can you help answer these questions
from other members on futures io?
Can anyone help convert this pine script to c# or vb?
How to use smart dom
Platforms and Indicators
Time Specific Volume Bars for Market Hours? Thinkorswim
Grains "Converting" correctly ?
NinjaTrader - ( SuperDOM & ChartTrader )
(login for full post details)
  #2 (permalink)
Legendary Market Hack
Somewhere, Delawhere, USA
Experience: Intermediate
Platform: TS, SC, MC
Broker: Tradestation Securities, OANDA
Trading: Turnips
vmodus's Avatar
Posts: 826 since Feb 2017
Thanks: 1,519 given, 1,516 received

In TS, from the toolbar, go to View > Shortcuts > Macros...

Click the Create button to create a new macro. You should check the reference guide for the macro syntax, as these are considered 'command line' commands. Once you create the macro, you can assign a hot key.

In the online help, look for:
  • Order Execution Commands
  • .ReversePosition
  • .CloseAllPositions

I don't generally use macros, I just know how to create them and assign hot keys. You should play around with these in your SIM account to make sure the commands you are sending are doing what you want.

I hope this helps.


Enjoy everything!
Attached Thumbnails
Click image for larger version

Name:	SNAG-0504.png
Views:	7
Size:	26.1 KB
ID:	305406  
Visit my futures io Trade Journal Reply With Quote
The following user says Thank You to vmodus for this post:

futures io Trading Community Platforms and Indicators TradeStation > Macros for flatten and reverse

October 1, 2020

Upcoming Webinars and Events

Create an automated bot in 15 minutes w/SharkIndicators

Oct 29



Carley Garner




Copyright © 2020 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432,
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