NexusFi: Find Your Edge


Home Menu

 





I need helping creating a study for tos to find dips and selling points.


Discussion in ThinkOrSwim

Updated
    1. trending_up 1,675 views
    2. thumb_up 1 thanks given
    3. group 2 followers
    1. forum 4 posts
    2. attach_file 1 attachments




 
Search this Thread

I need helping creating a study for tos to find dips and selling points.

  #1 (permalink)
ilalovely
South Daytona
 
Posts: 10 since Mar 2021
Thanks Given: 1
Thanks Received: 1

Hello. Can someone please create a study for tos that tracks when a stock does 3 things. 1. Closes above its 66-day moving average 2. Is today's close lowest in last 3 days 3. Is today's closing price highest in 19 days? I am essential using a formula to determine a dip and a selling point after. I have a trading station code I can send you if that would help. Tha k you.

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Cheap historycal L1 data for stocks
Stocks and ETFs
REcommedations for programming help
Sierra Chart
Better Renko Gaps
The Elite Circle
Trade idea based off three indicators.
Traders Hideout
ZombieSqueeze
Platforms and Indicators
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Funded Trader platforms
70 thanks
Spoo-nalysis ES e-mini futures S&P 500
21 thanks
The Trading Pit "Futures VIP" Account Journal
15 thanks
GFIs1 1 DAX trade per day journal
14 thanks
Trading with Intuition
14 thanks
  #2 (permalink)
 JayC 
San Diego, CA
 
Experience: Beginner
Platform: TOS, Sierra
Trading: Emini ES, Crude CL
Posts: 55 since Mar 2019
Thanks Given: 9
Thanks Received: 43

Maybe I'm misunderstanding, but the last two seem to be conflicting conditions. Today's close can't be the lowest in the last 3 days and the highest in the last 19 days. If you have the trade station code, perhaps that would help better clarify what you're looking for.

Jay

Reply With Quote
  #3 (permalink)
ilalovely
South Daytona
 
Posts: 10 since Mar 2021
Thanks Given: 1
Thanks Received: 1


The last one would be my sell. Signal. After buying spy. Thank you so much for asking.
Here is the code though.

Attached Thumbnails
Click image for larger version

Name:	Screenshot_20210309-074033~2.png
Views:	191
Size:	285.1 KB
ID:	310424  
Reply With Quote
  #4 (permalink)
 JayC 
San Diego, CA
 
Experience: Beginner
Platform: TOS, Sierra
Trading: Emini ES, Crude CL
Posts: 55 since Mar 2019
Thanks Given: 9
Thanks Received: 43

This is the idea albeit without the money management aspect.

Jay

 
Code
input lowestClose = 3;
input highestClose = 19;
input trendAverage = 66;

def buySignal = close <= lowest(close, lowestClose) and close > average(close, trendAverage);
def sellSignal = close >= highest(close, highestClose);

addOrder(OrderType.BUY_TO_OPEN, buySignal, price = open[-1]);
addOrder(OrderType.SELL_TO_CLOSE, sellSignal, price = open[-1]);

Reply With Quote
Thanked by:
  #5 (permalink)
ilalovely
South Daytona
 
Posts: 10 since Mar 2021
Thanks Given: 1
Thanks Received: 1

Awesome! Thank you so much!

Reply With Quote




Last Updated on March 9, 2021


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts