Creating my own indicator (basics)
I am trying to use javascript in order to create an indicator for Enterprise value to Earnings ratio. I just wanted to know if there is already an existing indicator template or how should I go about it.
Coding Question Applying an Indicator to an Indicator
I'm having some issues with getting the code right with creating an custom indicator that can be charted and used in a screener that applies an indicator to another indicator.
Specifically, I'm trying
...
one more parameter for "istrue"
It would have been helpful in certain situations if we can have one more parameter for "istrue" as follows:
a =istrue(close>sma(10),20,10) meaning price should have closed above 10-day sma
...
SEARCHFOR THEN WITHIN
I was using the SEARCHFOR function for particular logic but constantly getting 0 on all bars. To verify, i have just tried plotting your example itself as follows:
Trading financial instruments, including foreign exchange on margin, carries a high level of risk and is not suitable for all investors. The high degree of leverage can work against you as well as for you. Before deciding to invest in financial instruments or foreign exchange you should carefully consider your investment objectives, level of experience, and risk appetite. The possibility exists that you could sustain a loss of some or all of your initial investment and therefore you should not invest money that you cannot afford to lose. You should be aware of all the risks associated with trading and seek advice from an independent financial advisor if you have any doubts.