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

RE: [amibroker] need some debugging help on this one



PureBytes Links

Trading Reference Links

Hi DT,

I added a colored Histogram to your T3 and the buy and sell arrows 
are not centered over the T3. Any thoughts on how to get them back to 
where they belong?

function T3(array,p,s)
{
e1=EMA(C,p);
e2=EMA(e1,p);
e3=EMA(e2,p);
e4=EMA(e3,p);
e5=EMA(e4,p);
e6=EMA(e5,p);
c1=-s^3;
c2=3*(s^2+s^3);
c3=-6*s^2-3*s-3*s^3;
c4=1+3*s+3*s^2+s^3;
Ti3=c1*e6+c2*e5+c3*e4+c4*e3;
return ti3;
}
s=0.7;
T3A=T3(C,3,s);T3B=T3(C,5,s);
Cond3=T3A-T3B;
//Plot(Cond3,"T3-T5",1,2|styleOwnScale);
Plot(Cond3,"T3 Histo",IIf(Cond3 <(Ref(Cond3,-
1)),colorRed,IIf(Cond3 >(Ref(Cond3,-
1)),colorGreen,16)),2|styleOwnScale);

Plot(T3A,"T3A",colorBlack,1);Plot(T3B,"T3B",colorWhite,1);
Sell=Cross(T3b,T3a);Buy=Cross(T3a,T3b);
PlotShapes(shapeDownArrow*Sell,colorRed);
PlotShapes(shapeUpArrow*Buy,colorGreen);
AlertIf( Sell, "SOUND C:\\Windows\\Media\\Tada.wav", "Audio alert");
AlertIf( Buy, "SOUND C:\\Windows\\Media\\Chimes.wav", "Audio alert"); 

Thanks,

John
--- In amibroker@xxxxxxxxxxxxxxx, "DIMITRIS TSOKAKIS" <TSOKAKIS@xxxx> 
wrote:
> Prashanth
> Now you take a part of the bandwidth for a PERSONAL subject !!
> Anyway, Instead of [useless] personal discussions, let us be more 
> creative:
> 5min ago I read AlertIf function from the 4.50 HELP, no problem 
with 
> the guidelines, here is the full IB code.
> 
> function T3(array,p,s)
> {
> e1=EMA(C,p);
> e2=EMA(e1,p);
> e3=EMA(e2,p);
> e4=EMA(e3,p);
> e5=EMA(e4,p);
> e6=EMA(e5,p);
> c1=-s^3;
> c2=3*(s^2+s^3);
> c3=-6*s^2-3*s-3*s^3;
> c4=1+3*s+3*s^2+s^3;
> Ti3=c1*e6+c2*e5+c3*e4+c4*e3;
> return ti3;
> }
> s=0.7;
> T3A=T3(C,3,s);T3B=T3(C,5,s);
> Plot(T3A,"T3A",colorBlack,1);Plot(T3B,"T3B",colorWhite,1);
> Sell=Cross(T3b,T3a);Buy=Cross(T3a,T3b);
> PlotShapes(shapeDownArrow*Sell,colorRed);
> PlotShapes(shapeUpArrow*Buy,colorGreen);
> AlertIf( Sell, "SOUND C:\\Windows\\Media\\Tada.wav", "Audio alert");
> AlertIf( Buy, "SOUND C:\\Windows\\Media\\Chimes.wav", "Audio 
alert");
> 
> Turn on the speakers, move the cursor from bar to bar and enjoy !!
> [Tada.wav and Chimes.wav is from my W98 Media. Replace them 
according 
> to your H/D Media file]
> Dimitris Tsokakis
> --- In amibroker@xxxxxxxxxxxxxxx, "Prashanth" <prash454@xxxx> wrote:
> > Hi Dimitris,
> > 
> > I in no way wanted to discourage Bruiser from asking his 
questions. 
> If u check the mails, U will see that I was the first person who 
> responded to him. In my last letter also I asked him to first check 
> if the Alertif funcion is working by using the simple MACD cross 
> example given in the help files. If that itself wouldnt work, I 
think 
> one can assume that there is a problem with either the Sound file, 
> Speaker or even the Sound Card. 
> > 
> > I myself have benefitted immensely from this group, but all the 
> same I am extremely sorry if my letter was misunderstood.
> > 
> > Regards
> > Prashanth
> > 
> > 
> >   ----- Original Message ----- 
> >   From: DIMITRIS TSOKAKIS 
> >   To: amibroker@xxxxxxxxxxxxxxx 
> >   Sent: Friday, April 30, 2004 1:20 PM
> >   Subject: [amibroker] Re: What's wrong with this formula?
> > 
> > 
> >   Bruiser,
> >   Do not hesitate to ask, this is a free forum. If some reader is 
> not 
> >   interested, it is easy to delete incoming messages.
> >   BTW, did you solve the problem ?
> >   [I never use Alertif() function and I can not help in this 
> specific 
> >   part, I think the rest is clear...]
> >   Dimitris Tsokakis
> >   >   -----Original Message-----
> >   >   From: bruiserbbq [mailto:bruiserbbq@x...]
> >   >   Sent: Thursday, April 29, 2004 11:17 PM
> >   >   To: amibroker@xxxxxxxxxxxxxxx
> >   >   Subject: [amibroker] Re: What's wrong with this formula?
> >   > 
> >   > 
> >   >   Thanks for all your help guys, very much appreciated. And 
> OK..I'm
> >   >   sorry I took up too much BB time...but I couldn't figure my 
> >   problem
> >   >   out...even after consulting the help files.
> >   > 
> >   >   Thanks once again.
> >   > 
> >   >   Dumb Ol'Bruiser.
> >   > 
> >   > 
> >   > 
> >   >   Send BUG REPORTS to bugs@xxxx
> >   >   Send SUGGESTIONS to suggest@xxxx
> >   >   -----------------------------------------
> >   >   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
> >   > 
> >   > 
> >   >         Yahoo! Groups Sponsor
> >   >               ADVERTISEMENT
> >   > 
> >   > 
> >   > 
> >   > 
> >   > 
> >   > --------------------------------------------------------------
--
> ----
> >   --------
> >   > --
> >   >   Yahoo! Groups Links
> >   > 
> >   >     a.. To visit your group on the web, go to:
> >   >     http://groups.yahoo.com/group/amibroker/
> >   > 
> >   >     b.. To unsubscribe from this group, send an email to:
> >   >     amibroker-unsubscribe@xxxxxxxxxxxxxxx
> >   > 
> >   >     c.. Your use of Yahoo! Groups is subject to the Yahoo! 
> Terms of 
> >   Service.
> > 
> > 
> > 
> >   Send BUG REPORTS to bugs@xxxx
> >   Send SUGGESTIONS to suggest@xxxx
> >   -----------------------------------------
> >   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 
> > 
> > 
> >         Yahoo! Groups Sponsor 
> >               ADVERTISEMENT
> >              
> >        
> >        
> > 
> > 
> > ------------------------------------------------------------------
--
> ----------
> >   Yahoo! Groups Links
> > 
> >     a.. To visit your group on the web, go to:
> >     http://groups.yahoo.com/group/amibroker/
> >       
> >     b.. To unsubscribe from this group, send an email to:
> >     amibroker-unsubscribe@xxxxxxxxxxxxxxx
> >       
> >     c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms 
of 
> Service.



------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com.  Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/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 
Yahoo! Groups Links

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

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