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

Re: [amibroker] kindly help with this exploration



PureBytes Links

Trading Reference Links

Enclose the groups of conditions that work together in brackets

-- 
Cheers
Graham Kav
AFL Writing Service
http://www.aflwriting.com


On 22/03/2008, tummalaajaybabu <tummalaajaybabu@xxxxxxxxx> wrote:
> Hi
>
>  Kindly help any body this exploration. I'm getting trend detetion with
>  all 3 frames correctly but buy sell signals generated not coming
>  properly. For example : Actually my intention is when the primary and
>  intermediate trend is down and short term trend is up the signal is
>  sell . But in the exploration i'm getting the buy signal instead of
>  sell signal. Like that when the trend is sideways i have mentioned
>  both buy and sell opportunities. But that signal also is not
>  generating with this exploration.
>
>  Here with i'm giving my code :
>
>  TimeFrameSet(inMonthly);
>  PTUp = Close > MA(C, 20);
>  PTDn = Close < MA(C, 20);
>  TimeFrameRestore();
>
>  TimeFrameSet(inWeekly);
>  ITup = Close > MA(C, 20);
>  ITdn = Close < MA(C, 20);
>  TimeFrameRestore();
>
>  TimeFrameSet(inDaily);
>  STup = Close > MA(C, 20);
>  STdn = Close < MA(C, 20);
>  TimeFrameRestore();
>
>
>  Buy = TimeFrameExpand(PTUp,inMonthly) AND
>  TimeFrameExpand(ITup,inWeekly) AND TimeFrameExpand(STup,inDaily)OR
>    TimeFrameExpand(PTUp,inMonthly) AND TimeFrameExpand(ITup,inWeekly)
>  AND TimeFrameExpand(STdn,inDaily)OR
>            TimeFrameExpand(PTdn,inMonthly) AND TimeFrameExpand(ITup,inWeekly)
>  AND TimeFrameExpand(STup,inDaily);
>
>  Sell = TimeFrameExpand(PTdn,inMonthly) AND
>  TimeFrameExpand(ITdn,inWeekly) AND TimeFrameExpand(STdn,inDaily)OR
>             TimeFrameExpand(PTdn,inMonthly) AND
>  TimeFrameExpand(ITdn,inWeekly) AND TimeFrameExpand(STup,inDaily)OR
>             TimeFrameExpand(PTUp,inMonthly) AND
>  TimeFrameExpand(ITdn,inWeekly) AND TimeFrameExpand(STdn,inDaily);
>
>  Both = TimeFrameExpand(PTup,inMonthly) AND
>  TimeFrameExpand(ITdn,inWeekly) AND TimeFrameExpand(STup,inDaily);
>                           TimeFrameExpand(PTdn,inMonthly) AND
>  TimeFrameExpand(ITup,inWeekly) AND TimeFrameExpand(STdn,inDaily);
>
>
>
>  Filter = C;
>
>  AddColumn( 32, "Primary Trend", formatChar, colorDefault,
>            IIf(Filter && PTUP,colorGreen,colorRed)  );
>  AddColumn( 32, "Intermediate Trend", formatChar, colorDefault,
>            IIf(Filter && ITUP,colorGreen,colorRed)  );
>  AddColumn( 32, "Shorterm Trend", formatChar, colorDefault,
>            IIf(Filter && STUP,colorGreen,colorRed)  );
>
>
>  AddColumn(Buy,"Buy",1);
>  AddColumn(Sell,"Sell",1);
>  AddColumn(Both, "Buy & Sell", 1);
>  AddColumn(C,"close",1.2);
>
>

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

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/