Forum Replies Created
- AuthorPosts
This reply has been reported for inappropriate content.
the only thing i found useful in the sim thread was that it makes you look at price action around inefficient market moves. this put me on the path of Order Flow. I just want to be sitting in a pile of imbalanced orders regardless of what various stats or indicators say about the next bar because it’s the imbalanced orders that move price not the indicator or stats :) this can end up being the most important thing you can pay attention to.
Hi Lowphat,
Could you please explain more about imbalance ? I still can not find any clue how to get it. i believe it will appear before gap, and some one talked about same strength of supply/demand (lets say buy and sell strength are almost always in balance on EU) or similar to Bull/Bear. But how to explore this ?
Tom.Attachments:
You must be logged in to view attached files.This reply has been reported for inappropriate content.
You’re good, @flx23. The main assumption of the theorem was that prize is generated by a stochastic process that gives equal chances for any candle to be either an up or down candle (or having higher highs/lows than the previous candle). However, in his post (see the delivered quotation here) Eurusdd presumes that the probability is shifted whenever two out of the four conditions aren’t met. But indeed, the probability for the last of five values (where the first four have been realized) is still 0.5. Thus. prize will do what it wants to do. However, if you go through the prize history and analyze each chunk of 5 candles in regards to OHLC, then you’ll see that about 93.75 % of these 5-chunks fulfill at least one of the four conditions (see image here). That may mean that prize resembles the output of a stochastic process that has been initially assumed. If you are able to trade with the info that there is at least one increasing or decreasing subsequence in a set of 5 candles, then you may find this theorem useful (however, I couldn’t make any use of it). Another way to use the subsequence idea to your advantage is to count the number of fulfilled increasing/decreasing subsequences within each 5-chunk and use it as a trend-following tool. The beauty of the subsequence theory is that you can always study historical (sub)sequences that are anchored in the most recent (the last) candlestick. Nevertheless, the more time I investigated to find anything useful in Eurusdd’s theories, the more I come to the conclusion that they are merely useless. Maybe they may work with a different interpretation. I conclude that the main reason why some are able to trade this profitable lies within hedging and/or money management. But if you don’t agree with me, please feel free to convince me … Otherwise I’ll stop my research here (have a lot of other research to do).
Hi Anti, This is great, very interesting … but i am new, so i have some questions if you don’t mind …. a) Regarding your link to FF , i am not sure there is a typo or it is indeed right about the price above 1.2522 (is it Not 1.2566 ??)
“… the high of the next bar must be above 1.2522 or below 1.2211. Just two options.… ” ??? b) Regarding the High/Low.Close/Open price , is it Not the mean/average price, right ? Any clue on these ??Hi despacito,
i did a simulation of 5 prices, and i got this result : 60% price will be > 1.2222 , 20% price will be < 1.2211, and the rest 20% prize will be between 1.2211 & 1.2222 , and this cause problem . Now, what to do if we got problem ?? And can we bet that the high of current price will be > 1.2222 , although we just have 60% probability from that 5 simulation prices ? After we did SS based on high prices, is it a good take to do the same for the low and close prices ? hmm, i must go back to my lab and do some tests ….
This reply has been reported for inappropriate content.
Hi great coders @simplex, @xux99, @lowphat, and others …
I have a beginner question. Is it possible to define our own MA applied_price ??
As we see the formula for calling MA is : https://docs.mql4.com/indicators/ima
And the applied price is : https://docs.mql4.com/constants/indicatorconstants/prices#enum_applied_price_enum
What i want to do is adding a new value to the table https://docs.mql4.com/constants/indicatorconstants/prices#enum_applied_price_enum
example :
ID = PRICE_OHLC
VALUE = 7
Description = (O+H+L+C)/4And then i can call it using iMA like :
myohlc = iMA(NULL,0,13,8,MODE_SMA,PRICE_OHLC,i);
Then i can pass this result to IMAONARRAY function. How to make it ?
Thanks in advance …===
Edit: Sorry guys, after searching using some other words on google, i found this : https://www.ff.com/showthread.php?p=9841659 , just change the “ff” to xxxxxx
it was my bad, too fast to ask something without properly searching it first … . i think it can be done, i will try it first …
Anyway, thanks a lot.
This reply has been reported for inappropriate content.
Hi Simplex and other coders,
What must be done to create an “right calculated” MTF indicator ? I am trying to create a histogram MTF indicator like the picture below :
https://www.ff.com/attachment.php?attachmentid=212667&d=1236075762
Just change the “ff” to “forexfactory” … you know that … :)
Please look at the bottom of the image, there are blue-red rectangle histogram for different TFs. Lets say we attach the indicator at TF M5, it will show us the result of TF M5, M15, etc … (depend on what TF we want to see, we can change it at the source code).
If we call the base indicator to get the signal like :M5_signal = iCustom(NULL,tf5,”base_indicator_name”,x,x,x,1,shift_of_M5);
M15 signal = iCustom(NULL,tf15,”base_indicator_name”,x,x,x,1,shift_of_M15);where we have calculated that tf15 = 3 * tfM5 and the shift_of_M15 = 3 * shift_of_M5 …. I got the wrong result (compare to if i attach the base_indicator at TF M15 directly).
Any idea, what are other requirements that i missed here ? Can you please create a similar one based on MA crossing for example ? Or just use iCustom calling to any other indicator of your choice ? Thanks in advance.
TomIf I get your idea, I think there is no way to make the values of the first x/2 bars non-repaint because no indicator will know the future values …
Thanks Anti. Now come a beginner question : How to compile the MQH include/library file to EX4 format (like we do to compile the common source code MQ4 to EX4) ?? After compiling it, can we use it like usual we call the include file at the top of our indicator ? Example :
#include “mylib.mqh”
In this case, our library/include MQH file is not in the source code format any more ….
Is it possible ??=====
EDIT : I found another solution. Instead of using #include to call the MQH file (located in Includes folder), FerruFx @FF said that we can use #import to call function in the EX4 file which located in Library folder. So, we just need to create functions in MQL4 like usual, put it in Library folder, it will be automatically compiled to EX4 format, and we just use #import statement from our indicator to call the function. It is simple actually …

Thank you for creating this thread Anti. One question : If we shift MA indicator back for some bars, lets say a half of its period, we will get empty lines at the last half period candles. As i try to modify an MA indicator in order to make it like the shift one, and i try to fill the empty place with some previous candles data, it is now becomes repaint. I think the right one will not repaint ( i could be wrong thought … , but i am sure the great coder there never creates a repaint indicator). Any idea ? Thanks.
This reply has been reported for inappropriate content.
Hi @Anti :
Using MA and BB as helping tools are great. As we know that BB using some price Deviation on its calculation. This deviation is calculated from its mid line, which is actually an MA line. In a side way market, BB upper line and lower line has only narrow distance, but in trending market the Distance between the two lines can be very big. COBB can appear every where, but how can we know that it is near the end of the trend (could be consolidation or reversing), by looking at the Distance of upper and lower line ? It is clear that it must be bigger than the average distance, but how big is it compare to its maximum distance ? ex: 80% , 90% of the max Distance pips ?
And the Maximum Distance is depend on how many bars we decide to look back for our calculation and also depend on the market situation … so, we will get different maximum distance for different BB period setting …
As “k” made a modified BB, do you use it ? Is it better than the one we normally use at MT4 ?
Any idea is welcometom.
This reply has been reported for inappropriate content.
Hi @anti, have you any idea on this ?
As “k” said in a post, all are related … the word related means the same value we use for one indicator, must be applied to other, or just to say that it has some how relationship among them, but we must adjust the value for each tools ?
Lets say TZ is similar to ZZ, but it has different behavior … i am not sure that we must use the same value for TZ and ZZ ..
Lets say Stoch related to ZZ. The begin of Stoch is the begin of ZZ leg, the end of Stoch is the end of ZZ leg, the mid of Stoch is the mid of ZZ. We can calculate the mean, but in pips or in bars or in time or in other variables ? And some Deviation here and there must be applied …
t.
This reply has been reported for inappropriate content.
Thank you for creating this thread simplex. This is very interesting … still need time to understand the whole … not simple, but very good idea for the future work

This reply has been reported for inappropriate content.
@Anti : About the Lambda, it is very very interesting.. thanks. In one of EUd (Eurusdd) post, he said that it can be applied to TZ and his other tools (ex. Arrow) . My understanding about lambda is the Right value we choose for the Wing (h bars) in Tz. So, this exact value can be used for the arrow tools too ?
To create a good system, we need a good Plan and hard work, i know it is not easy, and we must do so many testing, spending so many hours on developing and must be patient too … including Waiting for the right Time to entry, etc …
I have so many questions to ask to my self, but still can not find the good answer for it. Example:
*) the Lambda in Tz can be applied to all of the TF (by using the same value), or it must be changed for each TF ? This is also the same question to Arrow.
*) the Lambda in Arrow tools is the distance (in time or bar, not in pips) from the problem bar to arrow, or from arrow to entry point or from problem bar to entry point ?
*) EUd said that the key of success lies in the Time-Bar-Similarity … this is not so clear for me. Does it mean the similarity across multi time frame ?Hm … so many home work to do at the moment ….
Simplex: Using CIX_v_2_2_post.mq4: How can I get previous value of a currency? I mean something like EUR[2] – EUR[1]? G.
Wellcome back G, nice to see you again ….
Regarding the CS, how to use it properly ? My take is like this :
Lets say the 8 major currencies are : A (AUD), E (EUR), D (CAD), F (CHF), G (GBP), J (JPY), N (NZD), U (USD) and the pairs are the combination of all 8 currencies, and will build 28 pairs. I will look at higher TF, and pay attention to 4 currencies (2 strongest and 2 weakest). Lets say i get A & E as the 2 strongest currencies, and G & N the 2 weakest currencies. I will look only at these 4 lines, and if the line A or E going down, and the line G or N going up, i see the opportunity there. Trading GA, EG, EN, or AN. will be nice, depending on the direction of these lines. In this case, many traders will trade the CROSSING of the lines as their entry point.
If i am not mistaken, you will see currency strength in every morning (i think it will be in Asian session), BEFORE you decide which pair is the best one to choose as your trading pair for that day. With helping of other tools, i think this will be give us BETTER win probability to our entry. Is it right ?From your question above, I think you are trying to get the slope (velocity) of the E lines by looking at the difference of some previous bars : EUR[2] – EUR[1]. Can you explain the use of this velocity ? Does it idea to choose which from the 2 strongest / weakest currencies are the best one ? Lets say at i=2 , the line A is at the top, line E the second and N at the bottom, line G just right above line N. As line A & E going down at the same time at bar i=1, we will pay attention to them. But …. the VELOCITY of E is bigger than A, so it is better to trade EG and EN instead of GA and AN (although line A is still at the top, above line E) ? Or is there another reason ?
Thanks in advance.
tom.This reply has been reported for inappropriate content.
Hi all,
I have spent many days without success with this….
I want to draw numbers above/below all candles inside each ZZ leg like the picture below. Any idea will be very helpful ….. thanks in advance.Edit: it is no problem if all numbers are above the candles ….
-
This reply was modified 9 years, 4 months ago by
thomas.
Attachments:
You must be logged in to view attached files.This reply has been reported for inappropriate content.
@fasttrade, @thomas: Thank you. @thomas: I don’t know what Lowphat uses to create the 13 tick chart but you can create similar charts with every renko tool.
Thanks Anti … i though it was tick bar like tools made by metacoder or other trader …
April 25, 2017 at 1:28 am in reply to: Excellent and Experienced coders need for profitable TZ based strategy project #13822Been there, done that, i can assure you that trading against the trend will get you no where at the end
Hi Ephisi, may i know how do you define a TREND ? I have read some where, a trend in a small TF can be only a SWING at bigger TF. So many people said about Trend is your Friend, but in my opinion, it is very difficult to identify it . Using MA is useless, because of its lagging characteristic (we get the signal of a trend using MA commonly at the end of the REAL trend, isn’t it ? ) If we define trend using big TF (H4 or D1 as example), and place order on small TF (like M1 for example) … will it better than using TF M15 or M30 or H1 as our trend / direction definition ? I just think that it is more “Adaptive”-able of using M15-H1 to define a trend, if our target is just some pips (ex: 1-8 pips), in this case it is actually just a retrace/swing in TF H4 or D1. Trading TZ directly or Reversing it has the same problem…. We must have a good definition of a trend.
This reply has been reported for inappropriate content.
Hi Simplex,
Thank you for trying to help. You are right, the problem can not be seen from the snippet code i sent, but now it is solved. It was because of SetIndexEmptyValue ….. after i removed that part, the line can be seen clearly … Thanks to Lawphat for giving the understanding of SetIndexEmptyValue definition …This reply has been reported for inappropriate content.
Hi Anti, It is here : https://www.forexfactory.com/showthread.php?p=6850218#post6850218
This reply has been reported for inappropriate content.
Hi All,
i just found a post by GG on old FF thread … it is about using Gadi_tickVolume (instead of price chart) for similarity, and the result is much better Any one know how to apply this ?
So far i know, we look at price at chart to find DisSimilarity (and it will be stored by Similarity later). Gadi_tickVolume is on the separate window (not on the same window as the price chart), i do not understand how to apply this. Any information is wellcome. Thank you
-
This reply was modified 9 years, 5 months ago by
thomas.
@simplex, @xux99, @lowphat or other coders ….
I am stuck with iStochastic. Actually it is simple, but as a beginner in coding, i still can not find the solution to call the Stochastic line value with setting X,1,1 …for (i=limit; i>=0; i–) {
stoMain = iStochastic(Symbol(),0,14,1,1,MODE_SMA,1,MODE_MAIN,i);
stoSignal = iStochastic(Symbol(),0,14,1,1,MODE_EMA,1,MODE_SIGNAL,i);
}The above code just as example. The problem is that i just got an empty value for 0 (ZERO) result of Main or Signal line of Stochastic, if using Dperiod=1 and Slowing=1 (with : Close/Close as priceField). Other than 0 (zero) result of Stochastic line are no problem.
If i change the setiing of Kperiod, Dperiod, Slowing to : 14,3,3 as example, i can get the 0 (zero) result value of stochastic without problem.Why ???

-
This reply was modified 9 years, 5 months ago by
thomas.
April 19, 2017 at 10:33 am in reply to: using inefficient moves/liquidity gaps/tz for orderflow #13799Great Lowphat, i am sure you are using a very tight money management ….
April 19, 2017 at 8:19 am in reply to: using inefficient moves/liquidity gaps/tz for orderflow #13794Thanks Lowphat. I think it is good for exit, but for entry … i am not so sure …, may be we need other tools ?
Edit : using high probability tools at higher TF is a good choice, but it is a rare event. As we get the signal at that higher TF with high probability, may be the price has move far enough away from that bounce (Supply – Demand Level).-
This reply was modified 9 years, 5 months ago by
thomas.
April 19, 2017 at 1:05 am in reply to: using inefficient moves/liquidity gaps/tz for orderflow #13774Hi Lowphat,
Can you explain more details about this ?Hi Simplex,
Some month ago i tried to build one based on this : https://www.xpworx.com/metatrader-mql-articles/mql4-articles/create-your-own-metatrader-extension-dll.php
but still have no success …. Still need time for this. And will try to look for opensource C compiler + development environment …
It is good to have own dll for MT4, but i think it is for future project (not in this month), i must collect information as much as possible first …
Thanks for your support. TomThanks Simplex
Btw, you do you mean we should create a DLL file (may be using C# or C++), compile it, put it at Libraries folder ?
Or do you mean there is a additional compiler out there, so we can use it to compile the Mqh file, and put the compiled (Mqh becomes Ex4 now) file to Include folder ?-
This reply was modified 9 years, 5 months ago by
thomas.
Thanks Simplex for the prototype and improvement. It is a great prototype

the current bar won’t be calculated. Should be : i >= 0
a) we must include current bar, although it is not finish yet …. agree
b) In this case, if we want to keep the amount of bar to 1000 (if it is smaller than Bars-IndicatorCounted() … ) , we need to begin with i=limit-1 ?
for (i=limit-1; i>=0; i–)
Regarding the MQH file, can we compile it (similar to EX4 format), or it must be always in source format (similar to MQ4) ?
Tom
-
This reply was modified 9 years, 5 months ago by
thomas.
-
This reply was modified 9 years, 4 months ago by
- AuthorPosts