NexusFi: Find Your Edge


Home Menu

 





Stock crosses above daily open


Discussion in ThinkOrSwim

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




 
Search this Thread
  #1 (permalink)
DonFio
Sacramento, CA
 
Posts: 2 since Feb 2021
Thanks Given: 0
Thanks Received: 0



Hello

I have a question on Dailyopen() study, when I included that in a conditional order it shows where the entries are (on the lower part of chart in the conditional order builder), but when I included that in an order, it doesn’t get executed.

Attached is the chart showing order (Its just following the price and not getting executed).

Is there is any way to buy the stock when it goes above the today’s open price of day, on 1 minute time period.

Here is the code for dailyopen() (which come with TOS study ) can this be modified or I’m just looking for a way to buy the stock when it crosses above the daily open.

input aggregationPeriod = AggregationPeriod.DAY;
input showOnlyLastPeriod = yes;
def prevPrice = open(period = aggregationPeriod)[-1];
def price = open(period = aggregationPeriod);
plot DailyOpen = if showOnlyLastPeriod and !IsNaN(prevPrice) then Double.NaN else price;
DailyOpen.SetDefaultColor(GetColor(2));
DailyOpen.SetPaintingStrategy(PaintingStrategy.HORIZONTAL);

Thanks.


Reply With Quote

Can you help answer these questions
from other members on NexusFi?
requesting .nrd replay files from 2026 spy and qqq
The Elite Circle
No book, only a stair: journaling fills where price move …
Cryptocurrency
EA
Platforms and Indicators
My Rant with AMP Futures
Trading Reviews and Vendors
Trump Media to sell instant access to market-moving soci …
Traders Hideout
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Mes vs MNQ
6 thanks
NexusFi site changelog and issues/problem reporting
5 thanks
BERN ALGOS algo trading journal
3 thanks
TopStep Trader disappointment
2 thanks
Johnnys Journal
2 thanks
  #2 (permalink)
VanDriver
Jackson, MS
 
Posts: 34 since Dec 2015
Thanks Given: 1
Thanks Received: 5

You have created a study that plots your criteria, but to see it as an order and track p&l, you must script info into a strategy with entry/exit criteria. It is virtually the same as plotting but uses syntax for order and is found under the strategies tab. TOS does not auto-trade or Execute live orders from the strategy. It is a testing feature only, though you can place the orders manually.

Order entry/exit examples are located here

https://toslc.thinkorswim.com/center/reference/thinkScript/Functions/Others/AddOrder


Reply With Quote
  #3 (permalink)
DonFio
Sacramento, CA
 
Posts: 2 since Feb 2021
Thanks Given: 0
Thanks Received: 0


Hello

I understand the TOS doesn’t have Auto Trading feature, and I’m not looking for auto trading.

TOS does offers CONDITIONAL ORDER.

So I’m looking for WAY TO CONDITON THE ORDER that if the LAST PRICE crosses above the DAILY OPEN PRICE, then buy.

Any idea how that can be done.

Thanks.


Reply With Quote




Last Updated on February 8, 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