Specification
I want to Convert metastock formulas equation to MQL4 metatrader 4 indicators:
First indicator:
consists of two separate formulas (equations) ;
equation # 01 consists of one simple moving average, one division, one multiply, two subtraction & 4 prices (example: O H L C prices) , equation # 01 should be represented as one moving line (first line)
equation # 02 also consists of one simple moving average, one division, one multiply, two subtraction & 4 prices (example: O H L C prices) , equation # 02 should be represented as one moving line (second line)
so the indicator will consists of two moving lines (as mentioned before) + fixed horizontal line equal to (50). one of the lines will be blue color & the other will be red color. both moving lines & the fixed horizontal line (50) should be displayed on the same scale (not two different scales & not overlay without scale).
Second indicator:
consists of two separate formulas (equations) ;
equation # 01 consists of 4 simple moving averages, 6 divisions, one subtraction & 8 prices (example: O , H , L & C prices) , equation # 01 should be represented as one moving line (first line)
equation # 02 or shall I call it ; moving line # 02 is the "well known" the histogram of the macd (histogram only & not the "macd with its signal line exponential moving average")
so the indicator will consists of two moving lines (as already mentioned) + fixed horizontal line equal to (zero). one of the lines will be blue color & the other will be red color. both moving lines & the fixed horizontal line (zero) should be displayed on the same scale ( but let to be possibility (option to choose) to overlay (display) both lines in the same separate window but with two different scales; one scale on right & the other on left).
Kindly, please take a look at the attached two photos, this is how the two indicators should look like, sure you would recognize it from the horizontal lines values, one of them is 50 & the other is zero.