ASAP (As Simple As Possible) Strategy for ThinkorSwim

Stats for the entire day today. I did NOT take any of these trades as I'm new to this and watching for now. Pretty (REALLY) good results.
/MES chart at 1D - 1M
Backtest at 1, Length 7
SMI Lower, length 4
Floating P/L = $475
25 Trades
TD Amer Futures Commissions @$5.75
Net Profit: $331.25
0930 - 1600 EST

@Dap, did you figure out how to auto-trade this through TOS?


Hey @slowmohockey! Yes, I'm auto trading thru ToS .. see here: Video about using Marco Recorder to auto trade. https://drive.google.com/file/d/1uq1IMBaUw96mFSAgL02d1LQcJT_3V8W_/view?usp=sharing

I have also modified the code some. I've combined Moving Average Master w/ ASAP and came up with the following. I optimized it to trade Gold Futures and have been making a killing with it. (Today was $4,640.00 trading one option)

Ruby:
#  CHART TIMEFRAME MUST BE SET TO 1 MINUTE

input ShowStategyPositions = yes;
input tradesize = 1;
input SMI_FastLength = 2;
input SMI_Displace = 1;
input SMI_SlowLength = 83;
input TrendPrice = CLOSE;
input TrendLength = 181;

# Fast Stochastic Momentum Index (SMI) 
def min_low = Lowest(low, SMI_FastLength+1);
def max_high = Highest(high, SMI_FastLength+1);
def rel_diff = close - (max_high + min_low) / 2;
def diff = max_high - min_low;
def avgrel = ExpAverage(ExpAverage(rel_diff, SMI_FastLength), SMI_FastLength);
def avgdiff = ExpAverage(ExpAverage(diff, SMI_FastLength), SMI_FastLength);
def SMI = if avgdiff != 0 then avgrel / (avgdiff / 2) * 100 else 0;

# Slow Stochastic Momentum Index (SMI) 
def min_lows= Lowest(low, SMI_SlowLength+1);
def max_highs= Highest(high, SMI_SlowLength+1);
def rel_diffs= close - (max_highs + min_lows) / 2;
def diffs= max_highs - min_lows;
def avgrels= ExpAverage(ExpAverage(rel_diffs, SMI_SlowLength), SMI_SlowLength);
def avgdiffs = ExpAverage(ExpAverage(diffs, SMI_SlowLength), SMI_SlowLength);
def SMIS = if avgdiffs != 0 then avgrels / (avgdiffs / 2) * 100 else 0;

# Hull Moving Average
plot MA = MovingAverage(AverageType.HULL, TrendPrice, TrendLength);
MA.DefineColor("Up", GetColor(1));
MA.DefineColor("Down", GetColor(0));
MA.AssignValueColor(if MA > MA[1] then MA.color("Up") else MA.color("Down"));

def BuyToOpenSignal= SMI>SMI[SMI_Displace] and close > MA[1] and MA>MA[1] and SMIS>SMIS[1];
def SellToCloseSignal= close < MA[1] or SMIS<SMIS[1];
def SellToOpenSignal= SMI<SMI[SMI_Displace] and close < MA[1] and MA<MA[1] and SMIS<SMIS[1];
def BuyToCloseSignal= close > MA[1] or SMIS>SMIS[1];

AddOrder(OrderType.BUY_TO_OPEN, BuyToOpenSignal and ShowStategyPositions,   open[-1], tradesize, Color.CYAN, Color.CYAN, "");
AddOrder(OrderType.SELL_TO_CLOSE, SellToCloseSignal and ShowStategyPositions, open[-1], tradesize, Color.CYAN, Color.CYAN, "");
AddOrder(OrderType.SELL_TO_OPEN, SellToOpenSignal and ShowStategyPositions,  open[-1], tradesize, Color.RED, Color.RED,"");
AddOrder(OrderType.BUY_TO_CLOSE, BuyToCloseSignal and ShowStategyPositions,  open[-1], tradesize, Color.RED, Color.RED,"");

def OpenOrders = GetQuantity();
AddLabel(yes, "     BUY      ", if BuyToOpenSignal[1]  and OpenOrders < 1  then CreateColor(153, 255, 153) else Color.White);
AddLabel(yes, "     SELL     ", if SellToOpenSignal[1]  and OpenOrders > -1  then CreateColor(255, 102, 102) else Color.White);
AddLabel(yes, "     CLOSE     ", if  (SellToCloseSignal[1] and OpenOrders > 0) or (BuyToCloseSignal[1] and OpenOrders < 0) then  Color.Yellow else Color.White);
 

Join useThinkScript to post your question to a community of 21,000+ developers and traders.

That's awesome dap! I'm going to keep "paper trading" this until I'm confident I know what I'm doing then will look to implement it. Thanks and I'll keep posting here.
 
Stats for the entire day today. I did NOT take any of these trades as I'm new to this and watching for now. Pretty (REALLY) good results.
/MES chart at 1D - 1M
Backtest at 1, Length 7
SMI Lower, length 4
Floating P/L = $475
25 Trades
TD Amer Futures Commissions @$5.75
Net Profit: $331.25
0930 - 1600 EST

@Dap, did you figure out how to auto-trade this through TOS?

BTW: You are paying way to much for your commissions. Call them and ask for a better rate. Tell them you are scalper and can't make any money at that rate and you are thinking about moving your account.
 
BTW: You are paying way to much for your commissions. Call them and ask for a better rate. Tell them you are scalper and can't make any money at that rate and you are thinking about moving your account.
Yea I estimated a little high on the commissions (as I recall paying that a while ago). I now actually trade on TastyTrade. MUCH cheaper. Though I must admit I like the TOS trade ladder so much better than Tasty's.
 
Yea I estimated a little high on the commissions (as I recall paying that a while ago). I now actually trade on TastyTrade. MUCH cheaper. Though I must admit I like the TOS trade ladder so much better than Tasty's.
Yup, I told them I was moving to TastyTrade .. and they beat their price for me. However .. I do have hundreds of trades per day.
 

Not the exact question you're looking for?

Start a new thread and receive assistance from our community.

87k+ Posts
278 Online
Create Post

The Market Trading Game Changer

Join 2,500+ subscribers inside the useThinkScript VIP Membership Club
  • Exclusive indicators
  • Proven strategies & setups
  • Private Discord community
  • ‘Buy The Dip’ signal alerts
  • Exclusive members-only content
  • Add-ons and resources
  • 1 full year of unlimited support

Frequently Asked Questions

What is useThinkScript?

useThinkScript is the #1 community of stock market investors using indicators and other tools to power their trading strategies. Traders of all skill levels use our forums to learn about scripting and indicators, help each other, and discover new ways to gain an edge in the markets.

How do I get started?

We get it. Our forum can be intimidating, if not overwhelming. With thousands of topics, tens of thousands of posts, our community has created an incredibly deep knowledge base for stock traders. No one can ever exhaust every resource provided on our site.

If you are new, or just looking for guidance, here are some helpful links to get you started.

What are the benefits of VIP Membership?
VIP members get exclusive access to these proven and tested premium indicators: Buy the Dip, Advanced Market Moves 2.0, Take Profit, and Volatility Trading Range. In addition, VIP members get access to over 50 VIP-only custom indicators, add-ons, and strategies, private VIP-only forums, private Discord channel to discuss trades and strategies in real-time, customer support, trade alerts, and much more. Learn all about VIP membership here.
How can I access the premium indicators?
To access the premium indicators, which are plug and play ready, sign up for VIP membership here.
Back
Top