- Joined
- 24 October 2005
- Posts
- 1,302
- Reactions
- 834
Captain Black wrote:
What does this metric tell you (I know what the forumlae is), but am interested in your interp.
What's the minumum for this metric that you would target before you consider it a robust and profitable system?
Thanks Captain!
Hi all,
Looking to add position score to my scan results. I have tried the AddColumn function without any luck. Suggestions?
Thanks Capt'n,
So if I used exploration instead of a scan, I would need to add the Filter variable (and additional columns) - would I set the filter to:
Filter = 1
or
Filter = Buy
or are they effectively the same?
I will tinker at home tonight.
Cheers
Filter = Buy AND PositionScore;
Filter = PositionScore;
SetChartOptions(0,chartShowArrows|chartShowDates);
_N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) Vol " +
WriteVal( V, 1.0 ) +
" {{VALUES}}",
O, H, L, C, SelectedValue( ROC( C, 1 )) ));
Ticker = ParamStr("Symbol", Name() );
PlotForeign( Ticker, Ticker, ParamColor("Color", colorCycle ),
ParamStyle("Style",styleCandle,maskAll) );
Howdy folks,
Just wondering if anyone can help me out here, I have the AFL code for plotting a foreign ticker(I've attached the code below so you all know what I'm on about), and I'm just wondering if there is a way to modify it so that it doesn't show the OHLC values for the main ticker on the chart, but shows the OHLC for the foreign ticker only. All the code does is display the close price for the foreign symbol, along with the OHLC values for the main symbol, which I already have in the title on the chart.
Any help would be muchly appreciated
Code:SetChartOptions(0,chartShowArrows|chartShowDates); _N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) Vol " + WriteVal( V, 1.0 ) + " {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 )) )); Ticker = ParamStr("Symbol", Name() ); PlotForeign( Ticker, Ticker, ParamColor("Color", colorCycle ), ParamStyle("Style",styleCandle,maskAll) );
Hi PF,
When I apply your AFL code I get the OHLC values of the selected ticker and close of the foreign symbol in the title and a chart of the OHLC of the Foreign symbol. I don't see any OHLC chart of the selected ticker? Perhaps I've misunderstood your question?
Hi captain,
What I'd like is to not have the OHLC values of the selected ticker in the title, and instead of just the closing value of the foreign ticker displayed, I'd like to be able to see the O,H and L values as well.
SetChartOptions(0,chartShowArrows|chartShowDates);
Ticker = ParamStr("Symbol", Name() );
SetForeign(Ticker);
_N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) Vol " +
WriteVal( V, 1.0 ) +
" {{VALUES}}",
O, H, L, C, SelectedValue( ROC( C, 1 )) ));
RestorePriceArrays();
PlotForeign( Ticker, Ticker, ParamColor("Color", colorCycle ),
ParamStyle("Style",styleCandle,maskAll) );
Still not sure I understand completely (it's been a lonnnggg day..)
This code replaces the selected ticker values in the title with the foreign ticker values..
Code:SetChartOptions(0,chartShowArrows|chartShowDates); Ticker = ParamStr("Symbol", Name() ); SetForeign(Ticker); _N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) Vol " + WriteVal( V, 1.0 ) + " {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 )) )); RestorePriceArrays(); PlotForeign( Ticker, Ticker, ParamColor("Color", colorCycle ), ParamStyle("Style",styleCandle,maskAll) );
Hi all,
Why does the ROC use periods +1 as a calculation instead of periods?
e.g. ROC(C,10) uses 11 periods instead of 10.
indices 0-5
2 2 2 2 2 1
ROC(x,5) will give 1 instead of 0.
Does this make sense?
Cheers,
JB
Hi Gunslinger --
In order to get a comparison, there must be two values -- ROC(C,1) uses the two values that are as of: 1. the current bar, and 2: the bar 1 bar ago.
Thanks Howard,
I guess if you think of it as a 1 day ROC being approximately the opening vs close on same day but since I'm using daily data it uses the close of p-1.
Just the way my mind works, thanks for your clarification.
Cheers,
JB
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?