Hello,
use this...it plots arrow on 50 level..i have checked ...

PlotShapes( shapeUpArrow * Buy, colorGreen, 0,50,0 );
PlotShapes( shapeDownArrow * Sell, colorRed, 0, 50,0 );

thank you
--- On Thu, 7/5/09, Anthony Faragasso <[email protected]> wrote:

From: Anthony Faragasso <[email protected]>
Subject: Re: [amibroker] STO MA Slope - Code Problem
To: [email protected]
Date: Thursday, 7 May, 2009, 5:52 PM











    
            
            


      
      


Ken,
 
Check your formula... you have the 
following:

SetChartOptions(50, chartShowArrows); 
//What is the 50 for ? 
 
try putting it at the very top of your 
formula:
 
SetChartOptions( 0, chartShowArrows ); 
//Try this
 
every thing else below 
 
 

  ----- Original Message ----- 
  From: 
  Ken H 
  
  To: amibro...@yahoogrou ps.com 
  Sent: Thursday, May 07, 2009 8:14 
AM
  Subject: Re: [amibroker] STO MA Slope - 
  Code Problem
  

  
  
  
    
    
      
        Hi Anthony
         
        Using either option I can not see the arrows.
         
        The code is now as follows:-
         
        _SECTION_BEGIN( "STO MA SLOPE");
        myMA1 = MA(C,8);
        SL=SlopeMA1 = 100*(myMA1- Ref(myMA1, 
        -1))/myMA1;
        HM=HHV(SL,120) 
        ;
        LM=LLV(SL,120) 
        ;
        STOSL=100*(SL- LM)/(HM-LM) 
        ;
        Plot(STOSL, "STOSL", colorDarkRed, 
        styleThick) ; 
        Plot(50, 
        "", 
        colorBlue,styleNoLabel); 
        _SECTION_END( ); 
         
        _SECTION_BEGIN("TEMA"); 
        P = ParamField("Price field",-1); 
        Periods = Param("Periods", 15, 
        2, 300, 
        1, 10 
        ); 
        Plot( TEMA( P, 
        Periods ), _DEFAULT_NAME(), ParamColor( "Color", 
        colorCycle ), ParamStyle("Style") ); 
        
        SetChartOptions(50, chartShowArrows); 
        Buy = Cross( 
        STOSL,50); 
        Sell = Cross( 50, STOSL ); 
        PlotShapes( shapeUpArrow * 
        Buy, colorGreen, 50, Close ); 
        
        PlotShapes( shapeDownArrow 
        * Sell, colorRed, 50, Close ); 
        
        _SECTION_END(); 
         
        Ken

--- On Thu, 7/5/09, Anthony 
        Faragasso <ajf1...@epix. net> wrote:

        
From: 
          Anthony Faragasso <ajf1...@epix. net>
Subject: Re: 
          [amibroker] STO MA Slope - Code Problem
To: 
          amibro...@yahoogrou ps.com
Received: Thursday, 7 May, 2009, 
          9:57 PM


          
          
          
          Ken,
           
          There are a couple of ways.....you can 
          right click in your chart and select Parameters > axis and grid 
          > Miscellaneous > show trading arrows
           
          or add this line to the top of your 
          formula:
           
          SetChartOptions( 0, chartShowArrows 
          ); 
           
           
          Anthony
           
          
            ----- Original Message ----- 
             
             
            From: Ken H 
            To: amibro...@yahoogrou 
            ps.com 
            Sent: Thursday, May 07, 2009 
            7:49 AM
            Subject: Re: [amibroker] STO MA 
            Slope - Code Problem
            

            
            
            
              
              
                
                  Hi Anthony
                   
                  The code now works however the Buy/Sell arrows are 
                  not shown...  
                   
                  Can you suggest a solution for this?
                   
                  Many thanks for the assistance.
                   
                  Ken
                   
                  

--- On Thu, 7/5/09, Anthony Faragasso 
                  <ajf1...@epix. 
                  net> wrote:

                  
From: 
                    Anthony Faragasso <ajf1...@epix. 
                    net>
Subject: Re: [amibroker] STO MA Slope - Code 
                    Problem
To: amibro...@yahoogrou 
                    ps.com
Received: Thursday, 7 May, 2009, 9:28 
                    PM


                    
                    
                    
                    
                    Buy = Cross( STOSL, 50); 
                    Sell = Cross( 
                    50 ,STOSL ); 
                    
                     
                     
                    ----- Original Message ----- 
                      
                      From: 
                      Ken H 
                      To: amibro...@yahoogrou ps.com 
                      
                      Sent: Thursday, May 
                      07, 2009 7:14 AM
                      Subject: [amibroker] 
                      STO MA Slope - Code Problem
                      

                      
                      
                      
                        
                        
                          
                            Hi 
                             
                            Can anyone correct the code below so that I can 
                            obtain a Buy/Sell arrow when the TEMA 
                            crosses 50 on the horizontal line within the 
                            code shown below.
                             
                            Many thanks
                             
                            Ken
                             
                             
                            _SECTION_BEGIN( "STO 
                            MA SLOPE");
                            myMA1 = MA(C,34) ;
                            SL=SlopeMA1 = 100*(myMA1- Ref(myMA1, 
                            -1))/myMA1;
                            HM=HHV(SL,120) 
                            ;
                            LM=LLV(SL,120) 
                            ;
                            STOSL=100*(SL- LM)/(HM-LM) ;
                            Plot(STOSL, 
                            "STOSL", colorDarkGrey) ; 
                            Plot(50, 
                            "", 
                            colorBlue,styleNoLabel); 
                            _SECTION_END( 
                            ); 
                             
                            _SECTION_BEGIN("TEMA"); 
                            P = ParamField("STOSL",-1); 
                            Periods = Param("Periods", 
                            20, 
                            2, 
                            300, 
                            1, 
                            10 
                            ); 
                            Plot( 
                            TEMA( P, Periods ), _DEFAULT_NAME(), 
                            ParamColor( "Color", colorCycle ), 
ParamStyle("Style") ); 
                            Buy = Cross( STOSL = 
                            50,); 
                            Sell = Cross( STOSL 
                            =50 
                            ); 
                            PlotShapes( 
                            shapeUpArrow * Buy, colorGreen, 
                            50, 
                            Low ); 
                            PlotShapes( 
                            shapeDownArrow * Sell, 
                            colorRed, 50, High 
                            ); 
                            _SECTION_END(); 
                             
                             

                      
                      The new Internet Explorer 8 optimised for Yahoo!7: 
Faster, 
                      Safer, Easier. Get it now.. 
                      

            
            Enjoy a better web experience. Upgrade to the new Internet Explorer 
            8 optimised for Yahoo!7. Get it now.. 
            

  
  Yahoo!7 recommends that you update your browser to the new Internet Explorer 
  8. Get it now..
  

 

      

    
    __.._,_.___

           
  
    
    
    
              
          
            Messages in this topic           (6)
        
        
          
            Reply           (via web post)
          | 
        
          Start a new topic        
           
    
    
    
                Messages  
            |    Files  
            |    Photos  
        
        
        
        
        
      
    

                
                  


          **** IMPORTANT PLEASE READ ****

This group is for the discussion between users only.

This is *NOT* technical support channel.



TO GET TECHNICAL SUPPORT send an e-mail directly to 

SUPPORT {at} amibroker.com



TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at

http://www.amibroker.com/feedback/

(submissions sent via other channels won't be considered)



For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:

http://www.amibroker.com/devlog/



          


              
    
    
    
    
      
       

      Change settings via the Web (Yahoo! ID required) 

      Change settings via email: Switch delivery to Daily Digest | Switch 
format to Traditional 


      
        Visit Your Group 
       |
      
        Yahoo! Groups Terms of Use       |
      
        Unsubscribe       
         
   

  
  
  
  
    
    


     


            
            
                        Recent Activity
                
                        
       34
      New Members
    
  
                    
                    
                    
                    
                    
                
                      
                Visit Your Group              
             
                              
            
                          
              
                        Give Back
  Yahoo! for Good
  Get inspired
  by a good cause.
                  
                    
                        Y! Toolbar
  Get it Free!
  easy 1-click access
  to your groups.
                  
                    
                        Yahoo! Groups
  Start a group
  in 3 easy steps.
  Connect with others.
                  
          

            
                  
          .
                           

        
        
        
         
        
        








        


        
        


      Cricket on your mind? Visit the ultimate cricket website. Enter 
http://beta.cricket.yahoo.com

Reply via email to