Automatic Position Sizing - TradeStation | futures.io
futures io futures trading


Automatic Position Sizing
Started: by GreenMound Views / Replies:181 / 2
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
 

Automatic Position Sizing

  #1 (permalink)
Trading Apprentice
Santon, Isle of Man
 
Futures Experience: Advanced
Platform: TradeStation
Favorite Futures: Emini
 
Posts: 2 since Apr 2016
Thanks: 1 given, 0 received

Automatic Position Sizing

Good morning,

I am looking to automate my position size in TradeStation to maintain a constant X% investment in any given market. Ultimately I will be using this to back test strategies for weighted portfolios, and then active trade.

I found the following as an example:

Equity = Round((Capital + NetProfit + OpenPositionProfit),0);
Num_Cts = Round((PercentAllocationPerTrade * Equity) / {XYZ},0);

where I had intended to use the Initial Margin as XYZ. Is there a way to generically 'call' the initial margin on a futures contract such that the same code can be used on all contracts?

Thank you in advance for any advice you may be able to offer.

GM

Reply With Quote
 
  #2 (permalink)
Trading Apprentice
Denver CO USA
 
Futures Experience: None
Platform: NT, JForex, Mql4 & 5
Broker/Data: FXCM
Favorite Futures: Forex
 
Posts: 31 since Sep 2016
Thanks: 0 given, 13 received

Trade Station uses LUA to program custom features. You would probably need to do it in that language. It is a scripting language, so fairly easy to learn.

I thought about using it for some of my strategies as I like the TS interface better than metatrader, but its not compiled so it won't be as fast as JForex/Java or Mql Metatrader.

Cheers
Mary

Reply With Quote
 
  #3 (permalink)
Trading Apprentice
Denver CO USA
 
Futures Experience: None
Platform: NT, JForex, Mql4 & 5
Broker/Data: FXCM
Favorite Futures: Forex
 
Posts: 31 since Sep 2016
Thanks: 0 given, 13 received


Oh, I forgot that Trade Station also uses Easy Language to program too.

GL
Mary

Reply With Quote

Reply



futures io > > > > Automatic Position Sizing

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
Looking for a Solution to Position Sizing pooh IB Trader Workstation 4 November 3rd, 2014 10:29 AM
Forex Position Sizing traderseeker Psychology and Money Management 10 September 19th, 2014 07:33 PM
Why position sizing matters sdonahue MTPredictor 3 September 19th, 2014 04:54 PM
Sizing of runner position? strikebackfast Psychology and Money Management 10 November 25th, 2013 10:37 PM
Position sizing codes ptcm EasyLanguage Programming 2 January 2nd, 2011 04:24 PM


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

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