What is your question?
You don't have any stop condition on your code.

--- In [email protected], "fcampuzan" <fcampu...@...> wrote:
>
> Hello to everybody,
> 
> I am a newbie and have a question relating to an amibroker code that gives 
> absurd results. I hope i post this message in the good section.The problem 
> comes when I had the volatily stop piece of code. Here is the "complete" code:
> 
> Buy =         Close > 15
>       AND Close > Ref( HHV(  Close , 250 ) , -1 )
>       AND Volume > 100000;
> 
> Sell =        Close < MA(  Close , 100 );
> 
> PositionSize = -1.5 * BuyPrice/(2*ATR(20));
> 
> 
> PositionSize = -2 * BuyPrice/(2*ATR(10));
> 
> Thanks for your answers.
> 
> Florian
> 
> France
>


Reply via email to