EasyLanguage Chart Markup Indicator - EasyLanguage Programming | futures io social day trading
futures io futures trading


EasyLanguage Chart Markup Indicator
Updated: Views / Replies:3,098 / 8
Created: by Big Mike Attachments:3

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
 

EasyLanguage Chart Markup Indicator

  #1 (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,355 given, 83,237 received

EasyLanguage Chart Markup Indicator

Hey guys, I felt like there may be a need for a chart markup indicator for EasyLanguage.

So, here is what I came up with so far tonight. It will mark the Open, High, Low, Close, and the gap. It works best on a RTH chart (vs a Globex chart).

Each trendline color is configurable.

Let me know what you think, and feel free to make enhancements and share them back

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


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


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


One known problem is the lines/text are drawn per the GetAppInfo(aiLowestDispValue) meaning they will align themselves to the bottom of your chart just above the time axis. This works great in "real-time" if you load the indicator or reload it, but as you scroll back or forward, these past plots do not re-calculate or re-align themselves. I am not sure how to fix this, I am open to suggestions! It means that you may need to reload the indicator/refresh it to see the plots on historical data.

Another known limitation is it works only on 1 minute or 5 minute charts (well, I guess 30 minute could work too actually). This is due to the time recognition I coded for the open/close times. There has got to be a better way to do this, let me know!

Here is the EasyLanguage code:

 
Code
                            
// Big Mike Trading https://futures.io

// 20 April 2010
// Indicator

// Specify open and close time in exact format per example, works only on 1 minute or 5 minute charts

input:
    
open_time ("8:30:00 AM"),
    
close_time ("1:30:00 PM"),
    
lineoffset 0.50 ),
    
textoffset 0.10 );

vars:
    
tlid_gap (0),
    
tlid2_gap (0),
    
txid_gap (0),
    
tlid_open (0),
    
txid_open (0),
    
tlid_close (0),
    
txid_close (0),
    
lastclose (0),
    
lastcloset (0),
    
lastclosed (0),
    
dhigh (0),
    
dlow (0),
    
tlid_high (0),
    
tlid_low (0),
    
tlid_high_d (0),
    
tlid_high_t (0),
    
tlid_low_d (0),
    
tlid_low_t (0),
    
txid_high (0),
    
txid_low (0);

once Plot1(0"Open");
once Plot2(0"Close");
once Plot3(0"Gap Up");
once Plot4(0"Gap Down");
once Plot5(0"High");
once Plot6(0"Low");

if 
date <> date[1then begin

    dhigh 
H;
    
dlow L;
    
tlid_high_d D;
    
tlid_high_t T;
    
tlid_low_d D;
    
tlid_low_t T;
    
    
tlid_high TL_New(datetimeHdatetimeH);
    
tlid_low TL_New(datetimeLdatetimeL);
    
    
txid_high Text_New(datetimedhightext("H: "dhigh));
    
txid_low Text_New(datetimedlowtext("L: "dlow));

end;

if 
dhigh then begin dhigh Htlid_high_d Dtlid_high_t Tend;

if 
dhigh then begin

    TL_SetBegin
(tlid_hightlid_high_dtlid_high_tdhigh);
    
TL_SetEnd(tlid_highdatetimedhigh);
    
TL_SetColor(tlid_highGetPlotColor(5));

    
Text_SetLocation(txid_highdatetimedhigh);
    
Text_SetStyle(txid_high11);
    
Text_SetString(txid_hightext("H: "dhigh" "));
    
Text_SetColor(txid_highGetPlotColor(5));
    
    
end;

if 
dlow then begin dlow Ltlid_low_d Dtlid_low_t Tend;

if 
dlow then begin

    TL_SetBegin
(tlid_lowtlid_low_dtlid_low_tdlow);
    
TL_SetEnd(tlid_lowdatetimedlow);
    
TL_SetColor(tlid_lowGetPlotColor(6));
    
    
    
Text_SetLocation(txid_lowdatetimedlow);
    
Text_SetStyle(txid_low10);
    
Text_SetString(txid_lowtext("L: "dlow" "));
    
Text_SetColor(txid_lowGetPlotColor(6));

end;


if 
TimeToString(ELTimeToDateTime(time)) = open_time then begin

    tlid_gap 
TL_New(datetimelastclosedatetimeiff(lastcloselineoffsetlineoffset));
    
tlid2_gap TL_New(lastclosedlastclosetlastclosedatetimelastclose);

    if 
lastclose then txid_gap Text_New(datetimelastclose textoffsettext("Gap +", ((O-lastclose) / MinMove*PriceScale):0:0));
    if 
lastclose then txid_gap Text_New(datetimelastclose textoffsettext("Gap -", ((lastclose-O) / MinMove*PriceScale):0:0));
    
    
Text_SetStyle(txid_gap12);
    
    
TL_SetColor(tlid_gapiff(lastcloseGetPlotColor(3), GetPlotColor(4)));
    
TL_SetColor(tlid2_gapiff(lastcloseGetPlotColor(3), GetPlotColor(4)));
    
Text_SetColor(txid_gapiff(lastcloseGetPlotColor(3), GetPlotColor(4)));

    
tlid_open TL_New(datetimeGetAppInfo(aiLowestDispValue) + (textoffset*2), datetimeMinList(lastclose-lineoffsetO-lineoffset));
    
txid_open Text_New(datetimeGetAppInfo(aiLowestDispValue) + textoffsettext("O: "O));
    
    
TL_SetColor(tlid_openGetPlotColor(1));
    
Text_SetColor(txid_openGetPlotColor(1));
    
Text_SetStyle(txid_open02);
    
end;

if 
TimeToString(ELTimeToDateTime(time)) = close_time then begin

    tlid_close 
TL_New(datetimeGetAppInfo(aiLowestDispValue) + (textoffset*2), datetimeC-lineoffset);
    
txid_close Text_New(datetimeGetAppInfo(aiLowestDispValue) + textoffsettext("C: "C" "));

    
TL_SetColor(tlid_closeGetPlotColor(2));
    
Text_SetColor(txid_closeGetPlotColor(2));
    
Text_SetStyle(txid_close12);
    
    
lastclose C;
    
lastclosed D;
    
lastcloset T;
end
I've also attached the MultiCharts .pla.

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.

Attached Files
Register to download File Type: pla BMT-Chart Markup.pla (11.9 KB, 35 views)
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
Canada
 
Futures Experience: Advanced
Platform: NT, TS
Broker/Data: Amp
Favorite Futures: ES
 
sharp2be's Avatar
 
Posts: 57 since Sep 2009
Thanks: 1 given, 69 received


Mike - thank you so much for putting this indicator together, I'm having a problem with the Gap when using on the ES .... it doesn't show the correct number and I'm not familiar with your contruction:

if O > lastclose then txid_gap = Text_New(date, time, lastclose - textoffset, text("Gap +", ((O-lastclose) / MinMove*PriceScale):0:0));
if O < lastclose then txid_gap = Text_New(date, time, lastclose + textoffset, text("Gap -", ((lastclose-O) / MinMove*PriceScale):0:0));

Can you please point me in the right direction? Thanks in advance.

Reply With Quote
 
  #4 (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,355 given, 83,237 received


sharp2be View Post
Mike - thank you so much for putting this indicator together, I'm having a problem with the Gap when using on the ES .... it doesn't show the correct number and I'm not familiar with your contruction:

if O > lastclose then txid_gap = Text_New(date, time, lastclose - textoffset, text("Gap +", ((O-lastclose) / MinMove*PriceScale):0:0));
if O < lastclose then txid_gap = Text_New(date, time, lastclose + textoffset, text("Gap -", ((lastclose-O) / MinMove*PriceScale):0:0));

Can you please point me in the right direction? Thanks in advance.

Are you using a RTH chart or a 24h chart? I think the error might be in the Open price, which is used for the gap.

On the menu, did you enter the open and close time precisely in the format of "H:MM:SS AM" ? So for 9:30am on ES you need 9:30:00 AM. You might try changing it to 9:35:00 AM and see if that does it, since your first candle might be the Open candle, otherwise it would need code changes.

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
 
  #5 (permalink)
Elite Member
Canada
 
Futures Experience: Advanced
Platform: NT, TS
Broker/Data: Amp
Favorite Futures: ES
 
sharp2be's Avatar
 
Posts: 57 since Sep 2009
Thanks: 1 given, 69 received

Mike - please see attached ... it shows the Close, Open and also the Gap but the gap amount is incorrect (should not be 24).. looking at the code it seems the calculation is correct, just the display is incorrect..

Attached Thumbnails
EasyLanguage Chart Markup Indicator-bmt-ohlc.png  
Reply With Quote
 
  #6 (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,355 given, 83,237 received


sharp2be View Post
Mike - please see attached ... it shows the Close, Open and also the Gap but the gap amount is incorrect (should not be 24).. looking at the code it seems the calculation is correct, just the display is incorrect..

Gotcha, I see. It has to do with the Tick Size (MinMove/PriceScale) most likely. I only tested it on CL, and ES is different.

I'll take a look at it as soon as I can.

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
 
  #7 (permalink)
Elite Member
Canada
 
Futures Experience: Advanced
Platform: NT, TS
Broker/Data: Amp
Favorite Futures: ES
 
sharp2be's Avatar
 
Posts: 57 since Sep 2009
Thanks: 1 given, 69 received

Thanks Mike

Reply With Quote
 
  #8 (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,355 given, 83,237 received

I tested this on my side today for the ES, it seemed to work fine (no code changes).

I am central time.

I set the "open" to "8:35:00 AM", because the time stamp of the bar is the closing time of the bar in MultiCharts. I set the "close" to "1:30:00 PM".

I believe it worked correctly. The gap is listed as +3, as in 3 ticks. The open is @ 1213.50 and the close 1207.50. The high is 1216.50 and low 1207.50. The close-to-close was -21 ticks from yesterday.

Shown here:

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


I had incorrectly been using 8:30:00 AM it should be 8:35:00 AM, please take note (For ES, central time). For CL it would be 8:05:00 AM (central time).

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
 
  #9 (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,355 given, 83,237 received

Hi guys,

A new version is here, this should now work on any chart (not just 1 or 5 minute), and it also fixes a couple small problems.

 
Code
                            
// Big Mike Trading https://futures.io
// 20 April 2010
// Indicator

// Specify open and close time in exact format per example H:MM:SS AM/PM

input:
    
open_time ("8:05:00 AM"),
    
close_time ("1:30:00 PM"),
    
lineoffset 0.50 ),
    
textoffset 0.10 );

vars:
    
tlid_gap (0),
    
tlid2_gap (0),
    
txid_gap (0),
    
tlid_open (0),
    
txid_open (0),
    
tlid_close (0),
    
txid_close (0),
    
lastclose (0),
    
lastcloset (0),
    
lastclosed (0),
    
dhigh (0),
    
dlow (0),
    
tlid_high (0),
    
tlid_low (0),
    
tlid_high_d (0),
    
tlid_high_t (0),
    
tlid_low_d (0),
    
tlid_low_t (0),
    
txid_high (0),
    
txid_low (0),
    
openset (false),
    
closeset (false),
    
close_prefix ("+");

once Plot1(0"Open");
once Plot2(0"Close");
once Plot3(0"Gap Up");
once Plot4(0"Gap Down");
once Plot5(0"High");
once Plot6(0"Low");

if 
date <> date[1then begin

    openset 
false;
    
closeset false;
    
dhigh H;
    
dlow L;
    
tlid_high_d D;
    
tlid_high_t T;
    
tlid_low_d D;
    
tlid_low_t T;
    
    
tlid_high TL_New(datetimeHdatetimeH);
    
tlid_low TL_New(datetimeLdatetimeL);
    
    
txid_high Text_New(datetimedhightext("H: "dhigh));
    
txid_low Text_New(datetimedlowtext("L: "dlow));

end;

if 
dhigh then begin dhigh Htlid_high_d Dtlid_high_t Tend;

if 
<= dhigh then begin

    TL_SetBegin
(tlid_hightlid_high_dtlid_high_tdhigh);
    
TL_SetEnd(tlid_highdatetimedhigh);
    
TL_SetColor(tlid_highGetPlotColor(5));

    
Text_SetLocation(txid_highdatetimedhigh);
    
Text_SetStyle(txid_high11);
    
Text_SetString(txid_hightext("H: "dhigh" "));
    
Text_SetColor(txid_highGetPlotColor(5));
    
    
end;

if 
dlow then begin dlow Ltlid_low_d Dtlid_low_t Tend;

if 
>= dlow then begin

    TL_SetBegin
(tlid_lowtlid_low_dtlid_low_tdlow);
    
TL_SetEnd(tlid_lowdatetimedlow);
    
TL_SetColor(tlid_lowGetPlotColor(6));
    
    
    
Text_SetLocation(txid_lowdatetimedlow);
    
Text_SetStyle(txid_low10);
    
Text_SetString(txid_lowtext("L: "dlow" "));
    
Text_SetColor(txid_lowGetPlotColor(6));

end;


//if TimeToString(ELTimeToDateTime(time)) = open_time then begin
if time >= StringToTime(open_time) and openset false then begin

    openset 
true;
    
tlid_gap TL_New(datetimelastclosedatetimeiff(lastcloselineoffsetlineoffset));
    
tlid2_gap TL_New(lastclosedlastclosetlastclosedatetimelastclose);

    if 
lastclose then txid_gap Text_New(datetimelastclose textoffsettext("Gap +", ((O-lastclose) / MinMove*PriceScale):0:0));
    if 
lastclose then txid_gap Text_New(datetimelastclose textoffsettext("Gap -", ((lastclose-O) / MinMove*PriceScale):0:0));
    
    
Text_SetStyle(txid_gap12);
    
    
TL_SetColor(tlid_gapiff(lastcloseGetPlotColor(3), GetPlotColor(4)));
    
TL_SetColor(tlid2_gapiff(lastcloseGetPlotColor(3), GetPlotColor(4)));
    
Text_SetColor(txid_gapiff(lastcloseGetPlotColor(3), GetPlotColor(4)));

    
tlid_open TL_New(datetimeGetAppInfo(aiLowestDispValue) + (textoffset*2), datetimeMinList(lastclose-lineoffsetO-lineoffset));
    
txid_open Text_New(datetimeGetAppInfo(aiLowestDispValue) + textoffsettext("O: "O));
    
    
TL_SetColor(tlid_openGetPlotColor(1));
    
Text_SetColor(txid_openGetPlotColor(1));
    
Text_SetStyle(txid_open02);

end;

//if TimeToString(ELTimeToDateTime(time)) = close_time then begin
if (time >= StringToTime(close_time) and closeset false) or Sess1EndTime time then begin

    closeset 
true;
    
tlid_close TL_New(datetimeGetAppInfo(aiLowestDispValue) + (textoffset*2), datetimeC-lineoffset);
    if 
C-lastclose 0 then close_prefix "+" else close_prefix "";
    
txid_close Text_New(datetimeGetAppInfo(aiLowestDispValue) + textoffsettext("C: "C" ("close_prefix, ((C-lastclose) / MinMove PriceScale):0:0" ticks) "));

    
TL_SetColor(tlid_closeGetPlotColor(2));
    
Text_SetColor(txid_closeGetPlotColor(2));
    
Text_SetStyle(txid_close12);
    
    
lastclose C;
    
lastclosed D;
    
lastcloset T;
end
MultiCharts .pla attached.

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.

Attached Files
Register to download File Type: pla BMT ChartMarkup.pla (12.9 KB, 50 views)
Reply With Quote
The following 5 users say Thank You to Big Mike for this post:

Reply



futures io > > > > > EasyLanguage Chart Markup Indicator

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 SuperTrend indicator Big Mike EasyLanguage Programming 79 August 10th, 2016 04:34 AM
EasyLanguage ADXVMA Indicator Big Mike EasyLanguage Programming 15 October 29th, 2014 10:51 PM
2Range indicator in 4 Range chart : multi data series chart emini_Holy_Grail NinjaTrader 5 July 3rd, 2011 04:19 PM
EasyLanguage ZeroLagEMA indicator Big Mike EasyLanguage Programming 1 April 10th, 2010 02:16 PM
EasyLanguage ZeroLagWMA indicator Big Mike EasyLanguage Programming 1 April 10th, 2010 02:09 PM


All times are GMT -4. The time now is 05:24 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-17 in 0.14 seconds with 20 queries on phoenix via your IP 54.163.210.170