NexusFi: Find Your Edge


Home Menu

 





buying and selling at specific price in TS


Discussion in TradeStation

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




 
Search this Thread
  #1 (permalink)
auato
Bradenton
 
Posts: 30 since May 2016
Thanks Given: 6
Thanks Received: 4

Hi,

If I understood correctly in TradeStation with EL is not possible to buy or sell at a specific price. My idea of Trading System generates two values to open and close a position on the next bar. The time frame I would like to use is daily, so reading the letest bars (latest days) the trading system would like to buy or sellshort the next bar (next day) at a specific prices. The statement like this one below should not work :

buy next bar at valueopen

in which "valueopen" is a variable containing a precise price to open the position.


Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Irans Dual Probability: Guns Quiet at 99.95% While Forma …
Prediction Markets & Event Contracts
The 50/50 Paradox: Peace and Invasion Each at 20% -- Ira …
Prediction Markets & Event Contracts
CME Raises Energy Futures Margins After Iran-War Volatil …
Commodities
$500M Riding on World Cup 2026: France/Spain Co-Favored …
Prediction Markets & Event Contracts
UCL Final Kicks Off at Noon ET: PSG at 56.5% as Iran May …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
NexusFi site changelog and issues/problem reporting
16 thanks
Darmok and Jalad at Tanagra
3 thanks
Big Mike in Ecuador
1 thanks
30 Sessions
1 thanks
  #2 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,448 since Apr 2013
Thanks Given: 494
Thanks Received: 1,643

auato,

where did you get the information that you can't buy or sell at specific prices? You can use stop or limit orders with legacy EasyLanguage and a lot more functionality with OOEL.

Something like this will work fine for a limit entry:
 
Code
Buy ("Long")  2 contracts next bar 2000 limit ;
Regards,

ABCTG


Follow me on X Reply With Quote
  #3 (permalink)
auato
Bradenton
 
Posts: 30 since May 2016
Thanks Given: 6
Thanks Received: 4



ABCTG View Post
auato,

where did you get the information that you can't buy or sell at specific prices? You can use stop or limit orders with legacy EasyLanguage and a lot more functionality with OOEL.

Something like this will work fine for a limit entry:
 
Code
Buy ("Long")  2 contracts next bar 2000 limit ;
Regards,

ABCTG

Thank you ABCTG! Sorry for the delay. I finally returned to my work.

Anyway I'm thinking to abandon those limit entry/exit statements. I am experiencing some difficulties to implement my idea of TS
How it works? Starting from the two previous bars it calculates two forecast values for the next bar: a minimum value and a maximum value. These values represent the supposed minimum and maximum I expect for the next bar. Based on the lastest bar, my TS also defines the "direction" (short or long): if the latest bar has been "short" (close<open) the next trade for my TS will be short otherwise long. My TS can calculate these two values (minimum and maximum for the next bar) in every time frame (minute, hourly, daily, weekly) but I would like to operate with daily bars. That said, I would like my TS will enter sellshort on the maximum value calculated and will exit on the minimum value calculated or viceversa. In any case, if the TS has entered but the conditions to exit don't occur, every day I want to force the exit at closing.

I am confused about what type of code I can use. I suppose I cannot work with current price of the current bar/price but every time I will operate with the next bar. And I presume I cannot use realtime statements on the current bar both for the real time operations and especially it won't be possible to run a backtest.


Reply With Quote




Last Updated on June 15, 2016


© 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