At the moment I've got the following code, so I need to write the "Buy" line two times.
Code: Select all
inputs:
system.use.pool.position.sizing(true);
variables:
system.contracts(0);
system.contracts = 5;
if system.use.pool.position.sizing then begin
Buy system.contracts contracts next bar at market;
end else begin
Buy next bar at market;
end;
Code: Select all
if system.use.pool.position.sizing then begin
system.contracts = 5;
end else begin
system.contracts = "strategies properties settings";
end;
Buy system.contracts contracts next bar at market;