Managing multiple entries - EasyLanguage Programming | futures io social day trading
futures io futures trading


Managing multiple entries
Updated: Views / Replies:3,828 / 2
Created: by arjfca 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 dont 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
 

Managing multiple entries

  #1 (permalink)
Elite Member
Montreal, Canada
 
Futures Experience: Intermediate
Platform: Multicharts
Broker/Data: Interactive Broker
Favorite Futures: Forex
 
Posts: 262 since Sep 2010
Thanks: 436 given, 86 received

Managing multiple entries

Hello to all

I'm new to Multicharts / Easylanguage programation and I'm stuck with a problem

I have developp a strategy that take a position for all valid signal in the same direction. Each entry as its own profit target and stop loss. Since under some conditions, I have to modify stop value, I need a way to reference them because each individualy entry may have a different stops

Now, how do I manage these entrys?
Easylanguage does not permit to attribute a string variable to a Buy or sell position name. Each entry as the same name

Buy "Position_long_1" 100 share at market.

In this exemple, "Position_long_1" as to be predetermine in the script, can't be a variable. My desire is to differentiate them using a counter

Buy "Position_long_1" 10000 share at market.
...
...
Buy "Position_long_2" 100 share at market.

Sell "Position_long_1" 10000 share at market.
...
...
Sell "Position_long_2" 100 share at market.

Hope I'm clear enough

Martin

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)
Site Administrator
Manta, Ecuador
 
Futures Experience: Advanced
Platform: My own custom solution
Favorite Futures: E-mini ES S&P 500
 
Big Mike's Avatar
 
Posts: 46,240 since Jun 2009
Thanks: 29,354 given, 83,235 received


From the MultiCharts help...

 
Code
                            


Buy
Enters a long position 
as specified by the parameters
The entry point is visually indicated on a chart by an Arrow and a TickThe Arrow identifies the time and the Tick identifies the price value of the entry pointLabelsdisplaying the entry name and the number of contracts or shares tradedare displayed below the Buy Arrow

An order is executed at the point specified by the parameters; if the order is not filled within the specified barthe order is cancelled

When a Buy order is filledany open short positions will also be closed
 



Usage
Buy
[("EntryLabel")][TradeSize]EntryType

Parameters inside the square brackets are optional 

Parameters 


EntryLabel 
an optional parameterassigns a name that will be displayed in the name label below the entry, and can be used to identify the particular entry and to tie an exit to it.

An exit can only be tied to an entry within the same signal; for more informationsee Sell

If 
EntryLabel is not specifiedthe name "Buy" will be used for the first entry"Buy#2" for the second entry"Buy#3" for the third entryetc


TradeSize an optional parametera numerical expressionspecifying the number of contracts or shares to buythe expression must be followed by one of the following transposable wordsShareSharesContract or Contracts.

If 
TradeSize value equals 0 or is negativea long position will not be entered but any open short positions will be closed.

If 
TradeSize is not specifiedthe trade size value set by the user in the Properties tab of the Strategy Properties window will be used


EntryType a required parameterspecifies the timing and price of entry

There are four kinds of EntryType

This Bar[On]Close 

Where
: - On  is a skip word and can be omitted

A Buy Arrow will be placed at the current bar
's Close tick. 



Next Bar[At]Open  or  Next Bar[At]Market 

Where: - words "Market" and "Open" are transposable
             - At  is a skip word and can be omitted


A Buy Arrow will be placed at the next bar'
s Open tick

Next Bar[At]Price  Limit 

Where
: - Price  is a numerical expressionspecifying the Limit Price
             
At  is a skip word and can be omitted

A Buy Arrow will be placed on the next bar at the first tick with a price value less than 
or equal to Price ; if there are no such ticks within the next barthe order will be cancelled.

Next Bar[At]Price  Stop 
Where
: - Price  is a numerical expressionspecifying the Stop Price
             
At  is a skip word and can be omitted


A Buy Arrow will be placed on the next bar at the first tick with a price value equal to 
or greater than the Price ; if there are no such ticks within the next barthe order will be cancelled
 



Example
Buy a user
-set number of shares at Market price on close of this bar

Buy This Bar On Close



Buy 1 share at Market price on open of next bar and label the entry "Entry"

Buy("Entry")1 Share Next Bar At Open



Buy 1 contract at Market price on open of next bar and label the entry "Entry"

Buy("Entry")1 Contract Next Bar Market



Buy 2 shares within the next bar on the first tick with a price of 100 or less

Buy 2 Shares Next Bar At 100 Limit



Buy 10 contracts within the next bar on the first tick with a price of 50 or more

Buy 10 Contracts Next Bar 50 Stop
As you can see, you can label each order.

Mike

Due to time constraints, please do not PM me if your question can be resolved or answered on the forum.

Need help?
1) Stop changing things. No new indicators, charts, or methods. Be consistent with what is in front of you first.
2) Start a journal and post to it daily with the trades you made to show your strengths and weaknesses.
3) Set goals for yourself to reach daily. Make them about how you trade, not how much money you make.
4) Accept responsibility for your actions. Stop looking elsewhere to explain away poor performance.
5) Where to start as a trader? Watch this webinar and read this thread for hundreds of questions and answers.
6)
Help using the forum? Watch this video to learn general tips on using the site.

If you want
to support our community, become an Elite Member.

Reply With Quote

Reply



futures io > > > > > Managing multiple entries

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
Managing Multiply Accounts evilmrkipling NinjaTrader 9 July 11th, 2015 10:58 PM
Managing Drawdowns StkLab Psychology and Money Management 3 November 14th, 2014 01:31 AM
How to do Multiple Automated Entries in Ninja? Treggs NinjaTrader 4 January 12th, 2011 08:08 PM
Managing Trade when Calculate on Close = True jthom NinjaTrader Programming 15 March 24th, 2010 05:49 PM
sharky's entries and why sharky Traders Hideout 5 June 18th, 2009 05:31 PM


All times are GMT -4. The time now is 09:14 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-16 in 0.08 seconds with 19 queries on phoenix via your IP 54.83.122.227