Hi,
I have played around with EQUITYFRAME and the example provided here: https://www.prorealcode.com/documentation/equityframe/.
I keep getting errors though that the equityframe cannot be applied to the selected security or that the market does not exist. What would be the correct market names? Is the market name = name of a List? Can I create a custom list and compare securities to eachother in that custom list?
I would like to achieve the exact thing explained in the example but comparing all stocks to some different indecis. Perhaps also create custom indecis if possible. Is it even possible to create a custom index?
The exact code im using now is:
TIMEFRAME(daily)
CloseVal = Close
EQUITYFRAME("NASDAQ","SHLM")
CloseInd = Close
EQUITYFRAME(default)
Ratio = (CloseVal / CloseInd) * 100
RelativeStrength = (Ratio - Ratio[1]) * 100
SCREENER(RelativeStrength AS "RelativeStrength")
Did you see below as stated in the link on your post above?
I’m not sure what it means either :), but maybe it’s saying you can’t compare currency with commodities or currency with index / indices? Not doing that are you?
NB: Through IG market or PRT CFD, it is not possible to compare instruments that are not in the same ‘market’ (list).
I also read that and at the moment I’m actually just trying to get the EQUITYFRAME to work by comparing different securities in one market but I cant seem to get it working.
I also wonder why it is not possible to compare securities to an index. Am I missing something?
Maybe the number of decimal places in the price / value has something to do with it?
Also some instruments have volume figures and some do not?.
Also maybe its a technical thing that equityframe just cant be applied across different lists?
In short … I don’t know! 🙂
Ill have a go and let you know if I get it working.
Naah I can’t make any sense of it, sorry sauka.
It should make you feel better anyway … knowing you not on your own!? 🙂
Nicolas may spot this and advise how to get equityframe working.
It’s not possible to compare a security with an index, if these 2 are not in the same “shares list”. I know it’s weird, but that’s how it works.
Well, I cant even get equityframe to compare different stocks in the same list. could you pleae give some advice?
Please share us your code, so we could give more precise advises! 😉
Code below off the link below, we both couldn’t get any ‘sense’ out of it, and we both tried different instruments (out of same list).
https://www.prorealcode.com/documentation/equityframe/
Thank you Nicolas
TIMEFRAME(daily)
CloseVal = Close
EQUITYFRAME("NASDAQ","AMZN")
CloseInd = Close
EQUITYFRAME(default)
Ratio = (CloseVal / CloseInd) *100
RelativeStrength = (Ratio - Ratio[1]) *100
SCREENER(RelativeStrength AS"RelativeStrength")
Here is a simple example to calculate the EURGBP current value with EURUSD and GBPUSD:
EQUITYFRAME("Currencies","EURUSD")
eurusd=close
equityframe("Currencies","GBPUSD")
gbpusd=close
result=eurusd/gbpusd
screener[1](result)