Show your MQL5 Expert Advisor Code.
Hi Vladimir,
here code on section
OnInit() ....... handle = iVIDyA(NULL,0,CmoPeriod,emaPeriod,0,price); // use this for metaquotes "Variable Index Dynamic Average" on Indicator/Trend handle = iCustom(NULL,0,"Examples\\VIDYAc",CmoPeriod,emaPeriod,0,price); // use this for metaquotes VIDYA on Indicator/Examles ArraySetAsSeries(Vidya1array,true); .......
and that on section
OnTick() ....... (CopyBuffer(handle,0,0,3,Vidya1array)>0) ..... take values of buffer .......
it's simple like standard use, this soothfactor default
//--- calculate smooth factor ExtF=2.0/(1.0+InpPeriodEMA);
but if i attach two indicators on chart only "Variable Index Dynamic Average" has infinite values before smooth instead VIDYA has empty_value
than smooth factor both has values but different for some CMO/EMA params set
it's strange not?!
1) have you an idea about?
2) second question, while
VIDYA at https://www.mql5.com/en/code/75
where can i find source code of "Variable Index Dynamic Average" which is located Indicator/Trend (on MT5 indicators)?
thanks
Hello,
on my ExpertAdviros i call VIDYA indicator of metaquotes (in Indicator / examples folder) with iCustom () function
instead
iVIDYA () which apparently uses another indicator code called "Variable Index Dynamic Average (in Indicator / Trend folder")
they are drawn on the chart with different values for some CMO-EMA parameters set... furthermore, by calling VIDYA () from my expert advisor, infinite values are returned on start (on firts bars) as if it were set to EMPTY_VALUE while it should be enhanced with drawable and calculable values
here an example
00:00:00 VIDY:179769313486231570814527423731704356798070567525844996598917476803157260780028538760589558632766878171540458953514382464234321326889464182768467546703537516986049910576551282076245490090389328944075868508455133942304583236903222948165808559332123348274797826204144723168738177180919299881250404026184124858368.000000 01:00:00 VIDYA:1.181070 IND2:0.000000 Balance: 100000.00 Equity: 100000.00
02:00:00 VIDYA:179493889086152583100140305077463104919191427039390112646610818293562895879462297752381587744491879511339330355864077654145734307655457917778866722107331011759117981721001653071841886350928074911377255641953719879726153780521235588603675532709066195164151667378333735157671790850689257124878413699429859065856.000000 03:00:00 VIDYA:179356396221604872993066084804886101655476746736257204232036761836559188643557217402664313383959791569093548862533162032968201882031340784950969949839700123150285568253885803779004965352693324322164984786606720417968752548566558794582481960146032022777996275518781016045071639942786438896661305769950269407232.000000
questions:
1) does anyone know why?
2) does anyone know where to find the indicator code which is in the default folder "Indicators / Trend" which in MT5 is called "Variable Index Dynamic Average"?
there should be no differences between the two indicators, they should coincide instead give different values
Thanks for your help