Announcement

Collapse
No announcement yet.

question from new user about esignal pattern detection

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

  • question from new user about esignal pattern detection

    This may be a strange question but here goes. I currently use qcharts but am trying esignal to see how i like it. Is there a way to set up esignal to detect certain candlestick patterns? Ex. doji, shooting star Or is this something that will always have to done manually? Also can anyone tell what are advantages if any of esignal over qcharts?

  • #2
    zookerone

    Is there a way to set up esignal to detect certain candlestick patterns?
    In eSignal that can be done using EFS (Esignal Formula Script) which is eSignal's programming language.
    For example the enclosed script will detect Shooting Star and Doji candles and mark the corresponding bars with the text "SS" and Dj"
    Alex

    PHP Code:
    function preMain(){
        
    setPriceStudy(true);
        
    setShowCursorLabel(false);
        
    setDefaultFont("Arial",10,Color.red,Text.BOLD);
        
    setComputeOnClose();
    }

    function 
    main(){

        
    //Shooting Star
        
    var Min Math.min(close(0),open(0));
        var 
    Max Math.max(close(0),open(0));
        if(
    high(0)-Max>(Max-Min)*&& Min-low(0)<Max-Min){
            
    drawText("SS",AboveBar1,Color.magenta);
        }
        
    //Doji
        
    if(open(0)==close(0)){
            
    drawText("Dj",AboveBar1,Color.magenta);
        }

        return;

    Comment

    Working...
    X