(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.
Banned: Repeated promotion of vendor site in numerous posts
London
Trading Experience: Intermediate
Platform: Amibroker, Multicharts
Favorite Futures: ES
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?
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.
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
The following 2 users say Thank You to Lampert for this post:
Banned: Repeated promotion of vendor site in numerous posts
London
Trading Experience: Intermediate
Platform: Amibroker, Multicharts
Favorite Futures: ES
Posts: 26 since May 2011
Thanks: 20 given,
8
received
Lampert
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:
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.
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?
if c[0] > h[1] AND c[0] > o[0] then begin
Buy Next Bar at open;
sell Next Bar at close;
end;
Thanks
Buy Next Bar at open;
should be written as
Buy ("B1") Next Bar at market;
The following user says Thank You to Bimi for this 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?
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?
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.
The following user says Thank You to Bimi for this 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
The following user says Thank You to Lampert for this 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.
The following user says Thank You to NW27 for this post: