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

Re: easylanguage daytrading question



PureBytes Links

Trading Reference Links

At 7:33 PM +0200 12/9/01, Philip wrote:

>Hello everyone,
>I`m trying to tell my signal to stop trading TODAY once I made x amount of profit, and I`m failing miserably!
>
>Any ideas?

You do not say if you want to exit a trade at that point or just not take any more trades but in any case, you should be able to do something like the following:

Bob Fulks

---

Vars: EQ(0), TradeOK(FALSE);
EQ = ClosedEquity + OpenEquity;
if Date <> Date[1] then BeginEq = EQ[1];

TradeOK = EQ < BeginEq + 1000; {where 1000 is the goal for the day}

if TradeOK and .... then Buy....