PureBytes Links
Trading Reference Links
|
Tabb wrote:
>I'm trying to code two different entries into the market; however, I would
>like the system to look first at one entry and if that is not true then to
>utilize the second entry.
>
>Example: If marketposition = -1 then utilize 1st entry....if flat or
>marketposition = 1 then utilize second entry....
I don't understand the problem. What's wrong with
if marketposition = -1 then begin
if [entry 1 decision here] then buy;
end else begin
if [entry 2 decision here] sell;
end;
-Alex
|