Consecutive Wins How To Calculate

Questions about MultiCharts and user contributed studies.
tony
Posts: 420
Joined: 14 Jun 2013
Has thanked: 30 times
Been thanked: 81 times
Contact:

Consecutive Wins How To Calculate

Postby tony » 16 Jul 2013

Anyone know how to calculate consecutive wins in a script? I want to basically say "if consecutive wins are equal to 2 then wait X bars" as part of the conditional statements to enter another trade.

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

Re: Consecutive Wins How To Calculate

Postby Henry MultiСharts » 25 Jul 2013

Hello tony,

That is possible to calculate profit/loss for closed trades the following way:
exitprice(1)-entryprice(1) (for long trade).

tony
Posts: 420
Joined: 14 Jun 2013
Has thanked: 30 times
Been thanked: 81 times
Contact:

Re: Consecutive Wins How To Calculate

Postby tony » 25 Jul 2013

Thank you fine sir... I'll test it out. Makes perfect sense.

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

Re: Consecutive Wins How To Calculate

Postby Henry MultiСharts » 25 Jul 2013

You can also use positionprofit_checked.


Return to “MultiCharts”