I sent an order using this code
CODE:
Please log in to see this code.
When I login to Fidelity, I see 
Buy 204 Shares of UDOW Stop Loss at $122.12 (Day)
I was hoping to just set a buy stop order. If price is greater than 122.12, I want a market order to buy...
What did I do wrong ?
    
 
    
        
    
    
        
    
    
        Size:  
    
        Color:  
    
    
 
    
        
     
    
        
    
 
    
    
    
        Nothing's wrong. You submitted a stop order, you got it. No reason to expect a market order.
    
    
        
    
    
        
    
    
        Size:  
    
        Color:  
    
    
 
    
        
     
    
        
    
 
    
    
    
        I thought i would go buy UDOW when price goes up and hit 122.12 then it becomes a limit order...
I see stop loss???
    
    
        
    
    
        
    
    
        Size:  
    
        Color:  
    
    
 
    
        
     
    
        
    
 
    
    
    
        What makes you think that a Stop order should act as a Limit or Market order? Where exactly in the User Guide do you find this?
    
    
        
    
    
        
    
    
        Size:  
    
        Color:  
    
    
 
    
        
     
    
        
    
 
    
    
    
        With Wealth-Lab, you can only submit Stop orders, not Stop-Limit orders.  
 
From the point of view of backtesting, a Stop-Limit order doesn't make any sense unless you're actually analyzing the ticks.  It has been discussed in the distant past that a Stop-Limit order option could be useful for trading with Wealth-Lab.  However, without the ability for the script to actually know if the position were filled at the limit, very often using a Stop-Limit order would result in an out-of-sync condition between the script and reality.
    
    
        
    
    
        
    
    
        Size:  
    
        Color:  
    
    
 
    
        
     
    
        
    
 
    
    
    
        hmm I ran the backtesting and buyStop seems to know to buy with a market order(and I manually checked the buy point for many trades and it seems to work) ... so I have been using it wrong then... Not turning it into a buy stop limit, that I understand, I misspoke in the above paragraph.
So if I just want to use buy stop order in backtesting, this is ok right ?
    
    
        
    
    
        
    
    
        Size:  
    
        Color:  
    
    
 
    
        
     
    
        
    
 
    
    
    
        It's okay to use a stop order in backtesting and trading.  
There is no difference except that there will be no slippage for backtesting - the order will be filled at the stop's trigger price or at the opening price of the bar that gaps past the stop price.  In live trading, a stop order becomes a market order at the time that it triggers.  Clearly you can expect order slippage when live trading with stop orders. 
    
    
        
    
    
        
    
    
        Size:  
    
        Color:  
    
    
 
    
        
     
    
        
    
 
    
    
    
        You can set a slippage though in the preferences.  I use 0.2 for equities which seems to match pretty closely.  The one thing I can't simulate is missed trades due to slippage - i.e. a stock touches the limit and bounces so it doesn't buy it fast enough.  Unfortunately those are often really profitable trades.
    
    
        
    
    
        
    
    
        Size:  
    
        Color: