Need EasyLanguage help with HighD(1) - TradeStation | futures io social day trading
futures io futures trading


Need EasyLanguage help with HighD(1)
Updated: Views / Replies:710 / 8
Created: by 10handles 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
 
Thread Tools Search this Thread
 

Need EasyLanguage help with HighD(1)

  #1 (permalink)
Elite Member
San Francisco CA
 
Futures Experience: Beginner
Platform: TradeStation
Favorite Futures: Options
 
Posts: 10 since Apr 2014
Thanks: 4 given, 2 received

Need EasyLanguage help with HighD(1)

I'm trying to create a simple strategy to enter long on an intraday close over yesterday's high. This code is returning long entries below the prior day's high. Any ideas why?

If close > HighD(1) then buy next bar at market;

Thank you.

Reply With Quote
 
  #2 (permalink)
Market Wizard
Cleveland Ohio/United States
 
Futures Experience: Advanced
Platform: Tradestation
Broker/Data: various
Favorite Futures: futures
 
Posts: 2,388 since Jul 2012
Thanks: 1,139 given, 4,387 received
Forum Reputation: Legendary


10handles View Post
I'm trying to create a simple strategy to enter long on an intraday close over yesterday's high. This code is returning long entries below the prior day's high. Any ideas why?

If close > HighD(1) then buy next bar at market;

Thank you.

Can you show an example where this is not working as you expect?

Maybe you want this: If close > HighD(1) then buy next bar at HighD(1) limit;

If you have any questions please send me a Private Message or use the futures.io "Ask Me Anything" thread
Reply With Quote
 
  #3 (permalink)
Elite Member
San Francisco CA
 
Futures Experience: Beginner
Platform: TradeStation
Favorite Futures: Options
 
Posts: 10 since Apr 2014
Thanks: 4 given, 2 received



kevinkdog View Post
Can you show an example where this is not working as you expect?

Maybe you want this: If close > HighD(1) then buy next bar at HighD(1) limit;

Thanks Kevin. That didn't solve the problem. Here's a screenshot. Yellow lines are prior session high.

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

Reply With Quote
 
  #4 (permalink)
Market Wizard
Cleveland Ohio/United States
 
Futures Experience: Advanced
Platform: Tradestation
Broker/Data: various
Favorite Futures: futures
 
Posts: 2,388 since Jul 2012
Thanks: 1,139 given, 4,387 received
Forum Reputation: Legendary


10handles View Post
Thanks Kevin. That didn't solve the problem. Here's a screenshot. Yellow lines are prior session high.

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


Trade 2 is doing exactly what it is supposed to: If the close at end of day is greater than the previous high, then buy at the open of the next bar. The decision to buy is made at the close of the day, regardless of a gap down at the start of the next day.

What about "if open next bar > highd(1) then buy this bar at market" or "if open next bar > highd(1) then buy this bar at close" (I did not test, you'll have to check this)

If you have any questions please send me a Private Message or use the futures.io "Ask Me Anything" thread
Reply With Quote
 
  #5 (permalink)
Elite Member
St Louis MO
 
Futures Experience: Intermediate
Platform: tradestation
Favorite Futures: stocks
 
Posts: 3 since May 2011
Thanks: 0 given, 1 received

Answer
This post has been selected as an answer to the original posters question Answer

I think all 3 trades are doing what they are supposed to do. Your statement close>HighD(1) says at the close of any bar, whether it is at the end of the day or in the middle of the day, if the close of that bar is higher than yesterday's High it is supposed to buy on the next bar. Doesn't matter if the next bar is the middle of the day or it is the first bar on the next day.

Reply With Quote
The following user says Thank You to DeanJ for this post:
 
  #6 (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

Answer
This post has been selected as an answer to the original posters question Answer

10handles,

you might want to exclude the last bar of each session from triggering trades, as the fill will occur on the next session. You can either use an input or a fixed time like "if Time < 1600" or use the SessionEndTime reserved word to get the end time for the particular session.

Regards,
ABCTG


10handles View Post
Thanks Kevin. That didn't solve the problem. Here's a screenshot. Yellow lines are prior session high.

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 ABCTG for this post:
 
  #7 (permalink)
Elite Member
San Francisco CA
 
Futures Experience: Beginner
Platform: TradeStation
Favorite Futures: Options
 
Posts: 10 since Apr 2014
Thanks: 4 given, 2 received

Thank you Kevin, ABCTG and Dean.

Yes the last bar was causing the problem. The workaround I used for now is to add "If marketposition = 0" as a condition since I have it send to exit at the end of the session.

I know very little about EL/coding so it will take me some time to figure out how to exclude the last bar of each session but that is probably the better solution since I may want to explore a different exit strategy then session end.

Best regards.

Reply With Quote
 
  #8 (permalink)
Market Wizard
Cleveland Ohio/United States
 
Futures Experience: Advanced
Platform: Tradestation
Broker/Data: various
Favorite Futures: futures
 
Posts: 2,388 since Jul 2012
Thanks: 1,139 given, 4,387 received
Forum Reputation: Legendary

Answer
This post has been selected as an answer to the original posters question Answer


10handles View Post
Thank you Kevin, ABCTG and Dean.

Yes the last bar was causing the problem. The workaround I used for now is to add "If marketposition = 0" as a condition since I have it send to exit at the end of the session.

I know very little about EL/coding so it will take me some time to figure out how to exclude the last bar of each session but that is probably the better solution since I may want to explore a different exit strategy then session end.

Best regards.


Simple. Say the time of the last bar of the day is 1600.. then do this:

If time<1600 then begin

' your entry code

end;

That will prevent an entry based on that last bar

If you have any questions please send me a Private Message or use the futures.io "Ask Me Anything" thread
Reply With Quote
The following user says Thank You to kevinkdog for this post:
 
  #9 (permalink)
Elite Member
San Francisco CA
 
Futures Experience: Beginner
Platform: TradeStation
Favorite Futures: Options
 
Posts: 10 since Apr 2014
Thanks: 4 given, 2 received


kevinkdog View Post
Simple. Say the time of the last bar of the day is 1600.. then do this:

If time<1600 then begin

' your entry code

end;

That will prevent an entry based on that last bar

Super, thanks Kevin!

Reply With Quote

Reply



futures io > > > > Need EasyLanguage help with HighD(1)

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
EasyLanguage HELP!! (please) :) andrewfx EasyLanguage Programming 3 July 15th, 2014 04:37 AM
Need Help EasyLanguage Coding kinkeadfx EasyLanguage Programming 5 July 6th, 2014 04:51 PM
Converting EasyLanguage to C# christof21 Platforms and Indicators 5 December 9th, 2013 08:31 PM
Easylanguage vs. C++ Cogito ergo sum EasyLanguage Programming 10 August 2nd, 2010 03:12 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.15 seconds with 38 queries on phoenix via your IP 54.163.209.109