For example, when I test the above code, after one intersections, buying or selling is done twice, or some intersections are not bought or sold at all.
Posts made by a-chegini
-
RE: Buying and selling one after the otherposted in Questions & Answers
-
RE: Buying and selling one after the otherposted in Questions & Answers
Or, for example, after backtesting, it is seen that the position is opened 2 times after the intersection of buying or vice versa. I don't know where the problem is
-
RE: Buying and selling one after the otherposted in Questions & Answers
I wrote an order that, for example, 2 moving should be done in case of intersection of purchase and sale, but when I test, some intersections have been completed, but the purchase and sale have not been completed. I want that if a purchase is made, a sale must be made at the next intersection, so that a sale is made after each purchase and a purchase is made after each sale. Do not open 2 purchases in a row or vice versa
-
Buying and selling one after the otherposted in Questions & Answers
Hello friends . I want to write an order that opens a sale after every purchase and a purchase after every sale. Two purchases or two sales in a row should never be done. Help me please