Exit after bars

I want to use time exit method only for cutting loss.  Cut losses and let profits run.



So there are  two branches. Exit after bars with loss, Exit after bars with profit. Just add one flag for with loss of profit. 



position profit / loss points, Exit after X bars

Attachments
No attachments
  • Votes +7
  • Project StrategyQuant X
  • Type Feature
  • Status New
  • Priority Normal

History

e
#1

eastpeace

30.11.2020 10:30

Task created

JH
#2

Jabezz

08.12.2020 03:27
Voted for this task.
JK
#3

Insanity82007

08.12.2020 10:44
Voted for this task.
k
#4

Karish

08.12.2020 10:51
Voted for this task.
L
#5

Lumen2730

17.12.2020 21:49
Voted for this task.
IH
#6

clonex / Ivan Hudec

18.12.2020 14:39
This shouldn't be problem to do in the code editor .What platform do you use for trading?
e
#7

eastpeace

29.12.2020 01:09
Hello, clonex.


I am working on Multicharts.

IH
#8

clonex / Ivan Hudec

29.12.2020 15:53
Voted for this task.
AE
#9

Phronesis

01.01.2021 10:38
Voted for this task.
e
#10

eastpeace

18.02.2021 05:22
Voted for this task.
e
#11

eastpeace

21.02.2021 11:13
Hello, 

clonex

 ,


How to make a custom block for this function, Could you make a sample in codebase or documentation.  Sincere thanks.


Exit after X bars if the price is less than entry price 1.5 *ATR when in long, or greater than entry price 1.5*ATR when in short postion.


IH
#12

clonex / Ivan Hudec

22.02.2021 10:10
Ill check it and add it.

Votes: +7

Drop files to upload

or

choose files

Max size: 5MB

Not allowed: exe, msi, application, reg, php, js, htaccess, htpasswd, gitignore

...
Wait please