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: 516
Joined: 16 Dec 2006
Has thanked: 110 times
Been thanked: 290 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
These users thanked the author ABC for the post (total 3):
Henry MultiСharts123LMCJoshM


Return to “MultiCharts”