Hi,
I want to vary trade size by referencing result of last trade. That is, I will trade 2 contracts if last trade is profitable and trade 1 contract if last trade is a loss. How should I code the trading strategy ?
Thanks.
How to access last trade info (strategy, not broker) ?
- ABC
- Posts: 721
- Joined: 16 Dec 2006
- Location: www.abctradinggroup.com
- Has thanked: 125 times
- Been thanked: 409 times
- Contact:
Re: How to access last trade info (strategy, not broker) ?
123LMC,
you could store the strategy netprofit at the time of entry and compare it to the netprofit at of the previous trade entry time. Or use the PosTradeProfit reserved word.
Regards,
ABC
you could store the strategy netprofit at the time of entry and compare it to the netprofit at of the previous trade entry time. Or use the PosTradeProfit reserved word.
Regards,
ABC