I want write the code to manage and exit automatic. The entry position is manual. The code below but the compiling is an error:
Code: Select all
variables:
vMktPos( MarketPosition_at_Broker ),
Ingresso(0),
N(0);
Ingresso = entryprice;
N = currentcontracts;
If vMktPos = 1
Then Begin
sell N/2 contract at Ingresso + 10 PointValue;
End;
tradingest