there is not the definition of the buyprice
buyprice=valuewhen(buy,close); /* for example*/
> Brook
>
> Buy = Cross(Close,EMA(Close,45));
>
> SellStop = BuyPrice-ATR(45)/2;
>
> Sell = Cross( SellPrice,Sellstop);
>
> Buy = ExRem( Buy, Sell );
>
> Sell = ExRem( Sell, Buy );
|