Multiple limit target orders - EasyLanguage Programming | futures io social day trading
futures io futures trading


Multiple limit target orders
Updated: Views / Replies:985 / 4
Created: by toddma 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 90,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
 

Multiple limit target orders

  #1 (permalink)
Elite Member
vancouver canada
 
Futures Experience: Intermediate
Platform: multicharts, ninjatrader
Favorite Futures: forex
 
toddma's Avatar
 
Posts: 53 since Jul 2012
Thanks: 14 given, 6 received

Multiple limit target orders

Does anyone know why setting up limit order exits based off of the entry price as shown below is not working
(note: I am using two separate entries of 100000 units - so the entry prices should be different...)

LT1 and LT2 are "limit target" variables


if marketposition = 1 and currententries = 2 then begin
LT1 = entryprice*(1+.005);
LT2 = entryprice*(1+.006);
sell ("LT1") currentshares/2 shares next bar at LT1 limit;
sell ("LT2") currentshares/2 shares next bar at LT2 limit;
end;


I have tried incorporating the code right after the buy order like so (see below) and that hasn't worked either:


....
buy ( "1S" )100000 shares next bar at market;
LT1 = entryprice*(1+.005);
sell ("LT1") currentshares/2 shares next bar at LT1 limit;
end;

buy ( "2S" )100000 shares next bar at market;
LT2 = entryprice*(1+.005);
sell ("LT2") currentshares/2 shares next bar at LT2 limit;
end;

Any help would be greatly appreciated. Thanks!

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)
Elite Member
Georgia, US
 
Futures Experience: None
Platform: Various
Favorite Futures: Various
 
josh's Avatar
 
Posts: 4,897 since Jan 2011
Thanks: 5,143 given, 11,242 received


You will probably want to post this in an appropriate forum. What kind of code is it? What trading software? Find the correct subforum and you will get some replies I'm sure.

Reply With Quote
 
  #4 (permalink)
Market Wizard
Hamburg Germany
 
Futures Experience: Advanced
Platform: Multicharts, Tradestation, Multicharts.NET, NinjaTrader, MetaTrader
Broker/Data: DTN IQ
Favorite Futures: ES
 
Posts: 1,533 since Apr 2013
Thanks: 231 given, 855 received
Forum Reputation: Legendary

toddma,

what is the result you are getting, if you say it is not working?
One issue with entryprice can be that it doesn't have the value of the current entry at the time you are using it.
Meaning in your second code part, I am pretty sure that entryprice still contains the entry price for the previous problem.
To better help you I would need to see what it does on the chart for example. As not working can mean a wide range from do nothing to do something, but not what is intended etc. (depending on what the person means with do nothing).

Regards,
ABCTG


toddma View Post
Does anyone know why setting up limit order exits based off of the entry price as shown below is not working
(note: I am using two separate entries of 100000 units - so the entry prices should be different...)

LT1 and LT2 are "limit target" variables


if marketposition = 1 and currententries = 2 then begin
LT1 = entryprice*(1+.005);
LT2 = entryprice*(1+.006);
sell ("LT1") currentshares/2 shares next bar at LT1 limit;
sell ("LT2") currentshares/2 shares next bar at LT2 limit;
end;


I have tried incorporating the code right after the buy order like so (see below) and that hasn't worked either:


....
buy ( "1S" )100000 shares next bar at market;
LT1 = entryprice*(1+.005);
sell ("LT1") currentshares/2 shares next bar at LT1 limit;
end;

buy ( "2S" )100000 shares next bar at market;
LT2 = entryprice*(1+.005);
sell ("LT2") currentshares/2 shares next bar at LT2 limit;
end;

Any help would be greatly appreciated. Thanks!


Reply With Quote
 
  #5 (permalink)
Trading Apprentice
Denver Colorado
 
Futures Experience: Intermediate
Platform: TradeStation
Favorite Futures: Futures
 
Pritch's Avatar
 
Posts: 4 since Aug 2013
Thanks: 1 given, 0 received


toddma View Post
Does anyone know why setting up limit order exits based off of the entry price as shown below is not working
(note: I am using two separate entries of 100000 units - so the entry prices should be different...)

LT1 and LT2 are "limit target" variables


if marketposition = 1 and currententries = 2 then begin
LT1 = entryprice*(1+.005);
LT2 = entryprice*(1+.006);
sell ("LT1") currentshares/2 shares next bar at LT1 limit;
sell ("LT2") currentshares/2 shares next bar at LT2 limit;
end;


I have tried incorporating the code right after the buy order like so (see below) and that hasn't worked either:


....
buy ( "1S" )100000 shares next bar at market;
LT1 = entryprice*(1+.005);
sell ("LT1") currentshares/2 shares next bar at LT1 limit;
end;

buy ( "2S" )100000 shares next bar at market;
LT2 = entryprice*(1+.005);
sell ("LT2") currentshares/2 shares next bar at LT2 limit;
end;

Any help would be greatly appreciated. Thanks!

When using entryprice you want to specify which entry: for instance entryprice(0) = current entry... Or entryprice(1) for 1 entry ago... Hope this helps.

Reply With Quote

Reply



futures io > > > > > Multiple limit target orders

Thread Tools Search this Thread
Search this Thread:

Advanced Search



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

Jigsaw Trading: TBA

Elite only

FuturesTrader71: TBA

Elite only

NinjaTrader: TBA

Jan 18

RandBots: TBA

Jan 23

GFF Brokers & CME Group: Futures & Bitcoin

Elite only

Adam Grimes: TBA

Elite only

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Market orders eaten up by limit orders, how to see? tinus The Elite Circle 8 July 5th, 2013 10:01 AM
Code for Entering Orders with Profit Target and Stop Loss orders aguison NinjaTrader Programming 4 June 24th, 2013 02:52 PM
individual stop and target for multiple trades sunsun EasyLanguage Programming 2 May 7th, 2013 10:12 AM
Converting unfilled limit orders to market orders toddma MultiCharts 1 January 14th, 2013 10:11 PM
CCLFibBands - multiple band and target options cclsys The Elite Circle 18 December 26th, 2009 09:31 PM


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

Copyright © 2017 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
Page generated 2017-12-18 in 0.10 seconds with 27 queries on phoenix via your IP 54.163.209.109