@javaai
Active 10 years, 3 months agosmallcat replied to the topic Trading made REALLY Simple in the forum Development 10 years, 4 months ago
Hi All,
I have a simple question, but has big impact to the result …. I want to know how to get the Highest Low , and Lowest High correctly …
I am afraid that i have missed understood it . Please see attachment …. Any information is very appreciated.Thanks
simplex replied to the topic Q & A For MQ4 Coding Newbies in the forum Development 10 years, 4 months ago
Remember what I wrote about my opinion re. commenting your code over here? Just found a nice example (from a well-known coder) how the function of an absolutely simple indicator init sequence can be shaded by nonsense commenting.
All I did in the second version was delete all inline comments, add a simple function comment block on top, and rename…[Read more]
simplex replied to the topic Q & A For MQ4 Coding Newbies in the forum Development 10 years, 4 months ago
No, two simple steps:
declare global arrays of type double for your buffers
make them a buffer with SetIndexBuffer(). For all visible buffers, you set an index style and label. For the invisible ones, you do not set style and label.That’s all.See pics from my CIX (I posted it).
Please note that buffer bDiff can be switched between visible…[Read more]
simplex replied to the topic Q & A For MQ4 Coding Newbies in the forum Development 10 years, 4 months ago
No, two simple steps:
declare global arrays of type double for your buffers
make them a buffer with SetIndexBuffer(). For all visible buffers, you set an index style and label. For the invisible ones, you do not set style and label.That’s all.See pics from my CIX (I posted it).
s.
smallcat replied to the topic Trading made REALLY Simple in the forum Development 10 years, 4 months ago
Hi G, i do not understand this part of logic. We do our Long entry point at Peak, Not at Trough? And we exit that Long trade at Trough, Not at Peak?
Could you pleae explain the reason why we do that? Or i have missed understood it?Thanks
smallcat replied to the topic Trading made REALLY Simple in the forum Development 10 years, 4 months ago
Attached is new version of the PenguinEA Changes in logic were made based on GG53 ideas in the quoted posts. V. [/quote]
Thanks a lot Vlan
will test it … if it is without trend rule, the result is good … then with trend, it will be really great …. 
smallcat replied to the topic Q & A For MQ4 Coding Newbies in the forum Development 10 years, 4 months ago
Thanks bro, really great information. About hidden buffer, what is it actually? Just define it as an array, but not set is as SetIndexBuffer() at init() function ?
smallcat replied to the topic Q & A For MQ4 Coding Newbies in the forum Development 10 years, 4 months ago
Thanks G & simplex. So if we have some buffers (arrays), and we use IndicatorCounted(), is it better to check for New Bar coming, then we shift the content of the array ? We add a new space to array for storing the new result later. In this case, we are only work with last (current) candle, which will safe CPU load … or ? Unfortunately TVI by o…[Read more]
simplex replied to the topic Coders Supporting Coders in the forum Development 10 years, 4 months ago
Hi guys!
Can anyone provide John F. Ehlers SuperSmoother Filter as an MQ4 class instead of a function?
Or if not a class, then a multi-instance version of that filter coded in non-recursive style?
Best, s.
EDIT: cancel this request! After getting to bed a bit earler last night I did it myself this morning!

simplex replied to the topic Coders Supporting Coders in the forum Development 10 years, 4 months ago
Hi guys!
Can anyone provide John F. Ehlers SuperSmoother Filter as an MQ4 class instead of a function?
Or if not a class, then a multi-instance version of that filter coded in non-recursive style?
Best, s.
simplex replied to the topic Q & A For MQ4 Coding Newbies in the forum Development 10 years, 4 months ago
@smallcat: since build 600 we can have up to 256 buffers in an mt4 indicator. Early this year I coded an indicator that used about 50 buffers for internal precalculations. The memory and cpu consumption was horrible at first. Then I reconsidered: do I really need all those bars on my charts? I limited it to 20000 maximum bars per chart, loaded the…[Read more]
smallcat replied to the topic Q & A For MQ4 Coding Newbies in the forum Development 10 years, 4 months ago
Yes, sorry for making you confused. I did not write it clearly (on mobile phone it is a little difficult for me, old eyes :) … If i just take the whole Bars, it will be very very big on TF M1, and grows rapidly if a new candle appear, this is not good.
So, I think the max size of the array is the size of LookBackBars (historical) bars, may be…[Read more]
simplex replied to the topic Q & A For MQ4 Coding Newbies in the forum Development 10 years, 4 months ago
Oops – sorry: I seem to have totally misunderstood your question, or confused some posts.
So you like to increase the size of an array on each new bar? What is the maximum size of the array then?
s.
smallcat replied to the topic Q & A For MQ4 Coding Newbies in the forum Development 10 years, 4 months ago
@simplex, yes i have read it. Thanks, it is nice information like :
i = Bars – IndicatorCounted() – 1;
Or limiting bars with :
if (i > LookBackBars – 1)
i = LookBackBars – 1;
But i mean the iMAonArray. The source must be an array, and the results are store in array (sorry not wrote it clearly). The source content will be bigger/more if a neq…[Read more]
simplex replied to the topic Trading made REALLY Simple in the forum Development 10 years, 4 months ago
Ok.
simplex replied to the topic Trading made REALLY Simple in the forum Development 10 years, 4 months ago
@slicken: thanks again! For about 10 minutes or so, I have an indicator version on screen now.
What it points out sharply are reversal points of currency lines. But the currencies are oscillating at very different amplitudes due to the simple scaling.
Your ob / os levels are hardly ever reached on most timeframes, because there is no…[Read more]
simplex replied to the topic Q & A For MQ4 Coding Newbies in the forum Development 10 years, 4 months ago
In an indicator, there’s no need to shift buffers manually. The terminal engine does that automatically. Only of you declare arrays which are no buffers you have to care for that yourself.
Did you read the articles I linked to?
In Sergey’s book chapter, scroll down, search for IndicatorCounted – it’s essential to understand those…[Read more]
smallcat replied to the topic Trading made REALLY Simple in the forum Development 10 years, 4 months ago
Hi mate,
May i know what is the different between _Point and point ? Does _Point calculates the 2/3 digits & 4/5 digits broker ? I mean, may be if it is 3 or 5 digits broker, _Point = point * 10 ?
Thanks
smallcat replied to the topic Q & A For MQ4 Coding Newbies in the forum Development 10 years, 4 months ago
Thanks G & simplex. So if we have some buffers (arrays), and we use IndicatorCounted(), is it better to check for New Bar coming, then we shift the content of the array ? We add a new space to array for storing the new result later. In this case, we are only work with last (current) candle, which will safe CPU load … or ?
Unfortunately TVI…[Read more]smallcat replied to the topic MTH – Star Skull and Smiley Indicator (lite version) in the forum Indicator discussion 10 years, 4 months ago
Hi Brother,.. lol of course you are not wrong.. this FOMC day with highly potential that the fed will change their interest rate.. market will move very volatile, so beware for all of you who use huge leverage account and relative spread, sometime hard SL or trailing stop also not work, and your MT4 platform freeze..lol. Remember when Swiss Franc…[Read more]
- Load More