Close Trade after 6 Days

Hello all,

I would like to close my running trade after 6 days. Could you please tell me the code for this.

Thanks in advance and have a nice time!


@PaterMike, take a look at the AFL Function Reference - APPLYSTOP

The N-bar stop is an easy way to do it!

I suggest also searching this forum for stopTypeNBar to find usage examples.

1 Like

Thank you very much, that was it!

1 Like

This topic was automatically closed 100 days after the last reply. New replies are no longer allowed.