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 http://www.molanis.com/forum/viewtopic.php?f=6&t=447 |
Page 1 of 1 |
Author: | slowbutsure [ Mon Aug 15, 2011 3:33 pm ] | ||
Post subject: | Custom Indicator | ||
Hi I have created a custom indicator using the molanis software. Its fairly simple and similar (but different) to a moving average. It plots on the screen perfectly. However, when I try and use it in Strategy builder it says, Unknown error and that there aren't any external inputs. Its true there are no external inputs. But can you take a look and see why there is an error? I have attached it. Thanks.
|
Author: | molanisfx [ Mon Aug 15, 2011 5:35 pm ] |
Post subject: | Re: Custom Indicator |
Please post the indicator .moi file |
Author: | slowbutsure [ Tue Aug 16, 2011 3:52 am ] | ||
Post subject: | Re: Custom Indicator | ||
Hi Moi attached. Thanks
|
Author: | molanisfx [ Tue Aug 16, 2011 1:31 pm ] | ||
Post subject: | Re: Custom Indicator | ||
When you generate an indicator it shows you the signals like this (regardless of the version used pro or standard): //***Read this first: Integration with Molanis Strategy Builder*** /*To integrate this indicator with Molanis Strategy Builder use the following modes: Mode 0 = ((8*Close[i])+(5*Close[i+1])+(2*Close[i+2])+(-1*Close[i+3])+(-4*Close[i+4]))/10; */ So you know you need to use mode 0. You define the shift (0=current bar, 1=previous bar) If you have an Indicator Builder pro version it will give you the .mq4 - then you use the import custom indicator button in the Strategy Builder, and you will see something like the graph below. The strategy builder gives you the indicator and variables. If you have an Indicator Builder standard version, you will get the .ex4 file which cannot be read using the import custom indicator button. You need to add the name of the indicator manually. In the example, you will write "CETA_FT" under Custom Fields - it is not automatic.
|
Author: | slowbutsure [ Fri Aug 19, 2011 3:37 am ] | ||||
Post subject: | Re: Custom Indicator | ||||
Hi I still cannot get this to work. When I add the indicator it still gives an error and when I use the EA it does not open any trades. I have attached the SB & Indicator file,Can you take a look? Thanks
|
Author: | molanisfx [ Mon Aug 22, 2011 8:33 am ] |
Post subject: | Re: Custom Indicator |
Again, you don't have a pro version so you cannot import the indicator using the import button - you will get an error. The workaround is to write the name of the indicator as explained before (you did it right) Your strategy needs some adjustment. First, you do not need the CL and CS unless you use hedging. Before a BUY is executed, the expert advisor will close all shorts ( and viceversa ) |
Page 1 of 1 | All times are UTC - 5 hours |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |