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


Automatic Position Sizing
Created: by GreenMound Views / Replies:223 / 2
Updated: 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: 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.

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: 32 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)
 

Market Analysis w/Dave Forss @ IQFeed

Apr 25
 

Introducing iSystems with Stage 5 Trading

Apr 27

*NEW* FIO Journal Challenge featuring NinjaTrader ($2,000+ of prizes)

May

Prototyping Python Strategies (part 2) w/Ran Aroussi

Elite only

Ask Me Anything w/Raymond Deux @ NinjaTrader

May 3

An Afternoon with FIO member Softsoap

Elite only
 

Machine Learning & Data Mining Bias w/Kris Longmore @ Robot Wealth

Elite only

Brannigan Barrett (TBA)

Elite only

FIO member Gomi (TBA)

Elite only

FuturesTrader71 (TBA)

Elite only

EasyLanguage Programming w/Chris @ ABC Trading Group

Elite only

Portfolio Diversification w/Brendon Delate

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 09:29 AM
Forex Position Sizing traderseeker Psychology and Money Management 10 September 19th, 2014 06:33 PM
Why position sizing matters sdonahue MTPredictor 3 September 19th, 2014 03:54 PM
Sizing of runner position? strikebackfast Psychology and Money Management 10 November 25th, 2013 09:37 PM
Position sizing codes ptcm EasyLanguage Programming 2 January 2nd, 2011 03:24 PM


All times are GMT -4. The time now is 07:49 AM.

no new posts
Page generated 2017-04-26 in 0.07 seconds with 19 queries on phoenix via your IP 54.198.73.111