molanis.com/forum - Tools for MetaTrader : The place to ask about the best expert advisor builder, expert advisor downloads, and expert advisor programming
http://www.molanis.com/forum/

Custom Indicator by Molanis refuses to appear on screen
http://www.molanis.com/forum/viewtopic.php?f=11&t=90
Page 1 of 1

Author:  jpm26 [ Thu Aug 19, 2010 8:08 am ]
Post subject:  Custom Indicator by Molanis refuses to appear on screen

I have designed a basic Custom Indicator with Molanis Technical Indicator Builder and compiled it successfully. It doesn't show anything on the MT4 screen however.
What can be the problem?
Regards.

Attachments:
MagicTrend.ex4 [3 KiB]
Downloaded 768 times
MagicTrend.moi [3.19 KiB]
Downloaded 791 times

Author:  molanisfx [ Thu Aug 19, 2010 11:47 am ]
Post subject:  Re: Custom Indicator by Molanis refuses to appear on screen

In the graph MetaTrader gives priority to the price action - the graph focuses is the current price
If the current price is 1.34 and your indicator value is 5, mt4 won't show your indicator. There is no adjust graph size to see my value of 5 in mt.
That is why you have two types of indicators - in the chart or in a separated chart
If your indicator is not close to the price action, you better use in a separated chart.
In your case, you have this calculation:
High[i]+Low[i]+Close[i]/3 = 1.4+1.2+1.3/3
It should be (High[i]+Low[i]+Close[i])/3 to get the average - remember the basic math rules

Author:  jpm26 [ Sat Aug 21, 2010 9:55 am ]
Post subject:  Re: Custom Indicator by Molanis refuses to appear on screen

Thank you Molanis for your help. Set in a separate window the indicator does appear, although I'll have to work on it to make it more significant.
Sorry about the maths oversight. The parentheses make an awful lot of difference!
Regards.

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/