Quick question - Daily Open - EasyLanguage Programming | futures io social day trading
futures io futures trading


Quick question - Daily Open
Updated: Views / Replies:1,055 / 4
Created: by damnpenguins 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
 

Quick question - Daily Open

  #1 (permalink)
Elite Member
West Sussex, UK
 
Futures Experience: Intermediate
Platform: MultiCharts
Favorite Futures: NQ & DAX
 
damnpenguins's Avatar
 
Posts: 15 since Nov 2011
Thanks: 36 given, 4 received

Quick question - Daily Open

Hi everyone,

First post so apologies if it is a really simple question.

I've just started programming in MC / Powerlanguage and I am seeing a difference between the daily open as plotted on my hourly chart, and the daily open on a 100 tick chart.

Both are using the OpenD(0) keyword. As an example, On my hourly GBPUSD chart I have todays Open @ LMAX @ 1.67345, but on the 100 tick chart is it @ 1.67283.

I understand that the tick chart has a different opening bar and therefore would display a different value for the daily open, however I am wanting to find out how to ensure I have the daily open from my hourly chart displayed on the tick charts.

Is there a way to ensure I have the same lines across all my charts? Hourly, 100 Tick, 233 Tick etc??

Am I using the openD reserved word incorrectly? Do I need to set the daily open in a global variable etc?

Here is the (simplified) code snippet I am using:
 
Code
If Date <> Date[1]  then
begin
   		{== print out each days' daily open     ==}
     		dailyOpenLevel =tl_new_s(d, time_s, OpenD(0) , d+1, time_s, OpenD(0));
end;
Any assistance would be greatly appreciated


Last edited by damnpenguins; March 3rd, 2014 at 08:55 AM.
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
West Sussex, UK
 
Futures Experience: Intermediate
Platform: MultiCharts
Favorite Futures: NQ & DAX
 
damnpenguins's Avatar
 
Posts: 15 since Nov 2011
Thanks: 36 given, 4 received


Just to pre-empt the RTFM response, I've been looking into this and based on this post (MultiCharts: Trading Software for Automated Trading and Backtesting ? View topic - [FAQ] EasyLanguage / PowerLanguage) on the MC website I've added the daily chart to the tick charts to reference the higher timeframe data.

The only problem is that I am getting yesterdays Open price rather than today's open price. This is probably because the charts are referenced differently in MC, at the closing of the period rather than the start, is that right? So based on that do I have to take the open price from the hourly chart @ the close of the first bar?

Here is the code, I am sure it is wrong, I've chopped and changed it so many times:

 
Code
var: dOpen(0, data2);
dOpen =  OpenD(0) Data2;

print(OpenD(0):0:5, " " , dOpen:0:5);
I'm seriously lost here so would appreciate some help.

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, 854 received
Forum Reputation: Legendary

Hi damnpenguins,

if you have already added the daily chart to your tick chart as data 2, I would suggest simply changing your code so that you use the Open directly:

 
Code
var: dOpen(0, data2);
dOpen =  Open Data2;

print(OpenD(0):0:5, " " , dOpen:0:5);
Regards,
ABCTG

Reply With Quote
The following user says Thank You to ABCTG for this post:
 
  #5 (permalink)
Elite Member
West Sussex, UK
 
Futures Experience: Intermediate
Platform: MultiCharts
Favorite Futures: NQ & DAX
 
damnpenguins's Avatar
 
Posts: 15 since Nov 2011
Thanks: 36 given, 4 received

Cheers!

Reply With Quote

Reply



futures io > > > > > Quick question - Daily Open

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
Quick Question From Non-NinjaTrader User furytrader NinjaTrader 3 October 8th, 2013 02:05 PM
Daily Profit / daily loss question bdd069 Elite EasyLanguage Automated Trading 4 February 16th, 2012 12:36 PM
Quick COBC NinjaTrader Question Fat Tails NinjaTrader Programming 6 December 6th, 2010 01:29 PM
Volitility indicator question - Open - Open / open - close / close to open andresimon NinjaTrader 2 September 27th, 2010 01:33 AM
Quick ADXVMA question... BigDog Traders Hideout 6 December 3rd, 2009 10:07 AM


All times are GMT -4. The time now is 08:36 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-14 in 0.09 seconds with 19 queries on phoenix via your IP 54.221.73.186