Thanks for the reply, Molanisfx.
molanisfx wrote:
We want to keep it simple since most of the ea variables are related to the indicator period so double makes perfect sense. These variables are the most used during backtesting and optimizatrion in mt4.
Does that mean that if I have a more sophisticated iCustom indicator, that I won't be able to use it with Molanis? Or, does that mean that a more complex, yet well coded iCustom indicator cannot be used with External Variables in Molanis?
molanisfx wrote:
All variables defined in the ea builder are used as inputs in the expert advisor. That's the way people needed to do backtesting in mt4.
Does this apply to iCustom indicators that pass through the Molanis iCustom import feature?
molanisfx wrote:
You define the variable in the mt var icon.
That part I understood.
molanisfx wrote:
The value is taken from the TA+ where you add it.
That part I do not understand. The following MQL code snippet comes from one of the iCustom indicators that I imported through Molanis in a TA+ Block. The following shows two things:
a) The only two parameters that allow for adjustments in the Averaging Period for the indicator
b) Each Mode that is output by the indicator (0 through 7)
External Variables:extern int TACperiod = 5;
extern int SACperiod = 8;
Modes SetIndexStyle (0,DRAW_HISTOGRAM);
SetIndexBuffer(0,db_TCD_L); SetIndexLabel (0,"TCD-Long");
SetIndexStyle (1,DRAW_HISTOGRAM);
SetIndexBuffer(1,db_TCD_S); SetIndexLabel (1,"TCD-Short");
SetIndexStyle (2,DRAW_LINE);
SetIndexBuffer(2,db_TAC_L); SetIndexLabel (2,"TAC-Long");
SetIndexStyle (3,DRAW_LINE);
SetIndexBuffer(3,db_TAC_S); SetIndexLabel (3,"TAC-Short");
SetIndexStyle (4,DRAW_LINE);
SetIndexBuffer(4,db_SAC_L); SetIndexLabel (4,"SAC-Long");
SetIndexStyle (5,DRAW_LINE);
SetIndexBuffer(5,db_SAC_S); SetIndexLabel (5,"SAC-Short");
SetIndexStyle (6,DRAW_LINE);
SetIndexArrow (6,110);
SetIndexBuffer(6,db_MTCD_L); SetIndexLabel (6,"M-TCD-L");
SetIndexStyle (7,DRAW_LINE);
SetIndexArrow (7,110);
SetIndexBuffer(7,db_MTCD_S); SetIndexLabel (7,"M-TCD-S");
There are eight (8) modes output for this one iCustom indicator and there are two External Variables that allow for the optimization of of the Period calculation that determines how the indicator is averaged. Knowing each mode used by the indicator and knowing which parameters are used to set its Period, I created the following two MT/VARs:
I then imported the iCustom indicator called TCDi7_0001 using the TA+ Block's iCustom import feature:
But, when I went to configure those two variables (TacPeriod and SacPeriod) in the TA+ Block containing the imported iCustomer indicator TCDi7_0001, there were no fields containing TacPeriod and SacPeriod, nor were there any drop-down lists to the right of each field, containing the name of the variables I just created in the MT/Var Block:
molanisfx wrote:
If you add it to two TA+ make sure the value is the same...
I don't see how, given the illustrations above. Can you confirm, how?
molanisfx wrote:
...You can change that value in metaeditor (if you have a pro version) or in the ea inputs in metatrader.
To expedite all EA testing, optimization and evaluation, I was hoping to be able to simply create External Variables (TacPeriod and SacPeriod) that could easily be edited at EA load-time, rather than editing the indicator itself in Meta Editor, re-compiling and then re-importing the same back through the same TA+ Block. Editing the variables at EA load-time would save a lot of time overall.
Your assistance is appreciated. Thanks!
Regards,
cfx