[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: more ela code questions



PureBytes Links

Trading Reference Links

tried to post this yesterday....didnt get through...sorry if it is a double post


OK John, here are my last two letters from them

here is the first code...it exits the same day that the position is entered

Vars:Mp(0);
Mp=MarketPosition;

Value0=Highest(High,20);

Buy at Value0 Stop;
If Mp=1 and Mp[1]=0  then
  Value1=Lowest(Low,20);

ExitLong at Value0-Value1 Stop;


so I wrote them and asked if they could fix it and generally they do a good job, but instead they tried to make it so it only exits at a profit? So I didnt even try their revision

Omega wrote back.....
Thank you for choosing Omega Research, Inc. I add one condition
which will force the System to only try to exit if there is a profit in your
position.  

Here is the System:

Inputs:Len(20);
 Vars:Mp(0);
Mp=MarketPosition;

Value0=Highest(High,Len);

Buy at Value0 Stop;
If Mp=1 and Mp[1]=0  then
Value1=value0-Lowest(low,Len)[1];

If PositionProfit>0 then
ExitLong at Value0-Value1 Stop;



*********** REPLY SEPARATOR ***********

On 11/17/98, at 12:00 PM, joachim@xxxxxxxxxxxx wrote: 

>Well Andy....   Sometimes code has filters in it so it will only work on certain data.  The Phil Lane System posted Friday was like that....it was written for SPX data.   If you take out or modify the filter paramenters then it works on any data.  Lets see the text code Omega sent you.
>
>
>John
>
>
>Andy Dunn wrote:
>
>> I have written Omega ela support about 5 times on this one and they can't seem to get it correct...perhaps some of you ela gurus can help...I am looking for the code for a break-out system, and the stop is the distance between the highest high and lowest low the day before the trade. So Richard Donchian 20 day break out with a trailing stop that essentially has the volatility of the last X days built in
>>
>> - go LONG tomorrow at open on a breakout of the last 20 days
>> - a trailing stop that is the difference between the highest high and lowest low for the last 20 days
>>
>> if anyone could help with this, i certainly would appreciate it...the code omega sent doesn't work
>>
>> thanks
>>
>> Andy