PureBytes Links
Trading Reference Links
|
Would anyone skilled in dll's be able to spot why this simple 1 tick
indicator wont work for me in a
2 tick chart but plots the 2 tick values?
{ MyfunctionDLL-Make }
{ Run this Indicator in the 1 tick chart. }
{ This is a simple modification }
DefineDllFunc: "c:\omega\prog\hashnums.dll", INT, "putAtDef", LPSTR, FLOAT;
DefineDllFunc: "c:\omega\prog\hashnums.dll", INT, "setDefObj", LPSTR;
Inputs: Price(close),Length(5),Length1(5);
value1=Myfunction(close,5);
If value1<=length1 then begin
Plot1(Myfunction(price,Length),"Myfunction");
setDefObj("Myfunction");
putAtDef("1tick", Myfunction(price,length));
end;
{ MyfunctionDLL-Take }
{ Run this Indicator in the 2tick chart. Gets Myfunction }
DefineDllFunc: "c:\omega\prog\hashnums.dll", FLOAT, "getAtDef", LPSTR;
DefineDllFunc: "c:\omega\prog\hashnums.dll", INT, "setDefObj", LPSTR;
Inputs: Price(close),Length(5),Length1(5);
value1=myfunction(close,5);
If value1<=length1 then begin
setDefObj("Myfunction");
Plot1(getAtDef("1tick"),"Myfunction");
end;
|