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

Re: [trading] Re: [amibroker] Buy = Cover - how to eliminate false signal?



PureBytes Links

Trading Reference Links

Thanks Tomasz,
but a little I'm confused.
The "correct condition" is that the last instance of "Cover" was to close a Short trade, 
and not any other instance of Cover.
So how do I specify:
" Buy = Short closed by Cover therefore Buy" ?
Sorry if's obvious, but I can't seem to grasp the logic needed.
cheers

----- Original Message ----- 
From: "Tomasz Janeczko" <amibroker@xxxxxx>


> Hello,
>
> Just REMOVE this line:
> buy = cover;
>
> and replace it with correct condition.
> ----- Original Message ----- 
> From: "Beachie" <beachie41@xxxxxxxxxxx>
>>
>> Hi,
>> what I'm trying to do is to initiate a "Buy" when a Short has been closed by "Cover".
>> The code assigned to "Cover" on itself is simple & occurs frequently:
>>   Cover = H > Ref(H,-2)AND L > Ref(L,-2);
>>
>> The "Buy = Cover" generates Buys for *all* instance of Cover. What I want is a Buy only 
>> to
>> occur if the last instance of  Cover was to close a Short, not just when "H > 
>> Ref(H,-2)AND
>> L > Ref(L,-2)" is true
>> Thnaks!



------------------------ Yahoo! Groups Sponsor --------------------~--> 
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/