PureBytes Links
Trading Reference Links
|
The following is SOME coding from the AnyOHLC dll and associated indicator.
<<<<<<>>>>>>>
if CurrentBar = 2 then begin {look up all values for next bar}
nOpen = (MYOPEN((LPLONG)&Open,(int) -6)) / PRICESCALE;
nHigh = (MYHIGH((LPLONG)&High,(int) -6)) / PRICESCALE;
nLow = (MYLOW((LPLONG)&Low,(int) -6)) / PRICESCALE;
nClose = (MYCLOSE((LPLONG)&Close,(int) -6)) / PRICESCALE;
...............
....and so on.
<<<<<<>>>>>>>
I am wondering if I could make this dll / 'function' pick up a value from a
seasonal indicator I have made?...........maybe by changing say for eg:
nClose = (MYOPEN((LPLONG)&Close, to..............
nClose = (MYOPEN((LPLONG)&Close of data2,
(after converting the seasonal indicator to data2)
AnyHELP greatly appreciated before I corrupt something
Thanks
Jon Macmichael
|