Page 1 of 1

Weight of Evidence

PostPosted: Fri May 22, 2015 10:10 am
by Alexander.Gettinger
Original LUA oscillator: viewtopic.php?f=17&t=62054.

Weight_Of_Evidence_MQL.PNG


Download:
Weight_Of_Evidence.mq4
(5.04 KiB) Downloaded 1162 times

Re: Weight of Evidence

PostPosted: Sun Sep 09, 2018 2:14 pm
by Artem.dev
What version of the VAD indicator is used here?
Note: Williams' Accumulation/Distribution, W_A/D does not have adjustable parameters, But in this code there are such lines:

WAD=iCustom(NULL,0,"WAD",2,pos) + iCustom(NULL,0,"WAD",3,pos);

------ The question is inscribed in the function call string:
iCustom(Symbol(),PERIOD_CURRENT,"IndicatorName = WAD",2 - what is it?, index)
iCustom(Symbol(),PERIOD_CURRENT,"IndicatorName = WAD",3 - what is it?, index)
------
Thank you.

Re: Weight of Evidence

PostPosted: Mon Sep 10, 2018 9:08 am
by Apprentice
Was based on this version of the indicator.
viewtopic.php?f=27&t=62052

2 and 3 are line index.

WAD=iCustom(NULL,0,"WAD",2,pos) + iCustom(NULL,0,"WAD",3,pos)
will give sum of 2 and 3 line of WAD indicator.
Can you provide indicator code for this version?

Re: Weight of Evidence

PostPosted: Mon Sep 10, 2018 12:32 pm
by Artem.dev
The WAD indicator has only one line. Therefore, there is no way to get the line by index 2 or 3. Only by index 0: iCustom(NULL,0,"WAD",0,pos).
In result: (Data WAD from index 0 - Data WAD from index 0) = 0.
WAD as example: https://www.mql5.com/en/code/7064
It is for this reason that I asked - what is the version of the WAD indicator used in this indicator?