When I try to compile this simple function...
Code: Select all
input:
PositionTP(NumericSimple),
PositionSize(NumericSimple);
if close >=PositionTP and PositionSize>0 then
begin
sell PositionSize contracts next bar at market;
end;
I don't understand this at all.02.01.12 23:15:59
------ Build started: ------
Study: "wgfs_TestFunction" (Function)
Please wait ....
------ Compiled with error(s): ------
is not applicable to this type of study
errLine 0, errColumn 0, errLineEnd 0, errColumnEnd 0
causal study: (Function)
Keyword "Plot**" can't been used in this type of study
errLine 0, errColumn 0, errLineEnd 0, errColumnEnd 0
causal study: (Function)
Why Line 0 / Column 0?
Why "Plot**"? I don't use Plot in this function...
Can anybody help?