NexusFi: Find Your Edge


Home Menu

 





Macros for flatten and reverse


Discussion in TradeStation

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




 
Search this Thread

Macros for flatten and reverse

  #1 (permalink)
 sgjohnson 
Kingsport, Tennessee
 
Experience: None
Posts: 37 since Apr 2020
Thanks Given: 13
Thanks Received: 13

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?

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
ZombieSqueeze
Platforms and Indicators
Better Renko Gaps
The Elite Circle
REcommedations for programming help
Sierra Chart
What broker to use for trading palladium futures
Commodities
How to apply profiles
Traders Hideout
 
  #2 (permalink)
 
vmodus's Avatar
 vmodus 
Somewhere, Delaware, USA
 
Experience: Intermediate
Platform: MultiCharts
Broker: Barchart.com
Trading: Everything, it all tastes like chicken
Posts: 1,271 since Feb 2017
Thanks Given: 2,958
Thanks Received: 2,853

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.

~vmodus

Enjoy everything!
Attached Thumbnails
Click image for larger version

Name:	SNAG-0504.png
Views:	144
Size:	26.1 KB
ID:	305406  
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
Thanked by:




Last Updated on October 1, 2020


© 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