Learning EL. Question - EasyLanguage Programming | futures io social day trading
futures io futures trading


Learning EL. Question
Updated: Views / Replies:2,134 / 13
Created: by Timot Attachments:1

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
 1  
 
Thread Tools Search this Thread
 

Learning EL. Question

  #1 (permalink)
Banned: Repeated promotion of vendor site in numerous posts
London
 
Futures Experience: Intermediate
Platform: Amibroker, Multicharts
Favorite Futures: ES
 
Timot's Avatar
 
Posts: 26 since May 2011
Thanks: 20 given, 8 received

Learning EL. Question

Hello-

I'm learning EL currently before I get TS. Does anyone know of some java EL compiler that I can use to check the code I write for my examples?

Another question:

I want to go long at the open of tomorrow is the close of today is higher than the open of today and also higher than the high of yesterday but I want to exit the position at the close. Will this work?

 
Code
if c[0] > h[1]  AND c[0] > o[0]  then begin
Buy Next Bar at open;
sell Next Bar at close;
end;
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)
Man wearing a tuque
Calgary, Canada
 
Futures Experience: Intermediate
Platform: Multicharts
Broker/Data: IB, IQFeed
Favorite Futures: GC
 
Lampert's Avatar
 
Posts: 76 since Nov 2011
Thanks: 73 given, 131 received



Timot View Post
Hello-

I'm learning EL currently before I get TS. Does anyone know of some java EL compiler that I can use to check the code I write for my examples?

Another question:

I want to go long at the open of tomorrow is the close of today is higher than the open of today and also higher than the high of yesterday but I want to exit the position at the close. Will this work?

 
Code
if c[0] > h[1]  AND c[0] > o[0]  then begin
Buy Next Bar at open;
sell Next Bar at close;
end;
Thanks

Timot - I do not think there is a standalone compiler to check EL code. I am not sure that it would be very helpful because the compile errors are usually easy to solve but the logic errors can be much more time consuming.

I checked your code and it does not compile because order execution at the close is restricted to "this bar" only. From your code, I assume that you want to use daily bars. Selling on the close of a daily bar will probably work for backtesting. But I do not code this way because I think that it will not work in real time as the market could be closed. I suggest using bars with a smaller time period and specifying a sell time before the market closes.

Len

Reply With Quote
The following 2 users say Thank You to Lampert for this post:
 
  #4 (permalink)
Banned: Repeated promotion of vendor site in numerous posts
London
 
Futures Experience: Intermediate
Platform: Amibroker, Multicharts
Favorite Futures: ES
 
Timot's Avatar
 
Posts: 26 since May 2011
Thanks: 20 given, 8 received


Lampert View Post
I checked your code and it does not compile because order execution at the close is restricted to "this bar" only. From your code, I assume that you want to use daily bars. Selling on the close of a daily bar will probably work for backtesting. But I do not code this way because I think that it will not work in real time as the market could be closed. I suggest using bars with a smaller time period and specifying a sell time before the market closes.

Len

Thanks Len. So if I understand what you say I better use something like this:

 
Code
if c[0] > h[1]  AND c[0] > o[0]  then 
Buy Next Bar at open;
If marketposition = 1 then
sell this Bar on close;
end;
Will this close the position on the same bar it was opened?

This is only for daily bar back-testing to start with. I'm to much of an amateur to go real-time intraday any time soon.

Reply With Quote
 
  #5 (permalink)
Man wearing a tuque
Calgary, Canada
 
Futures Experience: Intermediate
Platform: Multicharts
Broker/Data: IB, IQFeed
Favorite Futures: GC
 
Lampert's Avatar
 
Posts: 76 since Nov 2011
Thanks: 73 given, 131 received


Timot View Post
Thanks Len. So if I understand what you say I better use something like this:

 
Code
if c[0] > h[1]  AND c[0] > o[0]  then 
Buy Next Bar at open;
If marketposition = 1 then
sell this Bar on close;
//  end;
Will this close the position on the same bar it was opened?

This is only for daily bar back-testing to start with. I'm to much of an amateur to go real-time intraday any time soon.

Timot - Very nice. Just remove the end because there is no begin. See chart below.

Personally, I avoid the use of marketposition because I have had real-time problems (I don't know why). But if I recall, it works fine in backtesting.

Len

PS - If this is helpful, please click on the Thanks button.

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

Reply With Quote
The following user says Thank You to Lampert for this post:
 
  #6 (permalink)
Trading for Fun
London
 
Futures Experience: None
Platform: mc, TS, ninja
Favorite Futures: es
 
Bimi's Avatar
 
Posts: 118 since Mar 2010
Thanks: 42 given, 58 received


Timot View Post
Hello-

I'm learning EL currently before I get TS. Does anyone know of some java EL compiler that I can use to check the code I write for my examples?

Another question:

I want to go long at the open of tomorrow is the close of today is higher than the open of today and also higher than the high of yesterday but I want to exit the position at the close. Will this work?

 
Code
if c[0] > h[1]  AND c[0] > o[0]  then begin
Buy Next Bar at open;
sell Next Bar at close;
end;
Thanks

 
Code
Buy Next Bar at open;
should be written as

 
Code
Buy ("B1") Next Bar at market;

Reply With Quote
The following user says Thank You to Bimi for this post:
 
  #7 (permalink)
Trading for Fun
London
 
Futures Experience: None
Platform: mc, TS, ninja
Favorite Futures: es
 
Bimi's Avatar
 
Posts: 118 since Mar 2010
Thanks: 42 given, 58 received


Timot View Post
Hello-

I'm learning EL currently before I get TS. Does anyone know of some java EL compiler that I can use to check the code I write for my examples?

Another question:

I want to go long at the open of tomorrow is the close of today is higher than the open of today and also higher than the high of yesterday but I want to exit the position at the close. Will this work?

 
Code
if c[0] > h[1]  AND c[0] > o[0]  then begin
Buy Next Bar at open;
sell Next Bar at close;
end;
Thanks

you cannot sell Next Bar at close

because in real time, you could not know that specific tick is the close until the close has happened.

ie. the best you can do is the sell at the tick AFTER the close, and that would be the open of the following bar.

Reply With Quote
The following user says Thank You to Bimi for this post:
 
  #8 (permalink)
Man wearing a tuque
Calgary, Canada
 
Futures Experience: Intermediate
Platform: Multicharts
Broker/Data: IB, IQFeed
Favorite Futures: GC
 
Lampert's Avatar
 
Posts: 76 since Nov 2011
Thanks: 73 given, 131 received

@Bimi - This is just weird. Both of your comments are incorrect and you should consider deleting them. The chart that I posted demonstrates that Timot's code does what he wants to do with backtesting.


Len

Reply With Quote
The following user says Thank You to Lampert for this post:
 
  #9 (permalink)
Elite Member
near Paris, France
 
Futures Experience: Beginner
Platform: -
Favorite Futures: -
 
Nicolas11's Avatar
 
Posts: 1,070 since Aug 2011
Thanks: 2,232 given, 1,729 received

Hi @Timot,


Timot View Post
I'm learning EL currently before I get TS. Does anyone know of some java EL compiler that I can use to check the code I write for my examples?

MultiCharts also uses Easy Language (it is named Power Language but it is basically the same).

You can download and use MultiCharts free version to test whatever EL code you wish.

Nicolas

Envoyé depuis mon GT-I9100 avec Tapatalk

Reply With Quote
The following user says Thank You to Nicolas11 for this post:
 
  #10 (permalink)
Elite Member
Newcastle, Australia
 
Futures Experience: Intermediate
Platform: Multicharts 8 - Full Version
Broker/Data: IB
Favorite Futures: SPI,FTSE100, 6E, 6A
 
Posts: 285 since Oct 2010
Thanks: 108 given, 177 received



Lampert View Post
@Bimi - This is just weird. Both of your comments are incorrect and you should consider deleting them. The chart that I posted demonstrates that Timot's code does what he wants to do with backtesting.


Len

In his defense it is sort of correct.
It all depends on how the op wants to trade?
Trying to get the very last tick price of the day would be near to impossible but if you are looking to see if your in the ball park with your system, then the market on close is close enough .
Who knows, maybe the user will sit at his pc and hit the close trade button with seconds to go before the close of the day.
Neil.

Reply With Quote
The following user says Thank You to NW27 for this post:

Reply



futures io > > > > > Learning EL. Question

Thread Tools Search this Thread
Search this Thread:

Advanced Search



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

Linda Bradford Raschke: Reading The Tape

Elite only

Adam Grimes: TBA

Elite only

NinjaTrader: TBA

January

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Learning how to play guitar...reminds me of learning how to trade shodson Beginners and Introductions 10 September 16th, 2013 06:22 PM
Classical Momentum indicator variation - EL study question Laurus12 EasyLanguage Programming 3 April 10th, 2011 02:30 PM
Help with learning curve. lipton80205 The Elite Circle 8 November 22nd, 2009 10:26 AM


All times are GMT -4. The time now is 11:28 PM.

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-12 in 0.14 seconds with 20 queries on phoenix via your IP 54.234.255.29