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,271 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?
Iran Deal "In Review" at 87% on Deadline Day - …
Prediction Markets & Event Contracts
Fed Hike Odds at 57% After Warsh: England Surges 12.9%, …
Prediction Markets & Event Contracts
Khamenei Vetoes Uranium Transfer as Peace Odds Surge to …
Prediction Markets & Event Contracts
UCL Final Kicks Off at Noon ET: PSG at 56.5% as Iran May …
Prediction Markets & Event Contracts
Beijing Summit Closes: Xi Pledges Hormuz Help -- $1.14B …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
NexusFi site changelog and issues/problem reporting
13 thanks
Darmok and Jalad at Tanagra
3 thanks
Big Mike in Ecuador
1 thanks
30 Sessions
1 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:	306
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