[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: easy code



PureBytes Links

Trading Reference Links

Since I am not very versed in writing easylanguage I dont know if this will
work.

Variables: Counter(0),Condition1(False);

If MarketPosition(1) = -1 and (EntryPrice(1) - ExitPrice(1)) > 0 Then
Counter = Counter + 1;
If Counter = 2 Then Condition1 = True;
If MarketPosition = 1 Then Condition1 = False and Counter = 0;

Include Condition1 in the Sell statement.If Condition1 is true no short
trades.

----- Original Message -----
From: "Cameron Jones" <camster@xxxxxxxxxxxxxx>
To: "omega list" <omega-list@xxxxxxxxxx>
Sent: Sunday, May 13, 2001 04:00 AM
Subject: easy code


> hi all
>
> can some one help me out on this one.  i have a system that does ok with a
> choppy market  , but when it trends it gets hammered bigtime.
> What i wanted my easycode to do is if ,  i have two consecutive short
losing
> trades then not to take any more short trades until i have a  long trade
> (profitable or not) .
>
> Regards
> complexed cam
>
>