Helo mr. graham thanks for your reply. but i'm unable to understand what that mean. kindly explain where is the wrong and what modification should i have done to this.
thanks in advance ajay --- In [email protected], Graham <[EMAIL PROTECTED]> wrote: > > 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 <[EMAIL PROTECTED]> 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); > > > > >
