|
1 registered members (AndrewAMD),
1,014
guests, and 1
spider. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Different values for indicators depending on WFOCycle
#453313
07/19/15 17:08
07/19/15 17:08
|
Joined: Sep 2013
Posts: 504 California
GPEngine
OP
User
|
OP
User
Joined: Sep 2013
Posts: 504
California
|
What's happening, here?
function run() {
if (is(INITRUN)) {
BarPeriod = 60;
BarOffset = 57;
Weekend = 1;
LookBack = 1001;
StartDate = 20080101;
EndDate = 20150301;
NumWFOCycles = 169;
}
vars Price = series(price());
if (Bar == 41712) {
print(TO_ANY, strf("\nAt bar %d MMI17=%f.", Bar, MMI(Price, 17)));
}
}
Select EUR/USD. Click Train. Observed: WFO: wfobug 2008..2015 At bar 41712 MMI17=50.000000. At bar 41712 MMI17=50.000000. At bar 41712 MMI17=50.000000. At bar 41712 MMI17=50.000000. At bar 41712 MMI17=50.000000. At bar 41712 MMI17=50.000000. At bar 41712 MMI17=50.000000. At bar 41712 MMI17=50.000000. At bar 41712 MMI17=50.000000. At bar 41712 MMI17=31.250000. Time 00:00:02 Expected: indicators to have the same values at the same bar, regardless of WFO cycle number.
|
|
|
Re: Different values for indicators depending on WFOCycle
[Re: GPEngine]
#453314
07/19/15 17:21
07/19/15 17:21
|
Joined: Sep 2013
Posts: 504 California
GPEngine
OP
User
|
OP
User
Joined: Sep 2013
Posts: 504
California
|
Here's another.
function run() {
if (is(INITRUN)) {
BarPeriod = 60;
BarOffset = 57;
Weekend = 1;
LookBack = 406;
StartDate = 20080101;
EndDate = 20150301;
NumWFOCycles = 169;
}
var rvi405 = RVI(405);
if (Bar == 41712) {
print(
TO_ANY,
strf("\nAt bar %d in Cycle %d RVI405=%f.", Bar, WFOCycle, rvi405));
}
}
Train prints wfobug compiling................. WFO: wfobug 2008..2015 At bar 41712 in Cycle 158 RVI405=-0.090028. At bar 41712 in Cycle 159 RVI405=-0.090028. At bar 41712 in Cycle 160 RVI405=-0.090028. At bar 41712 in Cycle 161 RVI405=-0.090028. At bar 41712 in Cycle 162 RVI405=-0.090028. At bar 41712 in Cycle 163 RVI405=-0.090028. At bar 41712 in Cycle 164 RVI405=-0.069675. At bar 41712 in Cycle 165 RVI405=-0.763646. Time 00:00:02
|
|
|
Re: Different values for indicators depending on WFOCycle
[Re: jcl]
#453329
07/21/15 04:47
07/21/15 04:47
|
Joined: Sep 2013
Posts: 504 California
GPEngine
OP
User
|
OP
User
Joined: Sep 2013
Posts: 504
California
|
Ah. So smart. :et me toss you another one. What's happening in this case?
function run() {
if (is(INITRUN)) {
BarPeriod = 60;
Weekend = 1;
LookBack = 1001;
StartDate = 20080101;
EndDate = 20150301;
NumWFOCycles = 169;
}
vars Price = series(price());
var uo400 = UO(Price, 400);
if (Bar == 41712 && !is(LOOKBACK)) {
print(
TO_ANY,
strf("\nAt bar %d in Cycle %d UO400=%f.", Bar, WFOCycle, uo400));
}
}
Made with Gamestudio by oP group 2015 Monte Carlo plugin mounted
wfobug compiling................. WFO: wfobug 2008..2015 At bar 41712 in Cycle 151 UO400=-0.594472. At bar 41712 in Cycle 152 UO400=-0.594472. At bar 41712 in Cycle 153 UO400=-0.594472. At bar 41712 in Cycle 154 UO400=-0.594471. At bar 41712 in Cycle 155 UO400=-0.594476. Time 00:00:03
|
|
|
|
|
|