vannielj,
I'm not sure that I understand what you are asking about specifically. If you could post some sample code, or some dummy code that represents your problem, that would be very helpful.
Some possibly useful features of EasyLanguage:
(These are in TS5--Tradestation2000--syntax; I know it's slightly different in TS6, but the idea will be the same. I think ExitLong = Sell to Close, ).
You can include the lines
ExitLong StopPrice Stop;
ExitShort ShortStopPrice Stop;
and if you are not in a trade, the program will just skip the line.
Since the system keeps track of MarketPosition, it will know on the close of a bar, if you are in a position. You can take advantage of that.
Also remember that Tradestation processes your code from the first bar loaded and moving to the right. On historical data, the calculations are done at the close of the bar.
Also, when you apply a strategy, there's a checkbox that should be selected to "Send Signals to Tracking Center" or something to that effect. That will cause the dialogue box to be opened whenever you get a trade signal or new stop value.
I can go on, but I'll wait for more detail on your question.
I'm not sure that I understand what you are asking about specifically. If you could post some sample code, or some dummy code that represents your problem, that would be very helpful.
Some possibly useful features of EasyLanguage:
(These are in TS5--Tradestation2000--syntax; I know it's slightly different in TS6, but the idea will be the same. I think ExitLong = Sell to Close, ).
You can include the lines
ExitLong StopPrice Stop;
ExitShort ShortStopPrice Stop;
and if you are not in a trade, the program will just skip the line.
Since the system keeps track of MarketPosition, it will know on the close of a bar, if you are in a position. You can take advantage of that.
Also remember that Tradestation processes your code from the first bar loaded and moving to the right. On historical data, the calculations are done at the close of the bar.
Also, when you apply a strategy, there's a checkbox that should be selected to "Send Signals to Tracking Center" or something to that effect. That will cause the dialogue box to be opened whenever you get a trade signal or new stop value.
I can go on, but I'll wait for more detail on your question.
