Sell Shares from 2 positions - EasyLanguage Programming | futures io social day trading
futures io futures trading


Sell Shares from 2 positions
Updated: Views / Replies:262 / 8
Created: by jessehhhh 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

Reply
 
Thread Tools Search this Thread
 

Sell Shares from 2 positions

  #1 (permalink)
Montclair
 
 
Posts: 11 since Nov 2018
Thanks: 0 given, 0 received

Sell Shares from 2 positions

I am looking to find the easylanguage code that will allow me to sell shares from 2 different entries.

For example:

I have 2 long entries and at a certain point I want to sell half of my entire position ( the combined shares from both strategies). The only way I have found to do this is put in 2 sell orders and effectively sell the position twice and pay double commision

Is there a way around this?

Reply With Quote
 
  #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.

 
  #3 (permalink)
 Vendor: www.abctradinggroup.com 
Hamburg Germany
 
Trading Experience: Advanced
Platform: Multicharts, Tradestation
Broker/Data: DTN IQ
Favorite Futures: ES
 
Posts: 2,099 since Apr 2013
Thanks: 377 given, 1,345 received


jessehhhh,

take a look at the reversed word "total" as this can be used to accomplish what you have in mind.

Additionally the Advanced Example Strategies in the below topic might be helpful for you:
https://community.tradestation.com/Discussions/Topic.aspx?Topic_ID=112094

Regards,

ABCTG

Follow me on Twitter Visit my Facebook Reply With Quote
 
  #4 (permalink)
Montclair
 
 
Posts: 11 since Nov 2018
Thanks: 0 given, 0 received

I tried that and it still didn't work.

The end of my code was "Sell Total Currentshares*.5 next bar at...

It still only sold from one of the positions.

Am I using this word wrong?

Reply With Quote
 
  #5 (permalink)
 Vendor: www.abctradinggroup.com 
Hamburg Germany
 
Trading Experience: Advanced
Platform: Multicharts, Tradestation
Broker/Data: DTN IQ
Favorite Futures: ES
 
Posts: 2,099 since Apr 2013
Thanks: 377 given, 1,345 received

jessehhhh,

can you post code that can be used to reproduce what you are seeing?

Did the exit close out half of your entire position?

Regards,

ABCTG

Follow me on Twitter Visit my Facebook Reply With Quote
 
  #6 (permalink)
Montclair
 
 
Posts: 11 since Nov 2018
Thanks: 0 given, 0 received

I don't have access to it currently but can later.

When i use that exit code it sells half of my first position only. For example if I bought 10 shares in my first entry and 10 in the second, that code sells 5 shares.

If this isn't enough info I will post my code later for help.

Thank You

Reply With Quote
 
  #7 (permalink)
 Vendor: www.abctradinggroup.com 
Hamburg Germany
 
Trading Experience: Advanced
Platform: Multicharts, Tradestation
Broker/Data: DTN IQ
Favorite Futures: ES
 
Posts: 2,099 since Apr 2013
Thanks: 377 given, 1,345 received

jessehhhh,

yes, the code should provide more insights into why this is not working on your end.

Regards,

ABCTG

Follow me on Twitter Visit my Facebook Reply With Quote
 
  #8 (permalink)
Montclair
 
 
Posts: 11 since Nov 2018
Thanks: 0 given, 0 received

After doing some digging on the Forum link you sent me I found out that it is not possible to do in an automated way.

In order for you to have 1 exit instead of to I need to turn on Adopt the real-world position in the Automation tab. However this has to be done after a position is entered and the chart needs to be refreshed which is not viable for my strategy.

Reply With Quote
 
  #9 (permalink)
 Vendor: www.abctradinggroup.com 
Hamburg Germany
 
Trading Experience: Advanced
Platform: Multicharts, Tradestation
Broker/Data: DTN IQ
Favorite Futures: ES
 
Posts: 2,099 since Apr 2013
Thanks: 377 given, 1,345 received

jessehhhh,

it sounds like the entries are on different charts or not by a strategy on one chart (like a manual entry and one strategy exit). In that case it's correct that one strategy would have to be made aware of the entire position first.

One way to approach this might be to combine the two strategies into one and apply it to one chart only.

Regards,

ABCTG

Follow me on Twitter Visit my Facebook Reply With Quote

Reply



futures io > > > > > Sell Shares from 2 positions

Thread Tools Search this Thread
Search this Thread:

Advanced Search



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

futures io is celebrating 10-years w/ over $18,000 in prizes!

Right now
 

$250 Amazon Gift Cards with our "Thanks Contest" challenge!

Right now
 

Webinar: The Seven Most Effective Trading Setups w/Peter Davies @ Jigsaw

Oct 17
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Hedging currency risk in short stock positions (any different from long positions?) ikeaboy Currency Futures 9 May 15th, 2014 04:00 PM
Flatten All Positions togier NinjaTrader Programming 11 October 13th, 2012 01:55 AM
BofA may sell shares to staff, with eye on capital kbit News and Current Events 0 January 19th, 2012 05:34 PM
Half Of The Major Financial Regulatory Positions not filled kbit News and Current Events 0 May 19th, 2011 07:50 PM
Account position: How to differentiate positions arjfca The Elite Circle 5 February 5th, 2011 02:27 PM


All times are GMT -4. The time now is 10:19 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, info@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