Sorry Mike.

Here's the code.


Range1=Optimize("range1",3,3,10,1);

Range2=Optimize("range2",6,6,10,1);
Buy = Cross((Close),(EMA(Close,range1)));
Buystop = Ref(EMA(Close,range1),-1);
BuyPrice = Max(Buystop,Close);
Sell = Cross(EMA(Close,range2),(Close));
Sellstop = Ref(EMA(Close,range1),-1);
SellPrice = Min(sellstop,Close);
Short = Sell;
Cover = Buy;


On Sat, May 8, 2010 at 3:06 AM, Mike <[email protected]> wrote:

>
>
> Hi,
>
> Nobody can help you without seeing sample code. All anyone can say is to
> make sure that your code has an assignment for Sell in it.
>
> e.g.
>
> Sell = ...
>
> Mike
>
>
> --- In [email protected] <amibroker%40yahoogroups.com>, Ricardo
> Ribeiro Romero <listaora...@...> wrote:
> >
> > Hi ALL.
> >
> > I'm doing some BackTests but, in the report only appear the BUY, but
> > graphically appear the arrow to SELL
> >
> > How can I change the program to sell a position when the signals change.
> >
> > So, what I'm trying to do is.
> >
> > 1 - Sell the stocks
> > 2 - Close the position and buy
> > 3 - Close the position and sell
> > 4 - Close and buy
> > 5 - Close and Sell
> >
> > Please see the attached file as example.
> >
> > Thanks in advance,
> > Ricardo.
> >
>
>  
>

Reply via email to