PureBytes Links
Trading Reference Links
|
Here's a stab at it...
Vars: positiveTrade(FALSE), firstTradeDone(FALSE);
if date>date[1] then begin
positiveTrade = FALSE;
firstTradeDone = FALSE;
end;
if positiveTrade = FALSE then begin
{put trades here}
if firstTradeDone = FALSE then begin
if {first trade positive} then positiveTrade = TRUE;
firstTradeDone = TRUE;
end;
end;
Let me know what you finally come up with. I'll be interested to see what
it looks like. You could reduce this to just one variable if you used an
integer with three setting: 0 for not checked today yet, -1 for checked
and first trade not positive, or 1 for checked and first trade positive.
Regards,
Aaron Schindler
Schindler Trading
www.schindlertrading.com
----- Original Message -----
From: "pastal" <pastal@xxxxxxxxxx>
To: <omega-list@xxxxxxxxxx>
Sent: Monday, August 19, 2002 9:41 AM
Subject: ...for programmers
> Hi everybody, I have a question:
>
> I have to give my system the following instruction, how could I
transform
> it into a code?
> {
> if the first operation/trade you do today is positive ( with the trailing
> stop), do not enter anymore during the same day, otherwise ( else) go on
> entering
> }
>
> Thanks and bye
>
> Paolo
>
|