NexusFi: Find Your Edge


Home Menu

 





Stock crosses above daily open


Discussion in ThinkOrSwim

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




 
Search this Thread

Stock crosses above daily open

  #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?
Exit Strategy
NinjaTrader
How to apply profiles
Traders Hideout
ZombieSqueeze
Platforms and Indicators
Trade idea based off three indicators.
Traders Hideout
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Just another trading journal: PA, Wyckoff & Trends
28 thanks
Tao te Trade: way of the WLD
24 thanks
Diary of a simple price action trader
21 thanks
My NQ Trading Journal
14 thanks
HumbleTraders next chapter
9 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://tlc.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


© 2024 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 - Privacy Policy - Downloads - Top
no new posts