Spaced Lines (v 3.0) indior thread
Page 1 of 614 123 ... LastLast
Results 1 to 10 of 35

Thread: Spaced Lines (v 3.0) indior thread

  1. #1
    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/...8427438379.ex4
    https://www.nigeriaforextrading.com/...teresting.html

  2. #2
    Quote Originally Posted by ;
    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

  3. #3

  4. #4
    Thanks for your generosity and incredible effort....this may be worth a lot to me and several more.

  5. #5

  6. #6
    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.

  7. #7
    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.

  8. #8
    Quote Originally Posted by ;
    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.

  9. #9
    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/...2184224543.mq4
    https://www.nigeriaforextrading.com/...4885278217.mq4

  10. #10
    Quote Originally Posted by ;
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
This website uses cookies
We use cookies to store session information to facilitate remembering your login information, to allow you to save website preferences, to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners.