How to access last trade info (strategy, not broker) ?

Questions about MultiCharts and user contributed studies.
123LMC
Posts: 6
Joined: 05 Sep 2012
Has thanked: 1 time

How to access last trade info (strategy, not broker) ?

Postby 123LMC » 07 Sep 2012

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.

User avatar
ABC
Posts: 718
Joined: 16 Dec 2006
Location: www.abctradinggroup.com
Has thanked: 125 times
Been thanked: 408 times
Contact:

Re: How to access last trade info (strategy, not broker) ?

Postby ABC » 07 Sep 2012

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


Return to “MultiCharts”