NexusFi: Find Your Edge


Home Menu

 





Stock crosses above daily open


Discussion in ThinkOrSwim

Updated
    1. trending_up 1,825 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?
Iran Forward Curve: June 30 at 56% vs June 15 at 28% -- …
Prediction Markets & Event Contracts
Fabrication or Framework? Irans Denied MOU Explains the …
Prediction Markets & Event Contracts
Beijing Summit Closes: Xi Pledges Hormuz Help -- $1.14B …
Prediction Markets & Event Contracts
Weekend Update: First Qatari LNG Transit Attempted -- IR …
Traders Hideout
Netherlands & Germany Surge as World Cup Field Narro …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
NexusFi site changelog and issues/problem reporting
10 thanks
Darmok and Jalad at Tanagra
3 thanks
Big Mike in Ecuador
1 thanks
30 Sessions
1 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