PDA

View Full Version : Spaced Lines (v 3.0) indior thread



pablolmga
02-06-2011 04:51, 04:51 AM
Directions

This is a carry over in the 'Need lines indior' thread. I presumed that Spaced Lines merited its own thread as I can edit post #1 every time that I update the indior.

Latest update: version 3.02, uploaded July 1, 2011
Latest changes to this post in red typeface


Installation

Download the EX4 file to the .../experts/indiors folder.

If you would like to enter the parameters by means of a parameter file, then download the TXT file to the .../ /experts/files folder.


Parameters

ParameterFile - if blank, the parameter file Presets--Spaced Lines.TXT will be used. Settings in this file will override all those entered in the conversation window once the indior is attached/edited. If you enter a value (e.g. XXX), then the parameter file Presets--Spaced Lines.XXX will be used instead. This makes it effortless to switch between a lot of different settings. If you leave the parameter set as NONE, then (supposing a file Presets--Spaced Lines.NONE does not exist), the settings you input MT4's conversation window will be used. All of parameter files must reside in the .../experts/files folder. Watch 'PARAMETER FILE' section below for more information

StartPrice - simply inputting a number (e.g. 1.3165, 85.389) will mean that the price entered will be used as the 'zero point' where the traces are plotted. Otherwise you are able to make an entry such as:
Cx,y - that means that the close x pubs past (0 is the currently forming pub), rounded to the nearest y pips, will be used as the zero point, e.g., to draw around numbers starting at XX50, enter C0,50 or simply C,50
Ox,y
Hx,y
Lx,y
work exactly the same, using the open, high, low prices instead.
You can omit the ,y part, if you do not require rounding, e.g. C0 (or C) will use the close of pub #0 as the zero stage

PriceLevels - as much as 100 amounts might be entered, separated by commas
-- a zero value (0) will plot a line at the zero stage
-- optimistic values (X) will plot a line X pips over the zero stage
-- negative values (-X) will plot a line X pips below the zero stage
If you place AbsolutePrices to TRUE, the StartPrice and zero value doesn't apply. Just enter price worth, separated by commas.

AbsolutePrices - if TRUE, PriceLevels represent total price worth, and StartPrice (zero point) doesn't apply. If FALSE, then PriceLevels are calculated relative to the zero stage.

LineColors - up to 100 values could be entered, separated by commas. These determine the color which will be used to plot the line at the corresponding entrance in PriceLevels. If only one value is entered, all lines will be plotted in that color

LineStyles - up to 100 values could be entered, separated by commas. These determine the width/style which will be used to plot the line at the corresponding entrance in PriceLevels. If only one value is entered, all lines will be plotted with this width/style. Valid values for style are: 10 = good line of width 1; 11 = dashed line; 12 = dotted line; 13 = dash-dot; 14 = dash-dot-dot; 20, 30, 40, 50 = good line of width 2, 3, 4, 5 respectively.

TimeFrames - determine which timeframes where the traces will be visible. Entries are M1. Can be upper or lowercase, use commas to separate entries.

CounterLookback - if 0, this has no impact.
If a certain number, a count is made of how many of the last CounterLookback candles have reached or intersected this price level line.
If a negative number, a count is made of how many of the candles showing in the price window have reached or intersected this price level line.
The count is displayed at the left of the chart, since the object description. You must have 'Show thing descriptions' assessed ON (press F8, and pick out the frequent tab) in order to view the descriptions.


Example #1: to plot traces at around number amounts 50 pips apart, with XX00 values as solid lines, and XX50 values as dotted lines:

Inserted Code StartPrice = C0,100; PriceLevels = -500,-450,-400,-350,-300,-250,-200,-150,-100,-50,0,50,100,150,200,250,300,350,400,450,500; LineColors = DimGray; LineStyles = 10,12,10,12,10,12,10,12,10,12,10,12,10,12,10,12,10 ,12,10,12,10; CounterLookback = 0;

Example #2: to plot dashed lines at XX20 and XX80 degrees:

Inserted Code StartPrice = C0,100; PriceLevels = -480,-420,-380,-320,-280,-220,-180,-120,-80,-20,20,80,120,180,220,280,320,380,420,480; LineColors = DimGray; LineStyles = 11; CounterLookback = 0;

Parameter file

To remove the nuisance of having to retype the same parameter settings every time you join the indior to a chart, You've Got two choices:

1. Use MT4 templates (however these overwrite any other indiors, items, etc which you also need on the chart). In this case, the indior settings are described when you attach or edit the indior, using the built-in conversation of MT4.

2. Use parameter file(s), as follows:If you enter nothing or TXT to the ParameterFile setting, then the indior looks for a parameter file called Presets--Spaced Lines.TXT in the .../ /experts/files folder. If you enter any additional text (e.g. XXX, 001, etc) to the ParameterFile setting, then the indior looks for a parameter file called Presets--Spaced Lines.XXX, Presets--Spaced Lines.001, etc in the .../experts/files folder. (This allows you to set up a definition in every file, then simply enter the file suffix when you join the indior). Then the settings in the conversation of MT4 will be used if the file can not be found. If the file is found, then the settings in the file will be used. Simply enter the title of a file that is non-existent, if you want to force the usage of the dialog settings.

Use a text editor such as Notepad to see and/or edit the parameter presets files.

To disable an entry into the file, start the line with two slashes (//). (This means that the setting specified in the MT4 conversation will be used.) To re-enable it, remove the slashes. If you've got multiple 'unslashed' entries in the file, the final will be used.

You can use any variety of embedded spaces or underscores, and/or any combo of lower or upper case, to aid readability, however you desire.

Every line in the file (including blank lines, and lines beginning with two slashes) MUST end with a semi-colon (; ). Failure to do so will cause unpredictable consequences.

To save typing and enhance accuracy, copy/paste the sample traces in the file. To disable the file, rename it, or delete its content.

To get any changes take immediate impact, either (1) re-attach the indior to your chart; (2) edit the indior (media Ctrl-I); or (3) toggle between timeframes.


Change history

v 3.00: Initial release.

V 3.01: Additional CounterLookback parameter.

V 3.02: Additional AbsolutePrices parameter.


Terms and conditions

#61623; All code is provided FREE of charge. It might not be sold or distributed commercially.

#61623; Software is provided in an 'as is' basis. I'm not supplying a programming or troubleshooting service. Source code isn't currently available.

#61623; There is not any guarantee that the software is appropriate for purpose, or free of errors. Download and use the indior(s) at your own risk; I accept no liability for personal harm or financial losses.

___________________________

MT4 Indiors/EAs by Hanover:

Present Strength #8212; exhibit line-based plot of weighted average of currency (as opposed to pair) power
Present Prices #8212; screen line-based plots of almost any combo of pairs/timeframes in your current chart, to compare their relative power
Present Candles #8212; screen candles of any combo of pairs/timeframes in your current chart
Present SR #8212; auto-plot horizontal support/resistance lines based on a vast array of settings
Present News #8212; screen upcoming and/or historical news announcements fromnigeriaforextradingcalendar; countdown/alert upcoming announcements
Daily Lines/Boxes #8212; auto-plot vertical or horizontal lines, boxes, symbols on user-defined times, days of the week, etc
Screen Info all pairs #8212; screen spread, daily range, dollars/pip, swap rates etc for all pairs
Spaced Lines #8212; auto-plot horizontal lines in your charts
Stealth Master EA #8212; conceal your SL and TP from unscrupulous br0kers!
Do-it-yourself alerts builder kit #8212; code template which you can copy/paste which will add pop-up or email alerts to most 'standard' indiors
https://www.nigeriaforextrading.com/attachments/1525075588427438379.ex4
https://www.nigeriaforextrading.com/trading-system-and-egies/200-egy-interesting.html

pablolmga
11-24-2021 20:31, 08:31 PM
Hi Hanover, excuse my ignorance. . .but could you explain how I creat a 'Preset' file? I have attempted to follow the 'Parameter' info you posted, but have hopelessly lost!
I use the 'Spaced Lines' indior , as you rightly point out, it is a pain to have to alter it every time I switch from a long to a brief commerce, or the reverse. A preset would be wonderful.
Many thanks I gave it my very best shot describing it in the 'PARAMETER FILE' segment in post #1. A sample document is attached to post #1. Use a text editor (e.g. Notepad) to edit it for the preferred parameter settings, and save the resulting file from the .../ /experts/files folder. Type the file extension into the ParameterFile setting in the indy, once you join it to your chart. E.g. if the document name is Presets--SpacedLines.XXX, then sort XXX as the ParameterFile setting. Anyhow, all I'm doing today is repeating material that I typed back in post #1 ....

Maybe it's simpler if you tell me where/how you want the lines plotted, and I will create a parameter file for you.

David

pablolmga
11-24-2021 21:52, 09:52 PM
See post #1 for details.

geiviiig
11-24-2021 23:12, 11:12 PM
Thanks for your generosity and incredible effort....this may be worth a lot to me and several more.

lmilmi
11-25-2021 00:33, 12:33 AM
Be Lucky David...

hacklel1101
11-25-2021 01:54, 01:54 AM
There has been a definite requirement for this particular lines indior, for such and around numbers.


I would not dare suggest an improvement, for example
to draw vertical lines:
StartTime for some set time,
TimeLevels for every number of components of time for the current time period

as well as
to draw trendlines:
StartTimeandPrice for every number set of several,
EndTimeandPrice for every number set of several,
the order of the number sets to match;
that's, (starttime1=)00:05, (startprice1=)1.61; (starttime2=)03:14, (startprice2=)1.59
and (endtime1=)01:05, (endprice1=)1.63; (endtime2=)05:14, (endprice2=)1.578


Anyhow, thanks to the idea manufacturer.

lmilmi
11-25-2021 03:15, 03:15 AM
Hi David. I follow your posts and threads and I notice a at the period of time you are really quite active on this forum, assisting people with there requests, we apreciate people like you.

I enjoy this spaced lines indy, I specify visually (drawing lines) a wave range 10/20 pips and following a price is bouncing couple times between those lines I input using an order. Is it hardfor youpersonally, or give me an idea how do I make this indy counts how many time price touches. I understand if you are busy and do not have thanks, and take good care.

pablolmga
11-25-2021 04:36, 04:36 AM
Hi David. I follow close your threads.... I thought it was a fantastic idea to have an option to show the number of times price has attained each plotted degree, so I have upgraded the indy. Model 3.01 could be downloaded from post #1.

clamalesly
11-25-2021 05:56, 05:56 AM
Just wondering, even if it is not too much difficulty, could it be possible to have an choice to use a candle near the same way as the beginning price being the zero stage ?
Either or is exactly what I mean. Like the one called TimeSelect, that has the choice but not as clean as yours.

Thanks,
Michael
https://www.nigeriaforextrading.com/attachments/1525075592184224543.mq4
https://www.nigeriaforextrading.com/attachments/1525075594885278217.mq4

pablolmga
11-25-2021 07:17, 07:17 AM
Just wondering, even if it isn't too much trouble, could it be possible to have an option to utilize a candle near exactly the exact same manner as the beginning price being the zero point ?
Either or is exactly what I mean. Such as the one called TimeSelect, which has the option but not as clean as yours.

Thanks,
Michael Michael,

Having had a look at the TimeSelect indy, I believe this indy might better suit your needs, in the event that you set up its parameters something similar to that:

LookbackDays=20
StartHours=8.0
EndHours=32.0
ExtendHours=32.0
UniqueID=DLB#1
BoxColor=0,64,0
LineColor=Green
Properties=C
HorizLineLevels=-10,0,20
TextProperties=
SymbolProperties=
DaysOfWeek=Mon,Tue,Wed,Thu,Fri
Visibility=M1,M5,M15,M30,H1,H4
TimeFrame=
CandlesMustExist=false
ClearancePips=0.0
RefreshEveryXMins=1

This could plot green (LineColor=Green) flat lines in the near (Properties = C) of the 8:00 candle (StartHours = 8) into the 8:00 candle the following day (ExtendHours = 32, i.e. 8 24) for the last 20 times (LookbackDays = 20) on all weekdays (DaysOfWeek = Mon,Tue,Wed,Thu,Fri) and be visible on all of Visibility = M1,M5,M15,M30,H1,H4 chart timeframes.

Lines would be plotted 10 pips below the near price; at the close price; and 20 pips over the near price; because HorizLineLevels=-10,0,20

If you want to extend the lines as be to the far right of the chart, set Properties = CX

This indy is a type of 'Swiss army knife' that will plot several distinct kinds of lines or boxes, based upon the settings.

I expect that I've understood your request properly.

David

clamalesly
11-25-2021 08:38, 08:38 AM
David,

this is just ideal for my needs. 1 question, is it feasible to alter the color of lines. Ideally gray the zero stage the one below and crimson the one above ? And also the style, dotted instead of full. Are these choices in there ?

Michael

pablolmga
11-25-2021 09:59, 09:59 AM
David,

that is just perfect for my needs. 1 little issue, is it feasible to change the color of lines. Ideally gray the zero point the one under and the one that is red above ? And also the style, dotted rather than full. Are these options in there ?

Michael Michael,

To make the lines sprinkled, place Properties = C..

To use Unique colours, you'd need to attach 3 separate instances of the indy, together with the following settings:

LookbackDays=20
StartHours=8.0
EndHours=32.0
ExtendHours=32.0
UniqueID=1
BoxColor=0,64,0
LineColor=Gray
Properties=C..
HorizLineLevels=0
TextProperties=
SymbolProperties=
DaysOfWeek=Mon,Tue,Wed,Thu,Fri
Visibility=M1,M5,M15,M30,H1,H4
TimeFrame=
CandlesMustExist=false
ClearancePips=0.00000000
RefreshEveryXMins=1


LookbackDays=20
StartHours=8.0
EndHours=32.0
ExtendHours=32.0
UniqueID=two
BoxColor=0,64,0
LineColor=Green
Properties=C..
HorizLineLevels=-20
TextProperties=
SymbolProperties=
DaysOfWeek=Mon,Tue,Wed,Thu,Fri
Visibility=M1,M5,M15,M30,H1,H4
TimeFrame=
CandlesMustExist=false
ClearancePips=0.0
RefreshEveryXMins=1


LookbackDays=20
StartHours=8.0
EndHours=32.0
ExtendHours=32.0
UniqueID=3
BoxColor=0,64,0
LineColor=Red
Properties=C..
HorizLineLevels=20
TextProperties=
SymbolProperties=
DaysOfWeek=Mon,Tue,Wed,Thu,Fri
Visibility=M1,M5,M15,M30,H1,H4
TimeFrame=
CandlesMustExist=false
ClearancePips=0.0
RefreshEveryXMins=1


I have highlighted the critical settings in red. Note how you must have a UniqueID for every instance of the indy. The installation is a once only procedure, you could save it as a template, and use it to additional charts.

David

clamalesly
11-25-2021 11:19, 11:19 AM
Wow,

how efficient can the guy be ???

Because friend

PS: Can it have a great memory use if I use 3 separate instances of this indy ?

pablolmga
11-25-2021 12:40, 12:40 PM
PS: will it have a great memory usage if I use 3 separate instances of the indy ? No, memory usage should not be a issue.

clamalesly
11-25-2021 14:01, 02:01 PM
Thank you

mmoga
11-25-2021 15:22, 03:22 PM
Hi Hanover, excuse my ignorance. . .but could you describe how exactly I creat a 'Preset' file? I have tried to follow the 'Parameter' info you posted, but have hopelessly lost!
I make use of your 'Spaced Lines' indior , as you rightly point out, it's a pain to have to alter it every time I change in a long to a brief commerce, or the reverse. A preset would be fantastic.
Many thanks

Vicenlepiommfomex
11-25-2021 16:42, 04:42 PM
I gave it my very best shot describing it in the 'PARAMETER FILE' segment in post #1. There is a sample file attached to article #1. Use a text editor (e.g. Notepad) to edit it for the desired parameter settings, and save the resulting file in the .../ /experts/files folder. Type the file extension into the ParameterFile setting in the indy, once you attach it to your chart. E.g. if the file name is Presets--SpacedLines.XXX, then sort XXX as the ParameterFile setting. Anyhow, all I'm doing today is copying material... It's been some time, in the risk of incuring your wrath....would it'd be simpler for all concerned if you posted the mql4 variant!
If it's for sale....where do I get it?

pablolmga
11-25-2021 18:03, 06:03 PM
It has been a while, in the risk of incuring your wrath....would it'd be easier for all concerned if you posted the mql4 version! No offense, but easier for who? The simplest thing for me would be to dismiss all queries. Or not to have submitted the .ex4 at the first place https://www.nigeriaforextrading.com/attachments/1525075563.png

If someone does not know how to use Notepad, my guess is that having the .mq4 file wouldn't help them either.


If it's for sale....where do I get it? If I was to sell the .mq4, I would potentially only ever get 1 opportunity to do so, because after that, the document could be posted publicly, or perhaps sold on e-bay. Hence the price would need to be prohibitively large, and it's easier for me to not post the .mq4

It is not that I think my coding skills are superior, or that I've developed a hugely valuable indior. I value my development time and energy.

Vicenlepiommfomex
11-25-2021 19:24, 07:24 PM
It would seem that the two other articles you've made in reply to mine, have never been set on the forum...I wonder why. Do you suppose it could be due to you astonishing conceit, your gross arrogance....or maybe your childish petulance? Could be some of these, or all three. You're certainly all of these. I've your indior, thank you. It took time, but it is working alright. I could place it but it is really not worth it.
Good bye 'anover, gram'bye Nigeriaforextrading

that I think I may as well include your two replies to a simple request

I've posted the .ex4 freely for public usage (some people might even call a generous gesture https://www.nigeriaforextrading.com/attachments/1525075564.png), but if I release the source code, then I have no control on where it might end up. I've put a considerable amount of thought and effort in these indiors, and it would be disappointing to see them being marketed on somewhere like e-bay, i.e. somebody else makes money from my job while I get nothing. You might believe this is unlikely to occur, because it is merely an indior as opposed to an EA that makes X hundred pips every month. And it is not that I think my coding abilities are exceptional. I value my time and effort.
My only alternative is to sell the source code to get a one-off price that would mean I didn't care if others profited too. But you'd be taking a look upward. Hence it is easier for me to just not bill the .mq4
You can find people who seemingly believe that developers are unskilled, dime-a-dozen drones, and they should post all of their work free of charge; and that the planet - and also the Foreign Exchange markets - owe them a living. To anyone reading this that thinks that way, please excuse me if I beg to differ. Https://www.nigeriaforextrading.com/attachments/1525075564.png
No wrath, just stating my opinion. Then so be it, if I am made a selfish, conceited, grumpy old guy by having an opinion.
It has been some time, at the risk of incuring your wrath....would it not be easier for all concerned if you posted the mql4 version!
If it is available....where do I purchase it?
--End Quote--
I am sorry, but the source code is not accessible.

A friend was kind enough to provide it for me....he says the new safety (new to him) was fantastic fun

pablolmga
11-25-2021 20:45, 08:45 PM
It might seem that both other articles you have made in reply to mine, have not been set on the forum...I wonder why. Do you suppose it could be due to you astounding conceit, your gross arrogance....or perhaps your childish petulance? Could be any of them, or all three. You all them. I've your indior, thank you. It's working fine, although it took some time. It's really not worthwhile, although I really could, I guess, place it on ebay.
Good bye 'anover, g'bye Nigeriaforextrading

I believe I may as well include your two replies to a very simple request... ????? https://www.nigeriaforextrading.com/attachments/1525075564.pnghttps://www.nigeriaforextrading.com/attachments/1525075564.png

emlxekio
11-25-2021 22:06, 10:06 PM
My idea like this:

http://www.freeimagehosting.net/ik93y
http://www.freeimagehosting.net/mukqi
http://www.freeimagehosting.net/4qo4b
http://www.freeimagehosting.net/c8rnb
http://www.freeimagehosting.net/y1cyk

want your support for construct this indi/code
Thank you very much

mmp95
11-25-2021 23:26, 11:26 PM
Hi Hanover

Just wanted to post to say a huge thank you with this super indior.I have used 4 instances of it to eventually subdivide each thousand pips to 125pip segments using repeated and recognizable different horizontal lines.
One little question - is it possible to use a three digit custom color eg 100,100,111 as a variation on grey. Whenever I try entering any combination of digits I end up using darker shades of a red/brown or lighter. No worries if this isn't a feature I prefer to mute a few of the colors.

Thank you again.

pablolmga
11-26-2021 00:47, 12:47 AM
Hi Hanover

Just wanted to post to say a huge thank you with this superb indior.I have used 4 instances of it to finally subdivide every thousand pips into 125pip sections using repeated and familiar distinct horizontal lines.
One little question - is it possible to use a three digit custom colour eg 100,100,111 as a variation on gray. Whenever I try entering any combination of digits I wind up with darker shades of a red/brown or lighter. No worries if this is not a feature I just prefer to mute a few of the colors that are available.

Thank you again. Ginogee,

Welcome to the forum, and thanks to your comments.

I just saw your post now. I am afraid I don't visit this part of the forum as often as I used to, after obtaining abuse such as I obtained from the hothead in post.

To answer your question: You can enter custom colors in the shape RxxxGxxxBxxx, in which the x's represent numerical values to the Red, Green and Blue ordinates. The arrangement is lenient: as an instance, b60r60 would place blue=60, crimson=600. Please feel welcome to experimentation.

David

MM3
11-26-2021 02:08, 02:08 AM
Hi Hanover
Many thanks, have now managed to ster the traces in my charts.

Cheers

Gavigmm21
11-26-2021 03:29, 03:29 AM
I'm a huge fan of this indior... thanks for posting it. I've a preset file for every single pair so only must tell it that preset file to check at, which got me to thinking about a mod:

when we were able to make the preset name NULL.txt then possess the indior assign the profile title depending on what chart the indior was connected to, so when attached to EURUSD it would search for preset file EURUSD.txt. I attached to some GBPUSD chart, it would try to find the preset GBPUSD.txt etc

this manner it would automatically put the right support and resistance onto the right chart whenever a new chart profile was loaded.

regards

MJL

PS. Please do not allow the trolls get to you. There are infinitely more individuals who gratefully appreciate your campaign than you will find flamers and trolls. I know I really do.

pablolmga
11-26-2021 04:49, 04:49 AM
I'm a huge fan of this indior... thanks for posting it. I've a preset file for every pair so only must tell it that preset file to look at, which got me to thinking of a mod:

when we could create the preset name NULL.txt then possess the indior assign the preset name depending on what chart the indior was connected to, so when attached to EURUSD it'd look for preset file EURUSD.txt. I attached into a GBPUSD chart, it'd try to find the preset GBPUSD.txt etc

this manner, it would automatically place the right support and resistance... MJL,

Try the attached. Leaving ParameterFile = %SYMBOL% will look for p-file called Presets--Spaced Lines.EURUSD if connected to EU chart, Presets--Spaced Lines.USDJPY if connected to UJ chart, respectively

Have not done any testing, will leave that to you. Spelling and punctuation of file names needs to be 100% right in order for it to operate.

David
https://www.nigeriaforextrading.com/attachments/1525076612153342676.mq4

Gavigmm21
11-26-2021 06:10, 06:10 AM
Oh wow... Amazing! Thank you!! I'll get testing over the weekend!
Warm regards
MJL

Gavigmm21
11-26-2021 07:31, 07:31 AM
David, I really hope posting the code was intentional? If it wasn't just allow me to know and I'll delete this part of the post once the code has been eliminated by you.

It did enable me to alter the code to get it to work with my setup however, for some reason I always needed to put EURUSD.txt as the PresetFile therefore I changed this line in order to get it to work for me:

FileName = Presets--Spaced Lines. ParameterFile . Txt;

having the mq4 though also showed me just how much trouble you had gone to to impliment my petition, for which I'm truley grateful. Time is the most valuable comodity in the world, so thank you for being so generous with yours.

Kind regards

MJL

pablolmga
11-26-2021 08:52, 08:52 AM
David, I truly hope posting the mq4 code was deliberate? If it wasn't just allow me to know and I'll delete this part of the post as soon as you've removed the code.

It did enable me to modify the code to get it to work with my setup though, for some reason I always wanted to place EURUSD.txt as the PresetFile so I changed that line in order to get it to work for me:

FileName = Presets--Spaced Lines. ParameterFile . Txt;

with the mq4 though also showed me just how much trouble you had gone to to impliment my petition, for which I am truley grateful.... Posting the source code was deliberate.

I am trying to cut my time down in Platform Tech. I'm making source code available.

.mq4 source for each my own indys can now be found here. I encourage everybody to create whatever mods they want. These are available take it or leave it ; use at your own risk foundation.

balelisila
11-26-2021 10:13, 10:13 AM
Hi Hanover, Just to show my appreciation. They are very great, wonderful, amazing and I have been following your threads, I really don't know how to describe it. Though I began learning mql4 programing, how I wish I can be like you, lol. I'm happier if any additional resources which can hasten my learning. You're a teacher and a programer. Thanks once again.

Usman

fmipk
11-26-2021 11:33, 11:33 AM
quote MJL, Try the attached. Leaving ParameterFile = %SYMBOL% will search for p-file called Presets--Spaced Lines.EURUSD if attached to EU chart, Presets--Spaced Lines.USDJPY if attached to UJ chart, etc Haven't done any testing, will leave that for you. Punctuation and spelling of document names must be 100% right in order for it to work. David document Hi, you clearly understand what you're talking about when it comes to coding EA's. I would really like to understand how to create Expert Advisors for myself, but I have no idea. Can you suggest a fantastic place to get started? A book, course, or series of video's that covers the fundamentals?
Regards

pablolmga
11-26-2021 12:54, 12:54 PM
quote Hello, you clearly know what you are talking about when it comes to programming EA's. I would love to learn how to make Expert Advisors for myself personally, but I don't have any clue. Could you possibly suggest a good place to get started? Perhaps a book, course, or series of video's that covers the basics? Regards Hello,

You could perhaps start with some of Jim Dandy's videos http://www.jimdandyforex.com/lessonvideo-links/.

Here are some old links from my archives, not certain how many of them exist:
https://www.nigeriaforextrading.com/trading-system-and-egies/218-mans-super-simple-system.html (zip files with full tutorials)
http://www.metatrader.info/node/34
http://articles.mql4.com/404
http://articles.mql4.com/417
http://articles.mql4.com/466
http://articles.mql4.com/516
http://articles.mql4.com/536
http://book.mql4.com/
http://docs.mql4.com/ (MQL4 reference guide)
https://www.nigeriaforextrading.com/bitcoin-talk-and-cryptocurrencies/243-prorealtime-drawing-indior.html

N.B. However, with respect to all the above, I expect that this material applies to MT4 builds 509 and earlier (the MQL4 programming language has been overhauled in construct 600, persuading me to stop using MT4). Nonetheless, lots of the fundamental principles might still hold great.

David

vifom
11-26-2021 14:15, 02:15 PM
Hanover,
Could I give the Start Price lineup another color and depth?
Among the best indiors, I truly love using it.

Roy

pablolmga
11-26-2021 15:36, 03:36 PM
Could I provide the Start Price lineup a different color and depth? Roy,

Yes, you can. The Start Price is the one where PriceLevels = 0 in the listing or entrieschange the matching entry in LineColors and LineStyles . Maybe best explained view the screenshot below. Hope that makes sense. Directions in post #1.

Glad you enjoy the indior. The latest version can be found here.

David
https://www.nigeriaforextrading.com/attachments/15250766252009186237.jpg

vifom
11-26-2021 16:56, 04:56 PM
David,
Thanks very much, worked just like I wanted it.

Roy