Forex Factory
  • Login

  • Username: Password:
  • 6:24am

  • Search
  • Home

  • Forums

  • Trades

  • Calendar

  • News

  • Market

  • Brokers

Options

Search
Search
Search

Subscribe to Thread

Bookmark Thread

First Page First Unread Last Page Last Post

Printable Version

Similar Threads

Indicator fails to display - need help to fix 4 replies

pip display indicator 3 replies

Text display indicator 0 replies

Indicator Will Not Display Array Numbers. 0 replies

Mt4 indicator cant display properly 3 replies

  • Platform Tech
  • /
  • Reply to Thread
  • 10

Display Info indicator

  • Last Post
  • First Unread
  •  
  • Page 1 2
  •  
  • Post# 1
  • Quote
  • First Post: Jul 9, 2010 2:24am | Edited Jan 16, 2013 7:40pm
  • hanover
    Joined Sep 2006 | 5,002 Posts | Status: Gone AWOL for a few months.....
Please note: Running this indicator on a Vista or Win7 configuration may cause unpredictable results. Use at your own risk. I do not have the facilities to troubleshoot problems on either of these platforms. Please read posts #198 thru #208 here, and/or contact either Microsoft or your Windows supplier for more information.

This is the final version of the indy, and I am no longer answering questions in this thread. Reasons:
1. Increased work commitments elsewhere.
2. The indy has been running correctly for several months now. Most questions seem to be due to Vista or Win7 vagaries.
3. In many cases, I seem to be typing the same tired old answers repeatedly. If your questions aren't answered in the instructions provided, please feel welcome to read the posts in the thread, and experiment with the settings yourself.
4. Please note that the indy is FREE, and is therefore supplied on an 'as is, take-it-or-leave-it, use-at-your-own-risk' basis.

_______________________

Disclaimer: The attached indicator is supplied 'as is', free of charge. No warranty or obligation of support is implied. Download and use it at your own risk. I hope that you find it useful.
_____________________

Display Info All Pairs indicator

This indicator will display the following info, for all currency pairs offered by your br0ker:

-- Symbol (A=AUD, C=CAD, E=EUR, F=CHF, G=GBP, J=JPY, N=NZD, U=USD)
-- Current bid price
-- Daily move from open, both as pips, and a % of the daily open price
-- Daily range to date:ave daily range (DR as a % of ADR) (note: Sunday candles not included in ADR)
-- Spread (spread as a % of ADR)
-- Dollars per pip (per full lot traded)
-- Swap paid(+) or charged(-) by br0ker on long and short positions

The indy produces the table in the lower right of the attached screenshot.

Note: if you set FullSymbolIDs = TRUE, then you'll need to set at least one of the other Show........ parameters to FALSE, to avoid truncation. MT4 allows a maximum of 62 characters in a text object's description.

___________________________

Critical Levels indicator

This indy displays colored lines at the RHS of your chart. You can select lines from any or all of the following:
--- prior daily, weekly and monthly highs/lows;
--- daily, weekly and monthly pivot levels (standard calculation)
--- daily, weekly and monthly pivot levels (fibo based calculation)
--- round numbers (xx00 and xx50)

See the second screenshot below for an example.

If you want a certain line type to display, select your desired color; it must be a valid MT4 color token, e.g. Red, SaddleBrown, Goldenrod, MediumViolet. If not, leave the parameter blank.

The indy will work if you simply copy the .ex4 file into your ..../experts/indicators folder. However, if you copy the .mq4 file there also, then you must also copy the two .mqh files here into your ..../experts/include folder, for the .mq4 to compile correctly.

The same disclaimers above apply. You agree to download and use the indy at your own risk, and I accept no liability for any damage it may cause your computer. Also, the indy is offered on an 'as is', 'take it or leave it' basis. I'm not planning on customizing it any further, but the .mq4 file is available if you want to do it yourself (or find another programmer).

___________________________

Output History indicator & script

Either one of these will output OHLCV history to CSV files, simultaneously for up to 40 pairs/instruments, and 9 timeframes, allowing easy import to Excel. A separate file is created for each pair/timeframe combination. The script runs the job once; while the indicator runs it once every time a new price tick occurs, overwriting the relevant file(s).

Each bar in the chart occupies one line (row) in the file. Data in each row is output in the following order: date/time, open, high, low, close, volume

You can easily modify the source code to add additional values from MT4 indicators, by using MQL4 functions (e.g. iMA, iRSI, iBands, iCustom, etc).


INSTALLATION:

Copy the two .mqh files here into your ..../experts/include folder.
Copy the .mq4 (indicator) file into your ..../experts/indicators folder.
Copy the .mq4 (script) file into your ..../experts/scripts folder.
Then restart MT4.

PARAMETERS:

CurrencyPairs: leave blank to output only for the pair on whose chart the script/indicator is attached. Otherwise type in up to 40 pairs, separated by commas. Upper or lowercase doesn’t matter, and you may use the following abbreviations: A=AUD, C=CAD, F=CHF, E=EUR, G=GBP, J=JPY, N=NZD, U=USD. Hence you could type something like: EU,GU,UF,UJ which works the same as EURUSD,GBPUSD,USDCHF,USDJPY

TimeFrames: leave blank to output only for the timeframe on whose chart the script/indicator is attached. Otherwise type in up to 9 timeframes, separated by commas. Upper or lowercase doesn’t matter. For example, to output for all 9 timeframes, copy this:
M1,M5,M15,M30,H1,H4,D1,W1,MN

Hence the above entries would create 36 different files (4 pairs x 9 timeframes).

DifferentSubfolderPerTimeFrame: if set to FALSE, all files will be output to your …/experts/files folder. If set to TRUE, subfolders will automatically be created under this folder, e.g. …/experts/fiels/H1, and the output file(s) will be created in the subfolders.

Regardless of the folder, all files are named: [pair],[timeframe].CSV

LookbackBars: OHLCV values for the most recent (rightmost) ‘n’ bars will be output, where ‘n’ is the value you type here. If you specify either 0, or a very large number (e.g. 999999), then all values for all bars in the chart history will be output. WARNING: if using the indicator, then outputting a very large amount of data repeatedly on every price tick may bring MT4 to a standstill.

DescendingDateTimeOrder: if set to FALSE, data is output in chronological order, i.e. earliest bar values at the start of the file. If set to TRUE, data is output in reverse chronological order, i.e. most recent bar values at the start of the file.

OutputHeaderLine: if set to TRUE, it will output one line (row), with column headings, at the start of the file. If set to FALSE, no header line will be output.

FieldSeparator: set this to the delimiter character(s) you wish to appear between column vales that are outputs. Default is a comma (,).

EncloseValuesInQuotes: if set to TRUE, each data value will be enclosed in double quotes, e.g. “1.3659”.

DateTimeFormat, PriceFormat, etc: these are explained here.
Note that date and time, by default, are output as one field. If you want them to appear as separate fields, you must include a field separator (and quotes, if desired) inside the DateTimeFormat, e.g. M/D/Y","H:I


SAMPLE OUTPUT:
Inserted Code
Date,Time,Open,High,Low,Close,Volume
"12/21/2012","04:00","87.970","87.984","87.584","87.804","18961"
"12/21/2012","08:00","87.803","87.965","87.582","87.609","15917"
"12/21/2012","12:00","87.607","87.847","87.560","87.603","12136"
"12/21/2012","16:00","87.602","87.871","87.530","87.686","18678"
"12/21/2012","20:00","87.686","87.724","87.538","87.599","7838"
"12/24/2012","00:00","87.707","87.870","87.652","87.734","9248"
"12/24/2012","04:00","87.736","87.818","87.687","87.813","4924"
"12/24/2012","08:00","87.810","87.915","87.780","87.811","5634"
"12/24/2012","12:00","87.812","87.891","87.741","87.811","6903"
"12/24/2012","16:00","87.811","87.994","87.793","87.938","5883"
"12/26/2012","01:00","88.053","88.412","88.006","88.348","13701"
"12/26/2012","05:00","88.348","88.476","88.308","88.398","7351"
"12/26/2012","09:00","88.398","88.608","88.347","88.433","10198"
"12/26/2012","13:00","88.433","88.642","88.350","88.576","10997"
"12/26/2012","17:00","88.576","88.770","88.427","88.766","12260"
"12/26/2012","21:00","88.766","88.842","88.715","88.837","4481"
"12/27/2012","00:00","88.833","88.886","88.620","88.832","10180"
"12/27/2012","04:00","88.835","88.948","88.755","88.803","10334"
"12/27/2012","08:00","88.803","88.970","88.765","88.945","9994"
"12/27/2012","12:00","88.944","89.119","88.902","89.065","9441"
The same disclaimers above apply. You agree to download and use the indy at your own risk, and I accept no liability for any damage it may cause your computer. Also, the indy is offered on an 'as is', 'take it or leave it' basis. I'm not planning on customizing it any further, but the .mq4 file is available if you want to do it yourself (or find another programmer).

___________________________

MT4 Indicators/EAs by Hanover:

Recent Strength — display line-based plot of weighted average of currency (as opposed to pair) strength
Recent Prices — display line-based plots of any combo of pairs/timeframes on your current chart, to compare their relative strength
Recent Candles — display candles of any combo of pairs/timeframes on your current chart
Recent SR — auto-plot horizontal support/resistance lines based on a wide variety of settings
Recent News — display upcoming and/or historical news announcements from FF calendar; countdown/alert upcoming announcements
Daily Lines/Boxes — auto-plot horizontal or vertical lines, boxes, symbols on user-defined times, days of the week, etc
Display Info all pairs — display spread, daily range, dollars/pip, swap rates etc for all pairs
Spaced Lines — auto-plot horizontal lines on your charts
Stealth Master EA — hide your SL and TP from unscrupulous br0kers!
Do-it-yourself alerts builder kit — code template that you can copy/paste that will add pop-up and/or e-mail alerts to most 'standard' indicators
Attached Images (click to enlarge)
Click to Enlarge

Name: Display Info indy.jpg
Size: 181 KB Click to Enlarge

Name: 2012-12-19_1630_001.png
Size: 86 KB
Attached Files
File Type: mq4 Display Info All Pairs.mq4   55 KB | 3,549 downloads | Uploaded Sep 2, 2011 7:10pm
File Type: ex4 Critical Levels.ex4   50 KB | 294 downloads | Uploaded Jan 6, 2013 6:43pm
File Type: mq4 Critical Levels.mq4   13 KB | 336 downloads | Uploaded Jan 6, 2013 6:43pm
File Type: mq4 Output History (indicator).mq4   5 KB | 284 downloads | Uploaded Jan 16, 2013 7:36pm
File Type: mq4 Output History (script).mq4   5 KB | 238 downloads | Uploaded Jan 16, 2013 7:36pm
I'm taking a rest from forums. Please don't expect replies to your posts.
  • Post# 2
  • Quote
  • Jul 17, 2010 5:30pm
  • Oksana17
    Commercial Member | 817 Posts | Joined Sep 2007
Thank you !
I will now use it for my manual trading.
  • Post# 3
  • Quote
  • Sep 14, 2010 9:26pm
  • mer071898
    Joined Jan 2007 | 1,325 Posts | Status: Every new idea looks crazy at first
Can this be configured to show the swap rates only?
  • Post# 4
  • Quote
  • Sep 15, 2010 4:32pm
  • hanover
    Joined Sep 2006 | 5,002 Posts | Status: Gone AWOL for a few months.....
Quoting mer071898
Can this be configured to show the swap rates only?
Done. I've updated the version attached to post #1.
I'm taking a rest from forums. Please don't expect replies to your posts.
  • Post# 5
  • Quote
  • Dec 19, 2010 1:07pm
  • destroyer74
    Joined Mar 2010 | 2 Posts | Status: Junior Member
Thank you for this useful indicator, Hanover!
But can you attach .mq4 file?
  • Post# 6
  • Quote
  • Dec 21, 2010 12:39pm
  • hanover
    Joined Sep 2006 | 5,002 Posts | Status: Gone AWOL for a few months.....
Quoting destroyer74
But can you attach .mq4 file?
Source code was posted here.
I'm taking a rest from forums. Please don't expect replies to your posts.
  • Post# 7
  • Quote
  • Aug 1, 2011 1:55am
  • umpats
    Joined Apr 2011 | 210 Posts | Status: Member
Quoting hanover
Source code was posted here.

Hello Hanover,

If possible then please help me to give a indicator of cci(14).

the condition is like when the cci(14) angle is between 12 to 2 then up arrow and
when the cci(14) angle is between 4 to 6 then down arrow and all other condition is side ways arrow.

this indicator i require for 4H, 1H and 15M timeframe together.

thanks in advance.

Umpats
  • Post# 8
  • Quote
  • Aug 1, 2011 3:37am
  • hanover
    Joined Sep 2006 | 5,002 Posts | Status: Gone AWOL for a few months.....
Quoting umpats
Hello Hanover,

If possible then please help me to give a indicator of cci(14).

the condition is like when the cci(14) angle is between 12 to 2 then up arrow and
when the cci(14) angle is between 4 to 6 then down arrow and all other condition is side ways arrow.

this indicator i require for 4H, 1H and 15M timeframe together.

thanks in advance.

Umpats
I don't believe it's possible to determine the angle of an indicator. Two reasons:

1. An indicator tends to plot a curve (not a straight line). The angle of a curve, across multiple points, is constantly changing.

2. As you zoom in or out, changing the horizontal scale, the angle between any two points on the curve changes.

To obtain a mathematical formula that could be coded, you'd need to specify what change in CCI over a specific number of candles constitutes bullish, bearish or neutral condition.
I'm taking a rest from forums. Please don't expect replies to your posts.
  • Post# 9
  • Quote
  • Aug 8, 2011 2:19am
  • umpats
    Joined Apr 2011 | 210 Posts | Status: Member
Quoting hanover
I don't believe it's possible to determine the angle of an indicator. Two reasons:

1. An indicator tends to plot a curve (not a straight line). The angle of a curve, across multiple points, is constantly changing.

2. As you zoom in or out, changing the horizontal scale, the angle between any two points on the curve changes.

To obtain a mathematical formula that could be coded, you'd need to specify what change in CCI over a specific number of candles constitutes bullish, bearish or neutral condition.

Thank you Hanover for your reply.

But is it possible to make a EA when cci (50) above or below 0 line and price is above or below EMA(34) then open or close order.

thanks in advance.

umpats
  • Post# 10
  • Quote
  • Jan 18, 2012 1:53am
  • hanover
    Joined Sep 2006 | 5,002 Posts | Status: Gone AWOL for a few months.....
As per PM request
Attached File
File Type: mq4 Display PL.mq4   2 KB | 944 downloads
I'm taking a rest from forums. Please don't expect replies to your posts.
  • Post# 11
  • Quote
  • Jan 18, 2012 2:52am
  • JeremyWS
    Joined Oct 2010 | 577 Posts | Status: Member
Are swap rates expressed as a dollar amount per full lot or as pips?

Great indicator by the way.

Thanks
  • Post# 12
  • Quote
  • Jan 18, 2012 2:03pm
  • hanover
    Joined Sep 2006 | 5,002 Posts | Status: Gone AWOL for a few months.....
Quoting JeremyWS
Are swap rates expressed as a dollar amount per full lot or as pips?

Great indicator by the way.

Thanks
Dollar amount (or whatever currency your account is denominated in) per full lot traded.
I'm taking a rest from forums. Please don't expect replies to your posts.
  • Post# 13
  • Quote
  • Feb 22, 2012 2:43pm
  • PPKpe
    Joined Feb 2011 | 6 Posts | Status: Member
Quoting hanover
Dollar amount (or whatever currency your account is denominated in) per full lot traded.
Hi Hanover,

After doble click on the corner of the rectangle drawing in my metatrader and drag the handles, I can see the # of candles and the # of pips. I would like the rectangle show the value "# of pips / # of candles". It could be named by speed "speed=# of pips/ # of candles"... Could you help please, how to display that info??

Thanks in advance,
Ppkpe
  • Post# 14
  • Quote
  • Feb 23, 2012 1:05am
  • hanover
    Joined Sep 2006 | 5,002 Posts | Status: Gone AWOL for a few months.....
Quoting PPKpe
Hi Hanover,

After doble click on the corner of the rectangle drawing in my metatrader and drag the handles, I can see the # of candles and the # of pips. I would like the rectangle show the value "# of pips / # of candles". It could be named by speed "speed=# of pips/ # of candles"... Could you help please, how to display that info??

Thanks in advance,
Ppkpe
Hi,

It took me a while to realize that your question has nothing to do with the indicator that's the subject of this thread.

However, no problem. The answer to your question is that the info that's being displayed can not be modified or added to. You would need to create an additional text or label object that displays the text that you require. Something like:

Inserted Code
  string boxname = "box1";
  int      c1  = iBarShift(Symbol(),Period(),ObjectGet(boxname,OBJPROP_TIME1));
  int      c2  = iBarShift(Symbol(),Period(),ObjectGet(boxname,OBJPROP_TIME2));
  double   p1  = ObjectGet(boxname,OBJPROP_PRICE1);
  double   p2  = ObjectGet(boxname,OBJPROP_PRICE2);
  color    clr = ObjectGet(boxname,OBJPROP_COLOR);
  if (c1==c2)
    double speed = 0;
  else   
    speed = (p2-p1)/Point / (c2-c1);
  string   objname = "text1";
  string   objtext = "speed=" + DoubleToStr(speed,1);
  if (ObjectFind(objname) < 0)  {
    ObjectCreate(objname,OBJ_TEXT,0,Time[c2],p2-100*Point);
    ObjectSetText(objname,objtext,12,"Arial",clr);
  }
The above assumes that an object with the name "box1" already exists, and it will calculate and display the speed value, as a separate text object (named "text1").

David
I'm taking a rest from forums. Please don't expect replies to your posts.
  • Post# 15
  • Quote
  • Feb 23, 2012 6:41pm
  • PPKpe
    Joined Feb 2011 | 6 Posts | Status: Member
Quoting hanover
Hi,

It took me a while to realize that your question has nothing to do with the indicator that's the subject of this thread.

However, no problem. The answer to your question is that the info that's being displayed can not be modified or added to. You would need to create an additional text or label object that displays the text that you require. Something like:

[code] string boxname = "box1";
int c1 = iBarShift(Symbol(),Period(),ObjectG et(boxname,OBJPROP_TIME1));
int c2 = iBarShift(Symbol(),Period(),ObjectG et(boxname,OBJPROP_TIME2));...

Hi David,
Thank very much to answer my email.
I will try to make the "box1".
Best regards,
Ppkpe
  • Post# 16
  • Quote
  • Feb 25, 2012 1:15am
  • hanover
    Joined Sep 2006 | 5,002 Posts | Status: Gone AWOL for a few months.....
Quoting PPKpe
Hi David,
Thank very much to answer my email.
I will try to make the "box1".
Best regards,
Ppkpe
Hi,

The attached indicator represents my response to your PM.

I'm too busy to take on new programming work, but this job took less than 10 minutes, hence I made an exception.

All of the trendlines that you want annotated must be the same color as the color that you specify. That makes it possible to have non-annotated trendlines on your chart, also.

The indicator must be refreshed manually, as I consider it inefficient to have it re-plot the text annotations on every new price tick.

I don't mind responding to posts on the thread topic (the Display Info indicator), but in future I won't be replying to anybody who requests other work here. After 5 years of contributing freely to Forex Factory, I now owe it to myself to focus on automating my own strategies.

David
Attached File
File Type: mq4 PPK trendlines.mq4   97 KB | 422 downloads
I'm taking a rest from forums. Please don't expect replies to your posts.
  • Post# 17
  • Quote
  • Apr 14, 2012 10:06am
  • devisen
    Joined Mar 2012 | 1 Post | Status: Junior Member
Hello,

i Like this tool, its very helpful in short Timeframes like M1,
but the risk with 2 lots is to high for my budget,
how can i change to 1, 0.50, 0.30, ...
Thanks !
  • Post# 18
  • Quote
  • Apr 14, 2012 3:35pm
  • hanover
    Joined Sep 2006 | 5,002 Posts | Status: Gone AWOL for a few months.....
Quoting devisen
Hello,

i Like this tool, its very helpful in short Timeframes like M1,
but the risk with 2 lots is to high for my budget,
how can i change to 1, 0.50, 0.30, ...
Thanks !
I have posted the answer here.
I'm taking a rest from forums. Please don't expect replies to your posts.
  • Post# 19
  • Quote
  • Jul 24, 2012 9:57am
  • Terraforce1
    Joined Jun 2012 | 90 Posts | Status: Member
Hi Hanover

Thanks for the indicator. Do you perhaps have a decent tried and tested EMA crossover EA? I found a few on some of the other forums that I tried to tweak myself but to no avail. So with your great knowledge I was hoping you have coded an EA for an EMA crossover that eill actually work.

Thanks
  • Post# 20
  • Quote
  • Jul 25, 2012 7:52am
  • hanover
    Joined Sep 2006 | 5,002 Posts | Status: Gone AWOL for a few months.....
Quoting Terraforce1
Hi Hanover

Thanks for the indicator. Do you perhaps have a decent tried and tested EMA crossover EA? I found a few on some of the other forums that I tried to tweak myself but to no avail. So with your great knowledge I was hoping you have coded an EA for an EMA crossover that eill actually work.

Thanks
Hi,

No, sorry, I don't have an EA whose trading rules involve a MA crossover.

Have you tried searching all of the threads started by Steve Hopwood and Ronald Raygun? They have written many more EAs than I have.

Good luck,
David
I'm taking a rest from forums. Please don't expect replies to your posts.
Thread Tools Search this Thread
Show Printable Version Show Printable Version
Email This Thread Email This Thread
Search this Thread:

Advanced Search

  • Platform Tech
  • /
  • Display Info indicator
  • Reply to Thread
    • Page 1 2
1 member viewing: wkc
  • More

©2013 Forex Factory, Inc. / Terms of Use / Privacy Policy

Forex Factory® is a registered trademark.

Connect

  • Facebook
  • Twitter
  • RSS

Company

  • About FF
  • FF Blog
  • Careers at FF
  • Advertising
  • Contact FF

Products

  • Forums
  • Trades
  • Calendar
  • News
  • Market
  • Brokers
  • Trade Explorer

Website

  • Homepage
  • Search
  • User Guide
  • Member List
  • Online Now
  • Report a Bug