PureBytes Links
Trading Reference Links
|
Hi,
I'm not Dimitris but I'm taking the liberty of answering your post
anyway. I hope that's OK.
The reason your second set of parameters isn't showing up is that
you're using the same title for both ("EMA periods","Wilder
periods"), try changing the second set and you'll see them too.
Better still, when you want to plot the same function several times
using different sets of parameters you're better off making a user
defined function which you can call multiple times.
Here's your code slightly modified:
////////////////////////////////
// RevEngEMARSI
////////////////////////////////
function RevEngEMARSI(eper,wper)
{
Value = EMA( RSI( wper ), eper );
AUC = Wilders( Max( C - Ref( C, -1 ), 0 ), wper );
ADC = Wilders( Max( Ref( C, -1 ) - C, 0 ), wper );
x = ( wper - 1 )*( ADC * Value/(100-Value)-AUC);
RevEndEMARSI = IIf( x >= 0, C + x, C + x*(100-Value)/Value );
return RevEndEMARSI;
}
//function calls
rem1=RevEngEMARSI(65,14);
rem2=RevEngEMARSI(300,21);
rem3=RevEngEMARSI(10,50);
Plot( rem1, "", colorRed,styleLine);
Plot( rem2, "", colorGreen,styleLine);
Plot( rem3, "", colorBlue,styleLine);
Regards
Johan
--- In amibroker@xxxxxxxxxxxxxxx, xcitemint@xxxx wrote:
> Dear Dimitris,
>
> I have read many of your posts on the Ami Bulletin Board and have
been
> impressed with your knowledge of practical trading application and
programming
> ability. I tried to use your RSI/MACD however I was not able to
find the
> Degauss.dll. I would appreciate it if you could send me a copy.
(I have 20 years
> trading experience and am new to AmiBroker) On another note, I
have been working
> with the RevEngEMARSI indicator and have found it to be a great
indicator since
> it moves with the price action. I am trying to develop a system
that uses
> more than one set of time paramaters for both the "EMA periods"
and "Wilder
> periods". I can not get two different plotted lines with the way
I am attempting
> to do it. Could you help me figure out what I am doing wrong?
Any help will
> be greatly appreciated. The following is what I am currently
using:
>
> ////////////////////////////////
> // RevEngEMARSI
> ////////////////////////////////
>
> eper = Param("EMA periods", 65, 1, 1000, 1 );
> wper = Param("Wilder periods", 14, 1, 100, 1 );
> Value = EMA( RSI( wper ), eper );
> AUC = Wilders( Max( C - Ref( C, -1 ), 0 ), wper );
> ADC = Wilders( Max( Ref( C, -1 ) - C, 0 ), wper );
> x = ( wper - 1 )*( ADC * Value/(100-Value)-AUC);
>
> RevEndEMARSI = IIf( x >= 0, C + x, C + x*(100-Value)/Value );
>
> Plot( Close, Date() + ", Close", colorBlack, styleCandle );
> Plot( RevEndEMARSI, "Reverse EMARSI", colorRed );
> ////////////////////////////////
> // ReM
> ////////////////////////////////
>
> aper = Param("EMA periods", 300, 1, 1000, 1 );
> xper = Param("Wilder periods", 21, 1, 100, 1 );
> Factor = EMA( RSI( xper ), aper );
> XUC = Wilders( Max( C - Ref( C, -1 ), 0 ), xper );
> XDC = Wilders( Max( Ref( C, -1 ) - C, 0 ), xper );
> x1 = ( xper - 1 )*( XDC * Factor/(100-Factor)-XUC);
>
> ReM = IIf( x1 >= 0, C + x1, C + x1*(100-Factor)/Factor );
> //Plot(C, "O:" + O + "H:"+ H + "L:" + L + "C:" +
C,colorBlack,styleCandle);
> Plot( ReM, "ReM", colorBrightGreen,styleThick );
>
> Also, I noted that in one of your posts you stated that you could
not short
> stocks in your country. Where do you live? I appreciate you
sharing your vast
> knowledge with those of us that are new to programming.
>
> Sincerely,
>
> David Keleher
------------------------ 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/
|