Dear Steve, Yes, this is the result that I need, and am getting now. I guess I did some mistake earlier, so I was getting wrong result. Now it is alright. And it works beautifully.
Thank you very much for your help. Best regards, Vinay On Sun, 30 Aug 2009 07:29:46 +0530, Steve Dugas <[email protected]> wrote: > Hi Vinay - Your code seems to work fine on my computer...is this what it is > supposed to look like? > > Steve > > ----- Original Message ----- > From: "Vinay Gakkhar." <[email protected]> > To: <[email protected]> > Sent: Saturday, August 29, 2009 9:24 PM > Subject: [amibroker] Please help in my formula > > >> Dear Steve, >> >> Many thanks for your immediate reply. >> >> After incorporating improvements suggested by you, I am now getting >> CPctOne arrows horizontally in my desired one-bar-before position, but >> vertically these arrows are not coming on the plot-line and are positioned >> much above or below the plot-line vertically. >> >> Another point. I am not getting the CPctTen arrows. >> >> Can you please guide me which corrections to make in my following revised >> formula: >> >> Plot (C, "Close", colorBlue, styleThick, Null, Null, 0); >> CPct0 = (C-(Ref(C,-1)))*100/(Ref(C,-1)) ; >> CPctOne = Ref( CPct0, 1 ); >> CPctTen = Ref( CPct0, 10 ); >> PlotShapes( IIf( CPctOne >= 4, shapeHollowUpArrow, shapeNone ) , >> colorPaleGreen ); >> PlotShapes( IIf( CPctOne <= -4 , shapeHollowDownArrow, shapeNone ) , >> colorGold ); >> PlotShapes( IIf( CPctTen >= 4, shapeHollowUpArrow, shapeNone ) , >> colorGreen ); >> PlotShapes( IIf( CPctTen <= -4 , shapeHollowDownArrow, shapeNone ) , >> colorRed ); >> >> Waiting for your reply. And sorry to be encroaching upon your precious >> time. >> >> Vinay Gakkhar >> >> >> >> On Sun, 30 Aug 2009 06:23:55 +0530, Steve Dugas <[email protected]> >> wrote: >> >>> Hi - You can shift the arrays to the left by using Ref with a positive >>> number... >>> >>> CPctOne = ref( CPct0, 1 ); >>> CPctTen = ref( CPct0, 10 ); >>> PlotShapes( IIF( CPctOne... >>> PlotShapes( IIF( CPctTen... >>> >>> Steve >>> >>> ----- Original Message ----- >>> From: Vinay Gakkhar. >>> To: Amibroker >>> Sent: Saturday, August 29, 2009 8:34 PM >>> Subject: [amibroker] Please help in my formula >>> >>> >>> Can anyone please help me? >>> >>> I have the following formula: >>> >>> Plot (C, "Close", colorBlue, styleThick, Null, Null, 0); >>> CPct0 = (C-(Ref(C,-1)))*100/(Ref(C,-1)) ; >>> PlotShapes( IIf( CPct0 >= 4, shapeHollowUpArrow, shapeNone ) , >>> colorPaleGreen ); >>> PlotShapes( IIf( CPct0 <= -4 , shapeHollowDownArrow, shapeNone ) , >>> colorGold ); >>> >>> This gives me arrows after my condition of CPct0 >= 4 or CPct0 <= -4 is >>> met. >>> >>> What should I change so that I get TWO arrows - the first arrow one bar >>> before my condition is met, and the second arrow 10 bars before my >>> condition is met. >>> >>> Thanks, and regards, >>> >>> Vinay Gakkhar >>> >>> >> >> >> -- >> >> >> >> ------------------------------------ >> >> **** IMPORTANT PLEASE READ **** >> This group is for the discussion between users only. >> This is *NOT* technical support channel. >> >> TO GET TECHNICAL SUPPORT send an e-mail directly to >> SUPPORT {at} amibroker.com >> >> TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at >> http://www.amibroker.com/feedback/ >> (submissions sent via other channels won't be considered) >> >> For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG: >> http://www.amibroker.com/devlog/ >> >> Yahoo! Groups Links >> >> >> >> > > > ------------------------------------ > > **** IMPORTANT PLEASE READ **** > This group is for the discussion between users only. > This is *NOT* technical support channel. > > TO GET TECHNICAL SUPPORT send an e-mail directly to > SUPPORT {at} amibroker.com > > TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at > http://www.amibroker.com/feedback/ > (submissions sent via other channels won't be considered) > > For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG: > http://www.amibroker.com/devlog/ > > Yahoo! Groups Links > > > > -- ------------------------------------ **** IMPORTANT PLEASE READ **** This group is for the discussion between users only. This is *NOT* technical support channel. TO GET TECHNICAL SUPPORT send an e-mail directly to SUPPORT {at} amibroker.com TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at http://www.amibroker.com/feedback/ (submissions sent via other channels won't be considered) For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG: http://www.amibroker.com/devlog/ 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:[email protected] mailto:[email protected] <*> To unsubscribe from this group, send an email to: [email protected] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
