NexusFi: Find Your Edge


Home Menu

 





Stock crosses above daily open


Discussion in ThinkOrSwim

Updated
    1. trending_up 1,791 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?
The Backwardation Signal: How the CL Futures Curve Tells …
Commodities
CME Launches Bitcoin Volatility Futures June 1 -- First …
Cryptocurrency
Prediction Markets Expiry Day: Trump Eyes War Exit, $230 …
Prediction Markets & Event Contracts
CPI Eve: Fed Hike Odds Hold at 52% for the First Time, I …
Prediction Markets & Event Contracts
Peace Deal Forward Curve: May 22%, June 51%, December 81 …
Prediction Markets & Event Contracts
 
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)
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