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.
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.