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

Re: [amibroker] Need Help "Trendline Studies" with Parameters Function



PureBytes Links

Trading Reference Links

//Trendline Studies - Anthony Faragasso 
pds=Param("pds",10,5,28,1);
Sell=Cross(MA(C,pds),C);//Notice the position of the variables 
Buy=Cross(C,MA(C,pds));//Notice the position of the variables 
Plot(C,"",colorBlack,styleCandle); 
Plot(MA(C,pds),"",colorYellow,styleLine); 
//PlotShapes(IIf(Buy,shapeUpArrow,shapeNone),colorGreen); 
//PlotShapes(IIf(Sell,shapeDownArrow,shapeNone),colorRed); 
SO=ATR(1); //Shapes offset 
PlotShapes(Buy, colorBrightGreen, 0,C-SO ); 
PlotShapes(Sell*2, colorRed, 0,C+SO ); 
Title=Name()+"..."+"( "+WriteVal(pds,1)+" ) period Moving_Avg "; 
 
 
-------Original Message-------
 
From: amibroker@xxxxxxxxxxxxxxx
Date: Friday, March 07, 2003 16:30:44
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] Need Help "Trendline Studies" with Parameters Function
 
First, thank you Anthony Faragasso for this indicator.
I would like to have the "parameters" function applied to this 
formula to enable the slider adjustment.
Can someone please modify the forumula?
Thanks in advance for your help
Jim
 
 
//Trendline Studies - Anthony Faragasso 
 
Sell=Cross(MA(C,10),C);//Notice the position of the variables 
Buy=Cross(C,MA(C,10));//Notice the position of the variables 
Plot(C,"",colorBlack,styleCandle); 
Plot(MA(C,10),"",colorYellow,styleLine); 
//PlotShapes(IIf(Buy,shapeUpArrow,shapeNone),colorGreen); 
//PlotShapes(IIf(Sell,shapeDownArrow,shapeNone),colorRed); 
SO=ATR(1); //Shapes offset 
PlotShapes(Buy, colorBrightGreen, 0,C-SO ); 
PlotShapes(Sell*2, colorRed, 0,C+SO ); 
 
 
Yahoo! Groups Sponsor
ADVERTISEMENT
 
 
 
 
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 
 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 
 
 

------------------------ Yahoo! Groups Sponsor ---------------------~-->
New Yahoo! Mail Plus. More flexibility. More control. More power.
Get POP access, more storage, more filters, and more.
http://us.click.yahoo.com/Hcb0iA/P.iFAA/46VHAA/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 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/