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

Re: [amibroker] Re: RSI Contrarian System



PureBytes Links

Trading Reference Links

Hi Mike,

Thank you very much for your help!

Best regards,
Robert


On Apr 7, 2008, at 12:19 PM, Mike wrote:

> Hi,
>
> Try something like this:
>
> SetTradeDelays(1, 1, 0, 0);
>
> Buy = Cross(RSI(14), 60) AND Close > Ref(Close, -3);
> BuyPrice = Open;
>
> Sell = Cross(60, RSI(14)) OR BarsSince(Buy) == 5;
> SellPrice = Open;
>
> I'm assuming that even when RSI(14) drops below 60, you would delay
> selling until the next day Open.
>
> Mike
>
> --- In amibroker@xxxxxxxxxxxxxxx, Robert Lu <boblu007@xxx> wrote:
>>
>> Hello,
>>
>> Can anyone advise how to write a system under the following rules?
>>
>> Buy next day Open if RSI(14) crosses above 60 and close > Ref
> (Close, -3)
>>
>> After buy, sell anytime if RSI(14) drops below 60 or wait for 5
> days
>> and sell at open.
>>
>> I am not sure how to write Buy/Sell rules with certain conditions
> at
>> the same time.
>>
>> Thanks in advance for your help.
>>
>> Best regards,
>> Robert
>>
>
>
>
> ------------------------------------
>
> Please note that this group is for discussion between users only.
>
> To get support from AmiBroker please send an e-mail directly to
> SUPPORT {at} amibroker.com
>
> For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
> http://www.amibroker.com/devlog/
>
> For other support material please check also:
> http://www.amibroker.com/support.html
> Yahoo! Groups Links
>
>
>


------------------------------------

Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to 
SUPPORT {at} amibroker.com

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

For other support material please check also:
http://www.amibroker.com/support.html
Yahoo! Groups Links

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

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/amibroker/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:amibroker-digest@xxxxxxxxxxxxxxx 
    mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx

<*> 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/