Rank: Newbie
Groups: Registered, Registered Users Joined: 11/29/2013(UTC) Posts: 9
|
Hi Can anyone convert constance brown composite index amibroker code to metastock. A = RSI( 14)-Ref( RSI (14),-9)+ MA(RSI(3),3); Plot1 = MA(A, 13); Plot2 = MA(A,33);
Plot( A, "The Composite Index", colorRed, styleThick); Plot( Plot1, "", colorGreen); Plot( Plot2, "", colorLightBlue);
PlotGrid(0, colorLightGrey); Please support. It will help us in discovering hiodden rsi secrets when combined with momentum. Charanpreet charangoldy@gmail.com Jonathan is master of conversion.Kindly support
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Unverified Users Joined: 9/13/2004(UTC) Posts: 673 Location: Salt Lake City, UT
|
I don't really see where they determine the type of moving average, but assuming a simple moving average the formulas seem fairly straightforward. Keep in mind I have never used Amibroker. Also, colors cannot be defined in the formula language, you would have to change to color & style of each line after you plot it. If you don't want simple, just change the S inside all the parentheses to E for exponential, W for weighted, etc.
-------------------------------------------------- A:=RSI(14)-Ref(RSI(14),-9)+Mov(RSI(3),3,S); Plot1:=Mov(A,13,S); Plot2:=Mov(A,33,S); A; Plot1; Plot2; --------------------------------------------------
Not really sure what the PlotGrid does. If it is supposed to draw a 0 line that can be done easily enough but the indicator doesn't really seem to operate around 0. If it is for gridlines themselves, those are enabled in the X-Axis Properties or Y-Axis properties Grid tab.
|
|
|
|
Rank: Newbie
Groups: Registered, Registered Users Joined: 11/29/2013(UTC) Posts: 9
|
Dear Justin Thanks for the support I also got some code from some website CI = rsi(14) - ref(rsi(14),-9) + mov(rsi(3),3,s); plot1 =
mov(a,13,s); plot2 = mov(a,33,s);
a;plot1;plot2
Here 9 is momentum averages are simple and indicator is between 0-100 How to plot it in metastock.should i go and create new indicator Please support
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Unverified Users Joined: 9/13/2004(UTC) Posts: 673 Location: Salt Lake City, UT
|
Yes in the Tools-->Indicator Builder you would create a New indicator.
That formula you posted looks a bit odd as they are using CI as a variable then calling A at the end. If you're using CI as a variable then you need to call CI, not A. Also, when defining variables you need a colon between them and the =, such as F1:=Mov(C,20,S);
|
|
|
|
Rank: Newbie
Groups: Registered, Registered Users Joined: 11/29/2013(UTC) Posts: 9
|
Dear jonathan thanks I have put it in metastock But the indicator is crossing 100. It should hang 0-100
|
|
|
|
Rank: Newbie
Groups: Registered, Registered Users Joined: 11/29/2013(UTC) Posts: 9
|
please check the link for CFG MO indicator plotted image by andrew cardwell http://www.dailyfx.com/f...momentum-oscillator.html">http://www.dailyfx.com/forex_forum/signal-strategy-fxcm-marketscope/314354-cfg-mo-cardwell-financial-group-momentum-oscillator.htmlhttp://www.dailyfx.com/forex_forum/signal-strategy-fxcm-marketscope/314354-cfg-mo-cardwell-financial-group-momentum-oscillator.html
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Unverified Users Joined: 9/13/2004(UTC) Posts: 673 Location: Salt Lake City, UT
|
I am pretty sure that is not the case. Those are likely different Overbought / Oversold levels and are designed to be crossed. In any event, after researching this a bit further, it would appear this code is Copyrighted:
Cardwell Financial Group Momentum Oscillator
Edit: The DailyFX image shows the indicator crossing above 100 and below 0.
|
|
|
|
Rank: Newbie
Groups: Registered, Registered Users Joined: 11/29/2013(UTC) Posts: 9
|
thanks Agreed Can you confirm the image in the website has same settings as in our code. we can change the averages settings
|
|
|
|
Rank: Newbie
Groups: Registered, Registered Users Joined: 11/29/2013(UTC) Posts: 9
|
Hi everyone.. after discussions it is very clear that Composite index resembles Cardwell CFG MO. And is patented by Andrew Cardwell. As the codes are already published. I have requested andrew to permit us for using it for several trading platforms. And let us believe everyone that CFG MO is original Andrews work and should be respected and admired. CFG MO strategy is being worked for and i am checking its utility for checking' reversals divergences price targets trend analysis range shift oversold and overbought. Suggestions are welcomed/ Hope laurus will support us . He is master
|
|
|
|
Users browsing this topic |
Guest (Hidden)
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.