PureBytes Links
Trading Reference Links
|
Hi all,
Ok
i did the code ........... but it still doesnt work. It still shorts more
than two losers in a row. obviously it is something my tired eyes have
missed.
my original posting is below
Regards
cameron
Here is my code........... (running a 1000 dollar stoploss)
############################################################################
###############################
input: malenlower(68),malenupper(30),
BBStdDev(3),BBHPrice(ADAPTIVE(H,10)),BBLPrice(ADAPTIVE(L,10));
vars: UB(0), LB(0), Con(1),
BBH(0),BBL(0),entrypos(0),Counter(0),Condition1(False);
ub=BollingerBand(BBHPrice,malenupper,BBStdDev);
lb=BollingerBand(BBLPrice,malenlower,-BBStdDev);
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;
{--------------ENTRY SIGNALS---------------------}
if c < lb then buy;
if c > ub and marketposition = 0 then entrypos = low - 1 else entrypos = 0;
if c > ub and marketposition = 0 and Condition1 = false then sell at
entrypos stop;
{---------------EXIT SIGNALS---------------------}
if high > ub then exitlong at market;
if low < lb then exitshort at market;
############################################################################
################################
----- 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
>
|