Just to test whether I'm able to code anything in MQL4, I wrote a pretty simple custom indicator (see below).
It defines 'push' as fraction of maximum gain during the period that is still kept at close, and then puts a MA over it. Similarly, 'pull' is for fraction of maximum loss.
(Disclaimer: please don't kill me if this has already been done by some guy back in 1978 :D)
So, it seems to work and even yield pretty interesting results... but some questions remain:
* how can I get the start of chart to display correctly (i.e., not display at all)?
* is there anything I've done wrong or could have done more efficiently?
Thank you in advance for the time you spent looking at this. :)
Just to test whether I'm able to code anything in MQL4, I wrote a pretty simple custom indicator (see below).
It defines 'push' as fraction of maximum gain during the period that is still kept at close, and then puts a MA over it. Similarly, 'pull' is for fraction of maximum loss.
(Disclaimer: please don't kill me if this has already been done by some guy back in 1978 :D)
So, it seems to work and even yield pretty interesting results... but some questions remain:
* how can I get the start of chart to display correctly (i.e., not display at all)?
* is there anything I've done wrong or could have done more efficiently?
Thank you in advance for the time you spent looking at this. :)