Looking for a specific setup back in time with an EA
1 2

thread: Looking for a specific setup back in time with an EA

  1. #1
    Senior Member Orduniik11's Avatar
    101

    Looking for a specific setup back in time with an EA

    I have a question about what's possible to do for MT4 using an EA or a script.

    I want to learn whether a specific installation has occurred in 2008 or for the previous 6 month and the number of times it's occurred.

    Is it feasible to collect this type of information back in time and compose them into a CSV file?

    Thank you for your answer beforehand.

  2. #2
    Scripts are for a single time tasks such as you describe. EAs are for implementing the identical thing over and over again. As you explain without copying the data to 12, I do. Rather I like to indie the charts with my results and look at them. But exporting the data is simple.

  3. #3
    Senior Member Orduniik11's Avatar
    101
    Scripts are for a single time tasks like you describe. EAs are for executing the identical thing over and over again. Without exporting the data to 12, as you describe, I frequently do. Instead I like to indie the charts with my results and examine them. But exporting the data is simple.
    Alright I'll send you some description of exactly what I want it to look for.

    Thanks!

  4. #4
    Ok I shall send you a description of exactly what I need it to search for.

    Thanks!
    Search this forum for your TotalRecall indior. It was an experiment performed by be that attempts to determine similar price patterns in the background of the pair and plot the top matching ones into indior windows.

    Perhaps this can be of some use for you, perhaps as a beginning point for further improvements or modifiions.

  5. #5
    Senior Member Orduniik11's Avatar
    101
    Search this forum to your TotalRecall indior. It was an experiment done by be that attempts to identify similar price patterns at the background of the same pair and plot the fitting ones into indior windows.

    Perhaps this is of some use for you, maybe as a starting point for further alterations or improvements.
    Thanks 7 bit.

  6. #6
    Senior Member Orduniik11's Avatar
    101
    Scripts are for one time tasks like you describe. For implementing the same thing over and over again, eAs are. Without exporting the data to 12, as you describe, I do. Instead I like to mark the charts with my outcome and examine them. But exporting the information is easy.
    Let me call the pub I#8217;m speaking about ";my pub"; to make it easier to understand and simpler for me to describe.

    #1 I would like to search for a pub (my pub) that has a lower low than the previous bar and has a down close.

    When the pub alongside ";my pub"; hit a top that's equivalent to the top of the previous bar
    of ";my pub"; and then I want it to compose date, hour, minute and pips*
    (*see more attribute) to a file I can import to Excel.

    And then I want the opposite:
    #2 I would like to search for a pub (my pub) that has a higher low than the previous bar and has a up close.

    When the pub alongside ";my pub"; hit a low that's equivalent to the low of the former bar
    of ";my pub"; and then I want it to compose date, hour, minute and pips*
    (*see more attribute) to some file I can import to Excel.

    It may be two separate scripts which create one file each or one script which may cause to separate files to Excel.

    I don#8217;t know if it#8217;s possible in scripts to produce input areas, but when it is I wish to have two input areas one for ";Date start"; and one for ";Date stop";.

    Extra feature: I wish to know how many pips I might have made taking this trade so I need it to assess the down/up trend.

    The way I see this could be done is by simply measuring the top of every pub after ";my pub"; and keep doing this until there is a lower high compared to previous bars large and the minus this in the entry price that ought to be at which they had the exact same high.

    And the opposite for #1 in this example with the low.

  7. #7
    In your description, you say that #2 is # 1's reverse, but then say that I must search for a greater low for #2 but #1 is looking for a lower low. The reverse of lower is, is that? Or is #1 supposed to be a high?

    It was easy to do and is practically complete.

  8. #8
    Senior Member Orduniik11's Avatar
    101
    Last line should've been And the reverse for #2.

    Does not it make more sense?

    Yeah easy that you cause you Understand How to code this ;-)

  9. #9
    I am going to assume that the script should look for lower lows and higher highs. Allow me to know if that isn't right.

    For verifying my results, I marked the chart with arrows. I am going to leave this logic intact in the script. If you want to turn it off, change this line from true to false and recompile. I believe that you will want to maintain the arrows annotating once you see how effective they are.

    Extern bool showArrows = true;

    If you have any other programming requests related to this, let me know. You can take advantage of this forum or PM me.
    https://www.cliqforex.com/attachment...6304646895.mq4

  10. #10
    Senior Member Orduniik11's Avatar
    101
    I will assume that the script should search for lower lows and higher highs. Allow me to know if this is wrong.

    For verifying my results, I marked the chart with arrows. I will depart this logic intact from the script. If you would like to turn it off, change this line from true to false and recompile. I think you will want to maintain the arrows annotating once you see how successful they are.

    Extern bool showArrows = true;

    If you've any other programming requests related to this, let me know. You are able to use this forum or PM me.
    CodeMeister I'm really happy that you want to code this for us. Thanks!

    Sorry it me. Let us try again.

    #1 : my bar ought to get a lower high than the preceding bar and
    #2 : my bar ought to get a greater low than the last bar.

    Can I need to copy it to the experts folder and then drag it on a chart to begin it ?

  •