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/

Building a Custom Indicator
http://www.molanis.com/forum/viewtopic.php?f=9&t=5343
Page 1 of 1

Author:  AlGer [ Sat Oct 13, 2012 2:06 am ]
Post subject:  Building a Custom Indicator

Molanis
As mentioned in the previous post, I am building a custom indicator. However my indicator is much more involved than what is shown in your tutorial video on your website:

I am not using a formula based on currency prices as the example shown and as common indicators do. I am plotting two lines based on the averages of values from other common indicator values from all the other 24 pairs in my MT4 system. After running a calculation on these values I can determine a relative currency strength shown by two lines in a separate window on the any particular pair chart. One line representing the base currency and one representing the terms currency.

Therefore I will have no need for i or i+1, i+2 etc. The mathematical formula will involve averages (possibly moving averages at a later stage) resulting in a figure of an overall rise or fall in price trend of a particular currency in relation to the others.

How would I use your custom indicator to do this please?

Author:  admin [ Mon Oct 15, 2012 8:02 am ]
Post subject:  Re: Building a Custom Indicator

You still need to use i, i+1.. but it will be in the parameters of the indicators you will use
To start, in the indicator builder for mt4 create the average of one indicator:
-insert an indicator
-set advanced option to average
-set a period
Compare your indicator with the same indicator created using mt4 charts - in mt4 charts you can do indicator of an indicator

Author:  AlGer [ Mon Oct 15, 2012 2:29 pm ]
Post subject:  Re: Building a Custom Indicator

Molanis:

Okay I did that, and that's cool and it gives pretty good signals, but that's not what I am after. I don't think you understand what I am doing. Let me explain it again:

I want to get an average of the indicator value of 7 different currency pairs -- to be shown in one window in one currency pair in one line.

However in the indicator block, it does not give you the option of choosing a different pair other than the the "current symbol". How do I do this??

Author:  molanisfx [ Tue Oct 16, 2012 12:11 pm ]
Post subject:  Re: Building a Custom Indicator

That was just the first step. Now you need to do the same using more pairs. By default the indicator builder will write null instead of the pair. The reason behind that is to create one pair indicators by default - it is done that way because in mt4 you cannot backtest multi pair indicators. Since you want to use multiple pairs, you need to replace the null by the pair (NULL will be replaced by "EURUSD". Take a look at the mt4 reference http://www.molanis.com/products/molanis ... indicators

Author:  AlGer [ Tue Oct 16, 2012 12:19 pm ]
Post subject:  entering a specific pair

I did that, and it didn't accept it the first time, I will try it again. That is why I am stuck here.

Author:  AlGer [ Tue Oct 16, 2012 12:30 pm ]
Post subject:  Didn't work

I went to an indicator that I had already built; tested equation and it was ok. All I did was replace the NULL with EURUSD and it said I had errors. So what's wrong?

Author:  molanisfx [ Wed Oct 17, 2012 4:59 pm ]
Post subject:  Re: Building a Custom Indicator

Quote:
NULL will be replaced by "EURUSD".

Use "EURUSD"

Author:  dash [ Thu Oct 18, 2012 11:23 am ]
Post subject:  Re: Building a Custom Indicator

Hello Molanis!

Trying to figure out which option to use inside the TA block in order to use the current bar[0] setting for an EA. Here's what I mean.....

I want the EA to execute IF the Open[0] is LESS THAN Current bar Price (which would be a BULL Candle at any point during the session) then BUY. Inverse for SHORT.

I know if we're talking about the previous candle, it would be IF Open[1] < Close[1] then BUY. But I don't know which option is AVAILABLE in Molanis TA Blocks to choose for the [0] settings because the [0] has an OPEN......but the CLOSE has not happened yet.

Thanks

Dash

Author:  molanisfx [ Thu Oct 18, 2012 12:07 pm ]
Post subject:  Re: Building a Custom Indicator

Next time start a new thread please.

You are right. If you use the current bar you cannot use the close price. Also trading ticks would be better in this case since trading bars only trades at the open

Try comparing the open to bid or ask. The downsize is that backtest will not work fine.

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