You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
you kidding of course it worked
Yes, it's working now.
I have used the latest version with all 10 parameters and it's working now.
Thanks.
BTW, I'm still not understanding why the Older version with 7 parameters didn't work!
As in the above image, that indicator has 8 external parameters. Here 'TimeFrame' got defined as '0' before string "xpMA".
Then I declared rest of the 7 parameters like below:
So where I made the mistake please indicate.
Regards
He has to learn from common mistakes.
Thanks for the Support and Understanding it. :)
BTW, I'm still not understanding why the Older version with 7 parameters didn't work!
As in the above image, that indicator has 8 external parameters. Here 'TimeFrame' got defined as '0' before string "xpMA".
Then I declared rest of the 7 parameters like below:
So where I made the mistake please indicate.
let me say it again by using iCustom you have to pass the parameters corresponding with the declaration order
The passed parameters and their order must correspond with the declaration order and the type of extern variables of the custom indicator. If the values of input parameters is not specified, the default values will be used.
you CAN NOT skip a parameter
example if a custom indicator has 5 parameters you can use it like this:
but you can not use it like this:
let me say it again by using iCustom you have to pass the parameters corresponding with the declaration order
you CAN NOT skip a parameter
example if a custom indicator has 5 parameters you can use it like this:
but you can not use it like this:
This is what I am doing wrong and unable to identify.
Ok, here how I have been assigning the parameters:
Param1=MA_Period
Param2=MA_Type
Param3=MA_Applied
Param4=T3MA_VolumeFactor
Param5=JMA_Phase
Param6=Step_Period
Param7=DebugMode
Now which one is wrong?
Regards
you skipped the first one "TimeFrame"
you skipped the first one "TimeFrame"
ohh, then this is the case.
If I miss any of the External Parameters it wont work.
But I skipped it consciously as it should work with the current time frame which is defined at the starting:
iCustom(Null, 0, Param1,...)
That's why I thought there is no need to define it again as 'TimeFrame'.
Thanks for the correction.
ohh, then this is the case.
If I miss any of the External Parameters it wont work.
no, you can miss, but you cannot skip i.e. if there is 5 param. and you leave the last 2 there is no problem
but you cannot skip 1 and use 2 3 4 5
But I skipped it consciously as it should work with the current time frame which is defined at the starting:
iCustom(Null, 0, Param1,...)
yep, but the terminal doesn't know what this param contains it can contain anything (not necessarily the time frame)
That's why I thought there is no need to define it again as 'TimeFrame'.
don't think, act ! ;-)
Thanks for the correction.