• Home
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • User/Email: Password:
  • 3:45am
Menu
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • 3:45am
Sister Sites
  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Options

Bookmark Thread

First Page First Unread Last Page Last Post

Print Thread

Similar Threads

Free Coding request for EA breakdown level / trend line 0 replies

Free Coding: your systems 24 replies

Free Coding Request 2 replies

I Will Learn Coding in 1 Month - Give me the 80/20 of MT4 Coding 14 replies

Free Coding Request 0 replies

  • Platform Tech
  • /
  • Reply to Thread
  • Subscribe
  • 416
Attachments: Free Coding request
Exit Attachments
Tags: Free Coding request
Cancel

Free Coding request

  • Last Post
  •  
  • 1 56Page 789 32
  • 1 6Page 78 32
  •  
  • Post #121
  • Quote
  • Sep 16, 2016 3:20am Sep 16, 2016 3:20am
  •  Hmsr
  • | Joined May 2016 | Status: Member | 322 Posts
Clarified! Thanks, it only counts for data currently open on screen, if you want to count more scroll left load earlier pages and reopen the indicator. Done
HMSR
 
 
  • Post #122
  • Quote
  • Sep 16, 2016 3:24am Sep 16, 2016 3:24am
  •  thomasmore
  • | Joined May 2009 | Status: Veni, Vidi, Pipsi | 91 Posts | Online Now
Quoting Gorraf
Disliked
{quote} Hello ludo_willems! I don't think solving your request would be an issue, but could you clarify it for me, when exactly do you want your computer to play Sabotage from the Beastie Boys for you? Thaks Gorraf
Ignored
Oeps! forgot something.... I would like the alert triggered on the crossover of the Fast and Slow TMA-values (see user inputs). And please, let the alert sound also be user selectable, because I am not shure that at my age of 68 I would survive The Beasty Boys
Thanks and best regards,
Ludo
Attached File(s)
File Type: mq4 Hurst Target.mq4   9 KB | 207 downloads
 
 
  • Post #123
  • Quote
  • Sep 16, 2016 3:44am Sep 16, 2016 3:44am
  •  cbezuid
  • | Joined Sep 2016 | Status: Member | 6 Posts
Can some one pls help me wiht a code in MQ4...It is just a arrow indicator showing a retracement bar that retrace more than 45%...on the top or bottom...waw..the wick(tail) must be longer than 45% retrace froom where it began.
 
 
  • Post #124
  • Quote
  • Sep 16, 2016 3:54am Sep 16, 2016 3:54am
  •  Gorraf
  • Joined Aug 2016 | Status: Member | 125 Posts
Quoting Hmsr
Disliked
Clarified! Thanks, it only counts for data currently open on screen, if you want to count more scroll left load earlier pages and reopen the indicator. Done
Ignored
Scrolling won't change the window of analysis.

What I meant is:
Tools (from the header of MT4) > Charts > Max bars in charts
 
 
  • Post #125
  • Quote
  • Sep 16, 2016 6:16am Sep 16, 2016 6:16am
  •  Gorraf
  • Joined Aug 2016 | Status: Member | 125 Posts
Quoting simnz
Disliked
Hi Gorraf, The speed candles coded by you has identified 88 occurrences of 40 pips in 1 minute for GBPJPY during last 3 months. Attached is the screenshot of partial table and the chart. {image} The latest one of 40 pips+ happened yesterday during news event. Seeing this, I am hopeful that EA if modified will work . {image}
Ignored
Hello simnz!

I have modified both of the speed candle indicators.

Please run a few test with them.

My account at oanda goes back only to 2016.08.18 on the 1M chart. If you can find relevant data, which the indicator misses out from that starting time to today, I would be grateful if you would share that with me. The more recent, the better.
Attached File(s)
File Type: ex4 ProblemSolving_simnz_SpeedCandles_1M_ind.ex4   19 KB | 139 downloads
File Type: ex4 ProblemSolving_simnz_SpeedCandles_ind.ex4   60 KB | 148 downloads
 
 
  • Post #126
  • Quote
  • Sep 16, 2016 7:41am Sep 16, 2016 7:41am
  •  Gorraf
  • Joined Aug 2016 | Status: Member | 125 Posts
Quoting cbezuid
Disliked
Can some one pls help me wiht a code in MQ4...It is just a arrow indicator showing a retracement bar that retrace more than 45%...on the top or bottom...waw..the wick(tail) must be longer than 45% retrace froom where it began.
Ignored
Hello cbezuid!

I have attached an indicator, check wether it is what you wanted or not.

Gorraf
Attached File(s)
File Type: ex4 ProblemSolving_cbezuid-160916_ind.ex4   7 KB | 157 downloads
 
 
  • Post #127
  • Quote
  • Sep 16, 2016 9:13am Sep 16, 2016 9:13am
  •  simnz
  • Joined Nov 2015 | Status: Member | 2,523 Posts
Quoting Gorraf
Disliked
{quote} Hello simnz! I have modified both of the speed candle indicators. Please run a few test with them. My account at oanda goes back only to 2016.08.18 on the 1M chart. If you can find relevant data, which the indicator misses out from that starting time to today, I would be grateful if you would share that with me. The more recent, the better. {file} {file}
Ignored
Hi Gorraf,

I was facing the same problem of getting restricted historical data on Oanda. I selected maximum data from the options, tools and could get quite a lot of data.
Oanda, being one of the oldest fx retail brokers, is a good source of free fx data. But if someone makes a script to make MT4 import data fields compatible
with those of Oanda format, it can be done far quickly than using maximum bars in the chart. I have 1000 mb connection and yet it took a lot of waiting time
for me to get the maximum bars downloaded on to the chart.

Oanda is encouraging the use of their API. Possibly if you can create a pipe to connect MT4 with their API to download historical data, it might be far easier to
keep historical data updated. The details are on their site for developers of their proprietary format mt4fxlabs. Unfortunately, I don't know anything about coding or Excel. I am only a trader.

Attached is the pdf of about 300 occurrences of 50 pips in 1 minute in roughly 9 months time of 2016.

If you can compile distribution of the occurrences in the existing csv file creating a graph of 15 minutes/30 m for each day of occurrence (96 columns or 48 ) we can be in a better position to locate probable hours for EA to act. Similarly a distribution database of HMSR pattern occurrences will be helpful.

You have created two wonderful scanning tools. Now we have to locate patterns by working on the data by trial and error method.

I am quite confident a properly-coded EA can get at least 20 pips a day for GBPJPY. I have not traded any other currencies and have treated GBPJPY like a pet and it has obliged a retiree with some regular income. Presently I am using retracement /pullback backed by currency strength with a hit-and-run-or-miss approach. I hope with your brilliant coding skills the strike rate can be bettered.
Attached File(s)
File Type: pdf 300 occurences since 1st jan 2016 for 50 pips 1 minute threshold.pdf   49 KB | 183 downloads
Practice makes a person perfect
 
 
  • Post #128
  • Quote
  • Sep 16, 2016 10:29am Sep 16, 2016 10:29am
  •  simnz
  • Joined Nov 2015 | Status: Member | 2,523 Posts
Quoting Gorraf
Disliked
{quote} Hello simnz! I have modified both of the speed candle indicators. Please run a few test with them. My account at oanda goes back only to 2016.08.18 on the 1M chart. If you can find relevant data, which the indicator misses out from that starting time to today, I would be grateful if you would share that with me. The more recent, the better. {file} {file}
Ignored
Hi Gorraf,

What modifications have you done? If I know I will keep that in my mind while testing it.

Can we have a few more inputs which can operate independently as well as in conjunction with one or all other inputs to produce table.

For instance, an additional input can be for a pattern like uuuuudddu etc. so that we can find out a particular pattern which nets certain amount of pips or occurs number of times in certain time threshold. For example if I put 1 pip threshold, and put 5 minutes and then uuuuu or ddddd or any pattern in the new input box then I should be able to know how many such patterns have occurred in the 5 consecutive minutes of trading in the past.

The scanners are finally taking some good shape.
Practice makes a person perfect
 
 
  • Post #129
  • Quote
  • Sep 16, 2016 12:45pm Sep 16, 2016 12:45pm
  •  cityrohit
  • | Joined Apr 2015 | Status: Member | 71 Posts
i had been following this thread can this the indicator be made for all the pairs

it may show on which chart the pattern is it showing


attaching the image


can any one come up to show on which chart is making this pattern
Attached Image (click to enlarge)
Click to Enlarge

Name: Screenshot1.png
Size: 182 KB
 
 
  • Post #130
  • Quote
  • Sep 16, 2016 12:48pm Sep 16, 2016 12:48pm
  •  cityrohit
  • | Joined Apr 2015 | Status: Member | 71 Posts
there are so many charts to work on it

if we get a chance to know which chart is the pattern has come it it will work definitely.


could any body help on this
 
 
  • Post #131
  • Quote
  • Sep 16, 2016 1:09pm Sep 16, 2016 1:09pm
  •  cityrohit
  • | Joined Apr 2015 | Status: Member | 71 Posts
Attached Image (click to enlarge)
Click to Enlarge

Name: Screenshot1.png
Size: 266 KB
 
 
  • Post #132
  • Quote
  • Sep 16, 2016 11:20pm Sep 16, 2016 11:20pm
  •  Hmsr
  • | Joined May 2016 | Status: Member | 322 Posts
Lol why are you looking at my profile, I am an amateur trader that slightly breaks even from time to time. I am still learning.

Gorraf, it seems I may have a new request for you, it is similiar to the original, but it'd be better to separate it to minimize bugs. Its simply an indicator which finds suppose the top5 or top 10 permuations with the highest probability returns of atleast x(selectable) occurrences. (However long the pattern, it can be adjustable if you want it, but it doesnt matter.)The patterns can be displayed on the top left in like 5 rows, using the same format as eg (insert>text label).
Eg. Suppose I am looking at EURUSD, and I want to see the 5 highest probabilities that ever occurred. But I don't want to know the one for just one instance (ie 100%) Suppose I want the minimum occurrences to be 10. The indicator will find the patterns that occurred atleast 10 times and rank the top 5 and display them, however long the pattern is irrelevant at the moment, or if you can add an optional input for that i would be useful. Also potential to adjust the number of bars measured after the pattern aswell, eg pattern occurs, and the indicator only checks whether it was up or down after 10 bars etc.

Indicator would be useful for learning about a specific currency, eg suppose the top pattern happenned and they all happenned near a resistance line, you can be sure the next time it happens, and near a resistance line what the outcome will be .
It seems very complex, but it would be a great tool, and save time on manually entering on graphs when we can instead hunt for patterns, and too on Simnz pattern hunting potentially

If you can do it, it will be great, if not that's fine, you have already been a great help

@Simnz, i really like what you are doing so I'm going to look to contribute to your idea if I can in the coming days.
HMSR
 
 
  • Post #133
  • Quote
  • Edited 9:29am Sep 18, 2016 9:08am | Edited 9:29am
  •  Hmsr
  • | Joined May 2016 | Status: Member | 322 Posts
Hello, Simnz, do you mind explaining how the indicator works? I see green, white and red lines, I understand the red means that it finished down, green means up, but sometimes there are green or red lines by themself, but they haven't met the pip threshold.

MT4 just crashed on me while loading this indicator, there must be alot of processors involved with this indicator, mt4 has never crashed on me before.

So far it seems like most of the speed candles are closely allocated near the higher volume trading sessions. But within that period it seems sort of random as to when they may occur. have you been analyzing the patterns before the sudden moves occur? Also if you are looking for an exact time of day, when a sudden shift may occur, in terms of minutes, I find that to be extremely hard and borderline impossible since high impact news events are scheduled on a monthly basis mostly. Hence all the identified speed candles I', sure are mixed with the results of high impact news spikes. If they were somehow removed, then it would be much much more likely to detect a sudden price move within a set time.

One thing that can be seen from this indicator is that when a currency is trending, 'speed candles' only appear to occur in the direction of the trend. Hence, a confirmation of the lesson, never go against the trend, since if you are there is a higher a likelihood of speed candles stopping you out.

What do you aim to learn using this indicator? If I can understand I will help to find that too. The original indicator which Gorraf created was a great tool. Excellent to know the probabilities, but I have not found any close to certain setups using the indicator, and I am lazy hence I have not been able to use it to its full potential. Also it is less useful the more you go into the lower time frames. But forex isn't supposed to be cracked that easily. But I am sure it will aid in cracking the system.


But what I suggested in the previous post may be of aid to your speed candles idea. In that it will find the highest probability patterns, and if it also resulted in a 'speed candles' movement, you essentially have a good chance of being on the right side of the speed candles when it occurs, since you specialise in one currency hence will know what that pattern is very well.
HMSR
 
 
  • Post #134
  • Quote
  • Edited 1:55pm Sep 18, 2016 11:07am | Edited 1:55pm
  •  simnz
  • Joined Nov 2015 | Status: Member | 2,523 Posts
Quoting Hmsr
Disliked
Hello, Simnz, do you mind explaining how the indicator works? I see green, white and red lines, I understand the red means that it finished down, green means up, but sometimes there are green or red lines by themself, but they haven't met the pip threshold. MT4 just crashed on me while loading this indicator, there must be alot of processors involved with this indicator, mt4 has never crashed on me before. So far it seems like most of the speed candles are closely allocated near the higher volume trading sessions. But within that period it seems...
Ignored
Hi HMSR,

The Indicator is working good on my Oanda platform - both opening (White color) and closing red/green lines are appearing.

Speed candle will be used for Asian session where GBP JPY related news events are very few. It actually can't be considered a stand-alone indicator in real sense . It is a study tool with no predictive value. But if it is incorporated into an EA and values are input by the trader then it can be used as indicator.

Fx trading is serious business and quite lucrative at that. We have to find probabilities and patterns. One has to find a method in random trading madness. Gorraf has coded the excellent Speeds Candle tool to tabulate the occurrences, start and ending times.

What this study tool does is establishes the possibility of making 40 pips in a minute if you are right about your selection of time. Let us add another possibility of making 40 pips in a minute by using an "up or down" pattern as well. The pattern idea is yours and hope you will give some time to improve it to fit in with an EA use.

Why such sudden burst of momentum mostly in Asian session only? Well, the intention of the market makers is to make the Asian market active. This is a typical characteristic of Asian session. We have to find such times by doing our research. The job is to zero in on the probable hours of Asian Hours as well as post-London dull hours when market makers want to make a wakeup call. An EA will zero in on the trades by using probable times and/or patterns. The well-known and very frequent period of market gaining sudden momentum is closing hours of London fx hours. US also might be having such hours. I have never traded in US hours.

Regarding the HMSR tool developed by Gorraf, the idea is to find out the frequency of occurrences of maximum 5 patterns restricted to to 4,5,6,7 and 8 Us and Ds during seconds time or on tick basis and tabulate their distribution within 1m time threshold. If the indicator is modified to tabulate (very similar to the speed tool) the start and closing times of these patterns happening, we will be in a position to include this as another condition for EA trading. Which one to select 4, 5, 6, 7 and 8 will be decided by the user after knowing the frequencies of their occurrences and studying the link between the timing of the speed candle and the pattern. Even if either of the timing or pattern inputted EA gets two trades of 40 pips in a week, the reward is worth the labour put in for the study.
Practice makes a person perfect
 
 
  • Post #135
  • Quote
  • Edited 7:54am Sep 19, 2016 1:58am | Edited 7:54am
  •  Hmsr
  • | Joined May 2016 | Status: Member | 322 Posts
What you are trying to achieve is a monstrous task.

Chances are, you will not find any solid patterns for a while and even if you do, that they will not occur or may become invalid after a while. Hence the work for the result does not appear beneficial. But I've been trading for much shorter than you

Through using the indicator for permutation patterns, I can say that most of the probabilities especially on the lower time frames tend to cluster towards 40-60 percent. I guess it is why in the short run the currencies remain stable. Hence I have only found this indicator useful for analyzing higher time frame patterns, I think it is irrelevant for 1 minute time frames. While I find the pattern before the speed candles irrelevant, I think that the time of the speed candles is relevant. Perhaps, Gorraf could create a bipolar bar chart of the occurrences of these speed candles by time, with 5 minute increments (rounding the start time of the speed candles) limited to the times between the Asian session.

-Sorry I can't help my trading in general revolves around atleast the 1hr timeframes
HMSR
 
 
  • Post #136
  • Quote
  • Sep 19, 2016 5:16am Sep 19, 2016 5:16am
  •  Gorraf
  • Joined Aug 2016 | Status: Member | 125 Posts
Quoting Gorraf
Disliked
{quote} Hello cbezuid! I have attached an indicator, check wether it is what you wanted or not. Gorraf {file}
Ignored
As requested in the PM.
Attached File(s)
File Type: mq4 ProblemSolving_cbezuid-160916_ind.mq4   2 KB | 190 downloads
 
 
  • Post #137
  • Quote
  • Edited 6:29am Sep 19, 2016 6:07am | Edited 6:29am
  •  Gorraf
  • Joined Aug 2016 | Status: Member | 125 Posts
simnz

Regarding post #127

I could write some functions in excel, however the pattern searching would be an interesting process.

It wouldn't be impossible, but it surely would be a pretty interesting task. Although, writing a function in excel might only work on the worksheet it is coded to, and simply inserting, another set of input data to the cells, to analyze different currency pairs might not be a good solution, so I fear, this might be a dead end. I will look into the matter.

Regarding post #128

I have modified the part, where the indicator analyzes single bar occurrences, and the part where the indicator does not recount already counted past occurrences.


cityrohit

Regarding post #129-131
This is valid observation, Thank you. I didn't thought of that, as I presumed, that the tool will be only for analyzation, not for alerting. I have modified the indicator, and attached it to the post.

Hmsr
Regarding post #132
This is a pretty interesting idea. I will look into it.
Attached File(s)
File Type: ex4 ProblemSolving_Hmsr_160804_ind.ex4   26 KB | 182 downloads
 
 
  • Post #138
  • Quote
  • Sep 19, 2016 9:09am Sep 19, 2016 9:09am
  •  simnz
  • Joined Nov 2015 | Status: Member | 2,523 Posts
Quoting Gorraf
Disliked
simnz Regarding post #127 I could write some functions in excel, however the pattern searching would be an interesting process. It wouldn't be impossible, but it surely would be a pretty interesting task. Although, writing a function in excel might only work on the worksheet it is coded to, and simply inserting, another set of input data to the cells, to analyze different currency pairs might not be a good solution, so I fear, this might be a dead end. I will look into the matter. {file}
Ignored
Hi Gorraf,

Thank you for your response. I am glad you like the idea of searching pattern. You understand the technicalities of coding well.

(a) 00:00 time linked to local PC time : With the ability to print vertical at least six timelines with text to print for both the M1 and bars indicators. Let the user calculate manually which hours he wants to look for. The intention is to put a few probable spots where the sudden burst of movements happens like opening, middle and closing sessions. It is like finding hot spots where the probable movements might happen.

(b) inputs for making all lines thicker and with different colors for start and closing time lines for both the indicators.

(c) Just for M1 indicator , as a test case, please insert an input to search just two patterns: UUUUUUU and DDDDDDD - 7 times to do some initial pattern finding and incorporate the occurrence in the existing table. It should operate in conjunction with time threshold only and print the kind of boxes your Hmsr indicator is printing on the chart.
Practice makes a person perfect
 
 
  • Post #139
  • Quote
  • Edited Sep 20, 2016 12:06am Sep 19, 2016 2:15pm | Edited Sep 20, 2016 12:06am
  •  thomasmore
  • | Joined May 2009 | Status: Veni, Vidi, Pipsi | 91 Posts | Online Now
Quoting ludo willems
Disliked
{quote} Oeps! forgot something.... I would like the alert triggered on the crossover of the Fast and Slow TMA-values (see user inputs). And please, let the alert sound also be user selectable, because I am not shure that at my age of 68 I would survive The Beasty Boys Thanks and best regards, Ludo {file}
Ignored
Gorraf,
You are a busy man and your efforts are highly appreciated. I would be grateful if you could find some time to check my request.
Best regards,
Ludo
Attached File(s)
File Type: mq4 Hurst Target.mq4   9 KB | 192 downloads
 
 
  • Post #140
  • Quote
  • Sep 20, 2016 4:53am Sep 20, 2016 4:53am
  •  Gorraf
  • Joined Aug 2016 | Status: Member | 125 Posts
Quoting ludo willems
Disliked
{quote} Gorraf, You are a busy man and your efforts are highly appreciated. I would be grateful if you could find some time to check my request. Best regards, Ludo {file}
Ignored
Hello ludo_willems!

I might have skipped your answer by accident. Sorry about that.

I have modified your indicator.
By default, it will play MT4's default alert.wav, but you can change that by placing any other wav file into the ...\MetaTrader 4\Sound\ directory and rewriting the name in the indicator, under wav.

The sound and the alert will only work if the "show_crossover switch" is turned to "true" in the indicator.

(I had it run on the 1M chart, to test it, and the messages, sound came throught, but I didn't see the crossover lines, which I didn't touch.)

Gorraf
Attached File(s)
File Type: mq4 Hurst Target-1.mq4   9 KB | 193 downloads
 
 
  • Platform Tech
  • /
  • Free Coding request
  • Reply to Thread
    • 1 56Page 789 32
    • 1 6Page 78 32
0 traders viewing now
  • More
Top of Page
  • Facebook
  • Twitter
About FF
  • Mission
  • Products
  • User Guide
  • Media Kit
  • Blog
  • Contact
FF Products
  • Forums
  • Trades
  • Calendar
  • News
  • Market
  • Brokers
  • Trade Explorer
FF Website
  • Homepage
  • Search
  • Members
  • Report a Bug
Follow FF
  • Facebook
  • Twitter

FF Sister Sites:

  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Forex Factory® is a brand of Fair Economy, Inc.

Terms of Service / ©2023