PureBytes Links
Trading Reference Links
|
Hi Graham,
I think what you need is:
Flip = (BuySig1 AND BuySig2, SellSig);
A 1 is returned when BuySig1 AND BuySig2 are True and is reset to
zero whan SellSig is True.
Worth a try.
Keith
--- In amibroker@xxxxxxxxxxxxxxx, "Graham" <gkavanagh@xxxx> wrote:
> I am trying to understand the method of holding a trade signal
until the
> confirmation signal occurs (if it does)
>
> I have a relatively simple system that requires the cross of 2
types of MAs,
> then before entry I need the cross of a stochastic above its
trigger line.
> If the confirmation signal occurs then Buy occurs.
>
> The summary of the logic would be
>
> BuySig1 = cross(MA1,MA2);
>
> BuySig2 = cross(Stoch1,Stoch2);
>
> SellSig = cross(MA2,MA1);
>
>
>
>
>
> If BuySig2 does not happen before a sell signal, then no trade
occurs. There
> are times when I get multiple BuySig2 signals after a trade would
have
> entered, but I do not want to add more trades, just hold on the
first one.
>
> What I do not understand is if the Flip function works for this, or
is it
> the Exrem I should use. Using the Hold would be ok but I do not
want to set
> any time constraints.
>
>
>
> Cheers,
> Graham
>
> <http://groups.msn.com/ASXShareTrading>
> http://groups.msn.com/ASXShareTrading
>
> <http://groups.msn.com/FMSAustralia>
http://groups.msn.com/FMSAustralia
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Rent DVDs Online - Over 14,500 titles.
No Late Fees & Free Shipping.
Try Netflix for FREE!
http://us.click.yahoo.com/YoVfrB/XP.FAA/uetFAA/GHeqlB/TM
---------------------------------------------------------------------~->
Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
|