Position sizing codes - EasyLanguage Programming | futures.io
futures.io futures trading

Go Back   futures.io

> Futures Trading, News, Charts and Platforms > Platforms and Indicators > TradeStation > EasyLanguage Programming

Position sizing codes
Started:January 1st, 2011 (10:28 AM) by ptcm Views / Replies:3,792 / 2
Last Reply:January 2nd, 2011 (03:24 PM) 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

Thread Tools Search this Thread

Position sizing codes

Old January 1st, 2011, 10:28 AM   #1 (permalink)
Elite Member
Futures Experience: Intermediate
Platform: TradeStation
Posts: 38 since Jun 2010
Thanks: 6 given, 9 received

Position sizing codes

running on a 1 min chart, I am trying to achieve 3 things

1) position gets stop out at the entry point

2) 6 minute after the initial entry is taken, if the position profit > $100, buy 2 additional contract at the close,

3) mkt close at 1615, all positions are closed at 1613 (exitlong doesn't work anymore) what is the new reserved word for exitlong or close out whatever position left because sometimes the no. of contract is an unknown number?

For some reason, 2) is not working.

Please help.

if barssinceentry > 1 and positionprofit <= 0 then sell ("Stop") this bar at close;

if barssinceentry =6 and positionprofit >100 then buy ("add 2") 2 contract this bar at close;

if time > 1613 and marketposition = 1 then sell ("Mkt Closed") this bar at close;

Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).

Reply With Quote

Old January 1st, 2011, 10:28 AM   #2 (permalink)
Quick Summary
Quick Summary Post

Quick Summary is created and edited by users like you... Add FAQ's, Links and other Relevant Information by clicking the edit button in the lower right hand corner of this message.


Old January 2nd, 2011, 03:24 PM   #3 (permalink)
Elite Member
North Bend, WA
Futures Experience: Beginner
Platform: Tradestation, C#
Broker/Data: Tradestation
Favorite Futures: None yet
BDawg's Avatar
Posts: 15 since Oct 2010
Thanks: 63 given, 11 received

(TradeStation? Not sure about MC???)

Did you enable the checkbox (and max entries field) that allows for multiple entries in the same direction?
This is found under Format/Strategies/Properties for all


Reply With Quote


futures.io > Futures Trading, News, Charts and Platforms > Platforms and Indicators > TradeStation > EasyLanguage Programming > Position sizing codes

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

NinjaTrader 8: Programming Profitable Trading Edges w/Scott Hodson

Elite only

Anthony Drager: Executing on Intermarket Correlations & Order Flow, Part 2

Elite only

Adam Grimes: Five critically important keys to professional trading

Elite only

Machine Learning Concepts w/FIO member NJAMC

Elite only

MarketDelta Cloud Platform: Announcing new mobile features

Dec 1

NinjaTrader 8: Features and Enhancements

Dec 6

Similar Threads
Thread Thread Starter Forum Replies Last Post
I would like a Fixed Ratio position sizing spreadsheet PandaWarrior Psychology and Money Management 7 December 25th, 2014 12:25 PM
Contract Rollover: Adopt Real World Position and manage per previous position entry RM99 EasyLanguage Programming 3 May 30th, 2012 06:55 AM
Position Sizing by Van Tharp Laserdan Psychology and Money Management 21 July 8th, 2011 10:37 AM
Different results for the same codes running in ts and mc? yoyo2000 NinjaTrader 3 July 16th, 2010 04:14 AM

All times are GMT -4. The time now is 04:41 PM.

Copyright © 2016 by futures.io. 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 2016-10-27 in 0.06 seconds with 19 queries on phoenix via your IP