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 2,213 views
    2. thumb_up 1 thanks given
    3. group 2 followers
    1. forum 4 posts
    2. attach_file 1 attachments




 
Search this Thread
  #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?
Kharg Island at 6%, Regime Fall at 1.5% -- The Black Swa …
Prediction Markets & Event Contracts
Trump Truth Social Fires Hormuz From 10% to 59% -- Arsen …
Prediction Markets & Event Contracts
One Wallet Made $200K in Hours: AP Probes Polymarket Cea …
Prediction Markets & Event Contracts
Iran Lebanon Problem Kills Switzerland Talks, Brent at $ …
Prediction Markets & Event Contracts
CFTC Opens First COT Report Review in 20 Years -- Asks W …
Traders Hideout
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Big Mike in Ecuador
205 thanks
Sober Journey With S&P
21 thanks
30 Sessions
20 thanks
Volume Indicators
8 thanks
Thanks Mike. Godspeed.
7 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:	287
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


© 2026 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 - Downloads - Top
no new posts