Page 1 of 1

Tradestation indicators

Posted: Sat Feb 02, 2008 3:51 am
by khalid
I want to write:

SellShort ONLY if last trade was a Buy;
Buy ONLY if last trade was a SellShort.

But have no success describing the last trade. I have used LastTrade. prevMarketPosition, MarketPosition[1], and a few others.

Thank you

Regards,
Khalid

Posted: Sun Feb 03, 2008 2:33 pm
by khalid
A simple

Vars: prevMarketPosition(0);

has resolved the matter!!!!!!!!!!!!!