Recent Strength indicator -
... 3 43 51 52 53 54 55 63 ...

thread: Recent Strength indicator

  1. #521
    Senior Member Tataylo's Avatar
    435
    quote Good day, Sir. ....
    I am sorry, but I am currently busy with different projects, and I like to use my own code, as I occasionally find code written by other developers difficult to decipher. Why don't you post your own request on one of those'I code your own indiors for' threads, that can be seen by many developers? Hopefully somebody will have the ability to assist you.

  2. #522
    Senior Member Tataylo's Avatar
    435
    JumpJack attracted my attention to the http://www.forextradermark.com/apoll...rength-indior/. It uses RSI rather than price/momentum as the calculation for the plots. I guess an oscillator-based calculation might be more useful for choosing possible reversals based on overbought/oversold. If I get some spare time, then I will bravely reevaluate the monster I've created, i.e. attempt to bring a'calculation kind' alternative to Recent Power.
    OVERVIEW

    I attempted to alter Recent Power, but reached the conclusion that the calculation was too distinct to readily adapt an oscillator-based strength meter. Hence I have written a new indior, Recent Oscillator Power ('ROS'), as a companion to Recent Power (see the screenshot below). ROS's calculation is currently based on Stochastic, however I will rescale its plot at the next version, allowing RSI and CCI .

    ROS is easier to set up and use; there aren't any parameter files to be assembled. Just join the indy for your chart, and wait maybe 10-20 minutes while MT4 collects enough data from the br0ker to build the plots.

    ROS simply averages out the Stochastic values for each pair referenced by a currency, and plots this average. As an instance, the GBP plot is the average stochastic value of GBPUSD, GBPJPY, GBPCHF, and so on.... Whatever GBP pairs are all provided by your br0ker. [Note: in the case of EURGBP, i.e. where the currency is the next listed from the pair, the reverse value (100#8211;X) can be used in the averaging process]. And the same process is used for each of the other currencies. Hence you can see to what extent a currency is overbought/oversold'across the board'. As with regular stochastic, being overbought/oversold does not necessarily mean that a change is imminent; if a pair trends strongly for long , oscillators tend to simply stay in either the upper or bottom area of the chart. But ROS may be useful if it confirms other motives for reversals, e.g. support/resistance.


    INSTALLATION

    Duplicate the .ex4 file to your...(MT4)/ / experts/indiors folder, and then restart MT4.


    PARAMETERS

    SymbolSuffix
    Enter m if your br0ker's symbols read like EURUSDm, GBPUSDm, Etc. [Note: the currencies are hard-coded as AUD, CAD, CHF, EUR, GBP, JPY, NZD and USD. MT4 contains 8 data buffers, permitting these 8 currencies to be plotted].

    TimeFrames
    Enter the timeframes that you want to be plotted, separated by commas.

    NumPoints
    Enter the amount of data points (stochastic values) you'd like plotted for every period.

    OscillatorSettings
    Things should be separated by commas. The first item must be'Stochastic', and also the other settings for stochastic has to be entered same arrangement as explained http://docs.mql4.com/indiors/iStochastic (%K,%D, slowing, method, price_field, mode).

    CurrencyColors
    The colors that will be used to plot AUD, CAD, CHF, EUR, GBP, JPY, NZD and USD, respectively. Eight entries separated by commas. Any valid MT4 tokens may be used, or entries like R55G200B0 (means red=55, green=200, blue=0).

    TextFont
    Font name, size and color, in that order, separated by commas. Font name has to be an Windows font.

    HorizLevels
    Multiple entries separated by commas, that define where you'd prefer any flat levels to be plotted:
    -- First entry is the color of the levels (works exactly the same as CurrencyColors)
    -- Secondly entry is the width of the lines
    -- Third entry is the lines design (0=solid, 1=dashed, two =dotted sensibly )
    -- The remaining entries are the amount values themselves

    RefreshPeriod
    How frequently you want the indior to recalculate and replot:
    T=each new price tick, M1=at the start of each new 1 minute candle, M5=at the start of each new 5 minutes candle, etc

    OutputFile
    Leave blank if you don't want to have an output file; otherwise enter a file name, in which case all values plotted are also output to a text file of that name, which is generated on your.../(MT4)/experts/files folder. The file could be read by means of an EA, and its own data utilized to make trading decisions.

    SummarySpacing
    The'Trend Summary' attribute (at the left of this plot) is allowed if you put SummarySpacing to a value gt; 0and therefore are displaying all TimeFrames. The summary plots all of the final (rightmost) values for every TF as a line chart, allowing you to quickly view which currencies are overbought across many TFs (coloured line is above the midpoint in consecutive TFs) or so are becoming more overbought (coloured line slopes upwards ). Vice versa for oversoldness.


    TERMS AND CONDITIONS

    Please note that all code in this thread is provided at no cost. Therefore the following requirements apply:

    1. You agree that, should you download and use the code, it is completely AT YOUR OWN RISK. I offer NO guarantee regarding the accuracy or completeness of this code, or that is free from error. I take NO LIABILITY for any financial losses or computer harm, caused by either the correct or incorrect use of this code.

    2. Feel welcome to share the indior openly. You may NOT sell, or distribute, any part of the code commercially, without my prior approval.

    3. The code may not run properly on Windows 7, Windows 8 or Vista, probably for the reasons given http://4xtrader.net/how-to-run-metat...ws-7-or-vista/.

    4. I'm sorry, but because of my current work commnts, I am no more modifying code to match people#8217;s requirements, nor submitting answers to each individual question in this thread. (If you can#8217;t receive the code to do everything you want, you#8217;ll have to locate another indior).

    5. Source code (.mq4 file) is unavailable.

    https://www.cliqforex.com/attachment...7462188331.ex4

  3. #523
    Junior Member gery115's Avatar
    21
    hi David,
    after installing all necessary files, my indior still appears similar to this. .
    Thanks, Hukam

    --
    got soloution:--
    if someone have similar problem please put in https://www.cliqforex.com/trading-sy...itulation.html fornts on your computer.
    This indior is working perfectly in XP, Window 7, Window 8
    thanks David for all your shared work.
    Regards
    Hukam

  4. #524
    Hi David, the CSM isn't drawing properly. Any thoughts?

  5. #525
    Senior Member Tataylo's Avatar
    435
    Hi David, the CSM is not drawing properly. Some ideas? image
    Perhaps you have attempted Hukam's solution in post #547?

    The same indior works good for me (see screenshot in place #541). The bars on the histogram have been created by taking a series of'I' characters (e.g. IIIIIIIII) from the Placard MT Condensed font and rotating them 270°. Your br0ker has some restrictions on fonts or text in MT4?

    Beyond this, rebooting your computer and restarting MT4 might help, although I am clutching at straws.

    @hukam: many thanks for the information.

  6. #526
    Installing the ribbon did the trick! So sorry to disturb you with this!

  7. #527
    Senior Member Tataylo's Avatar
    435
    installing the ribbon did the trick! So sorry to disturb you with this!
    No issue, I am glad that it is working OK for you now.

  8. #528
    I am using the external data in Excel. I'm having trouble running lookup purposes (MATCH, in particular) with this data. I guess the data is'dirty' ie. Non-printing personalities, extra spaces, etc., . each area. If so, is it possible to separate the data by a comma?

    Also, how often does the CSV file get written?

  9. #529
    Senior Member Tataylo's Avatar
    435
    hi again, I am using the external information in Excel. I'm having difficulty conducting research functions (MATCH, in particular) on this information. I guess the information is'filthy' ie. Non-printing characters, extra spaces, etc., . every area. If so, can it be possible to separate the information by a comma? Also, how frequently does the CSV file get written?
    Assuming you are referring to the'CSM original' indy:

    The single characters apart from the commas are distances, and also the business standard CR/LF in the end of every line. I simply double click the CSM.CSV file that is generated, and it loads straight into Excel, in the format shown in the screenshot (no need to run Info. . .Text to Columns...). I have never used Excel's MATCH function, so I am afraid I can't assist with that.

    The CSV file output frequency is decided by the RefreshPeriod setting. M1 means the document is output on the first tick of every new M1 candle, M5 on the first tick of every M5 candle etc.. An entry of T signifies output signal occurs on every new tick. In most cases the document is overwritten with the new info. Then there could be file locking issues if the document is open in both Excel and MT4.

  10. #530
    david, I am referring to the ROS indi not CSM (but I see a similar dilemma with your spreadsheet previously ). See import data dialogue box screenshot below. Note the spaces before and after the amounts, and the added spaces before each currency name.

    I believe the information can be washed up in excel but I am not having any luck just yet. If the values were separated by commas with no characters it would be easier.

    Note that I am performing a'Get External Data'' From Text' in order to bring on your information to an existing excel sheet, then do it update automatically (excel grabs the new data from the document automatcally) and thus ongoing calculations can be made without manually importing the document into excel. This is a much more powerful way to use your information in excel vs. only launching the CSV manually in excel and I recommend you try it. Excel Data menu Get External Data From Text

    cheers
    markers

  •