Automatic Position Sizing - TradeStation | futures io social day trading
futures io futures trading

Automatic Position Sizing
Updated: Views / Replies:626 / 2
Created: by GreenMound Attachments:0

Welcome to futures io.

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

futures io is the largest futures trading community on the planet, with over 100,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors Ė all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you donít need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • 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.

-- Big Mike, Site Administrator

Thread Tools Search this Thread

Automatic Position Sizing

  #1 (permalink)
Trading Apprentice
Santon, Isle of Man
Trading 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.


Reply With Quote
  #2 (permalink)
Trading Apprentice
Denver CO USA
Trading Experience: None
Platform: NT, JForex, Mql4 & 5
Broker/Data: FXCM
Favorite Futures: Forex
Posts: 32 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.


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

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


Reply With Quote


futures io > > > > Automatic Position Sizing

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

Journal Challenge $1600 in Prizes & Free Journalytix for all participants!


Trading Resolutions for 2019 - Avoiding Mistakes w/GFF Brokers

Feb 19

3 Excellent Entries, and How To Automate Them w/Kevin Davey

Feb 21

The Driving Force Behind the Market w/Earn2Trade

Mar 5

TBA w/Stage5 & iSystems

Mar 12

TBA w/John Grady @ No BS Day Trading

Mar 19

Day Trading Oil Futures: Reducing Risk & Increasing Profits w/DTN IQFeed

Mar 26

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

back test, code, easy language, futures, java, jforex, margin, metatrader, mql, position size, position sizing, position_sizing, scripting, strategies, trade station, tradestation

All times are GMT -4. The time now is 09:39 AM. (this page content is cached, log in for real-time version)

Copyright © 2019 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432 WhatsApp Business,
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
Page generated 2019-02-18 in 0.19 seconds with 14 queries on phoenix