Reply

What’s BarsSinceOrderClosed display -1 mean?

1 replies

ftkensin

Customer, bbp_participant, 17 replies.

Visit profile

2 years ago #277053

I found the description is “return number of bars since the specified order was OPENED“. Is this description wrong?

How ever, I have use the function”BarsSinceOrderClosed” to limit open new orders and make it log to journal ,then it display “-1” for all orders no matter how many bars between the last order closed and the new order start point.

How can I make the right settings to limit a new order must open after the closed order in 2 bars?

Thanks.

0

tomas262

Administrator, sq-ultimate, 2 replies.

Visit profile

2 years ago #277072

Hello,

the function returns -1 in case it does not detect any previous orders to evaluate. Are you sure you set the magic number correctly? You can attach or send us your project for a quick check

0

Viewing 1 replies (of 1 total)