Trade Duration in Minutes! Is it Possible?

Posted By: Hicham

Trade Duration in Minutes! Is it Possible? - 04/09/21 03:20

Hello,

It seems that "LifeTime" is in Bars, and counting also the remaining time of the current candle.

Is there a way to make the trade duration in minutes?

For example :
( in ) BarPeriod = 5
TradeDuration (Life time) = 15 minutes (exactly)

Thank you.
Posted By: jcl

Re: Trade Duration in Minutes! Is it Possible? - 04/09/21 13:32

Not without extra code. You need a TMF for that. Use TICKS mode and compare the trade entry time with the current time, then exit.
Posted By: Hicham

Re: Trade Duration in Minutes! Is it Possible? - 04/09/21 22:04

Awesome, Thanks a lot.
© 2024 lite-C Forums