Reverse position from a specified entry
Posted: Aug 19 2020
Hello-
Is there a better way to reverse a position from a specific entry than the following?
I tried using the syntax buy ("XR-L") from entry ("Rev-S1") next bar at market to reverse the position, it gave me the following error code:
syntax error, expecting 'stop', 'limit', 'contracts', or 'shares'. Then, after specifying the number of shares (which I shouldn't have to do), it still gave me an error code.
Thank you in advance for your help.
Is there a better way to reverse a position from a specific entry than the following?
Code: Select all
if Condition20 then
begin
buytocover from entry ("Rev-S1") next bar at Market;
buy ("XR-L") next bar at Market;
end;
syntax error, expecting 'stop', 'limit', 'contracts', or 'shares'. Then, after specifying the number of shares (which I shouldn't have to do), it still gave me an error code.
Thank you in advance for your help.