| / | Forum |
|
MrH
2008.01.25 16:36
how would you code a chart that is based on pips and not on time, but on pips: a candle closes when you've had 10 pips up or 10 pips down. So candles(/bars) are based on price and not on time. Doesn't seem like a simple coding thing so any help would be much appreciated |
|
Second Week's Top-Ten Statistics of ATC 2008 A small statistical report of the top ten Expert Advisors of the previous week. |
|
phy
2008.01.25 20:11
Can be done, not particularly easy... Here is a sample of the result yo can obtain. The first chart: The feed is from an external source, and C++ code writes a history files with bars
of 5 tick height. The typical MT4 dealer gives you a filtered feed, usually only a few ticks per minute.
This source updates These "offline" the charts are updated almost realtime, a fraction of
a second delay from tick arrival to history It became very disk intensive, I was collecting ticks on 29 pairs, writing to 7
history files for each pair. Eventually
Here, several charts: 13 ticks per bar, 233, 1 minute along the top, and 55 tick, and one second bid-ask range on the bottom.
The clues necessary to accomplish this sort of thing can be found in the "Period Converter Optimized" on this website. |
|
devilian1899
2008.01.25 21:47
Hello Phy, That's excellent! mind to share your external datafeed?
|
|
MrH
2008.01.25 23:20
thx phy Looks really impressive what you've done. I guess I got some coding to do to get where you're at. How long did it take you to do this? |
|
phy
2008.01.25 23:38
The feed is www.mbtrading.com/fx true ecn/stp style broker. I modified one of the code samples in their SDK to capture the quotes and create hst files It took a couple of weeks to get it going. haven't messed with it recently. |
|
Timir
2008.02.06 12:25
phy wrote: The feed is www.mbtrading.com/fx true ecn/stp style broker. I modified one of the code samples in their SDK to capture the quotes and create It took a couple of weeks to get it going. haven't messed with it recently. Hello Phy, that is a great idea! Do you mind to share some of your code (hst files creation)? |
33780 |
Rosh
2008.02.06 12:47
Here is article Equivolume Charting Revisited also.
|
|
phy
2008.02.06 16:00
Hello Phy, that is a great idea! Do you mind to share some of your code (hst files creation)? |
|
MrH
2008.02.18 00:38
phy wrote: Hello Phy, that is a great idea! Do you mind to share some of your code (hst files creation)? Would you be interested in selling this? |
|
phy
2008.02.18 01:18
I put it on hold thinking the EFXGroup Remote Trader might render it moot, but I was not at all impressed with their effort as of the initial release. So, it is back in the active project bin. Sell, no... Rent, maybe... No one else has run it, it might not even work ! |
|
MrH
2008.03.22 18:06
Hi, just wanted to check in and show what I meant: this is a renko chart made with an MT4 script. Example is 7 pip, so every time the price has moved 7 pips in on direction, a new candle is formed, regardless of time. By the way, I also included a small indicator to calculate the 'trending' behaviour of this kind of chart: if you use the simple rule of buying when a green candle closes, and selling when a red candle closes, you have over 69 % winners, with an equal payoff/loss of 7 pips. Imagine walking into a casino where all the roulette wheels don't have double 0's, and all wheels have 25 red boxes and only 11 green ones. This is it:
|