Announcement

Collapse
No announcement yet.

Linear Kama

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Linear Kama

    Hi,

    I have a suggestion for a new Study,

    As opposed to using standard Moving averages to create LSMA, I would like an efs that uses KAMA to create the signal.

    Title: LSKA
    Regular Study
    Price Study

    Hopefully it should be feasible to use the KAMA efs (which is available) to plot a Moving Average of the in-built Linear Regression Study. The only configurable parameters should be nLength for Kama and nLength for Linear Regression.

  • #2
    rogerha
    I am not aware that the LSMA uses a moving average in its calculations. In my understanding it is just the continuous plot of the end point of a regression
    Irrespective, with EFS2 which is available in version 7.9 (currently in beta) and the amStudies Function Library you can already easily set up a study of that kind. The enclosed code is an example of how it can be done.

    PHP Code:
    function preMain() {
        
    setPriceStudy(true);
        
    setStudyTitle("LSMAofKAMA");
        
    setCursorLabelName("LSKA");
    }

    var 
    amLib addLibrary("amStudies.efsLib");

    function 
    main() {

        return 
    amLib.amLSMA(10,amKAMA(5,2,30));

    The resulting plot is shown in the following image



    For information on the amStudies Function Library see this thread.
    For more information or questions on EFS2 visit the EFS 2 Development Forum
    Alex

    Comment

    Working...
    X