Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
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.
Can you help answer these questions from other members on NexusFi?
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:
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.