Forum

min e max price within a group of pending order

hi everybody, i have "n" pending orders , i need to extract the lower and the higher price which they are set to start. ie: buystop price open: 0,98251, 0,98351,0,98451, 0,98551 etc... i need to extract 0,98251 as lower and 0,98551 as higher. I m using this code, but does'n extract the lower price

open just 1 order, when a variable change status

Good evening everybody, I'm really stuck, I want my code open 1 time, 1 order, 1 single time 1 order when the signal is BUY , then 1 time, 1 single time when signal is SELL, and so on everytime ( and just ) the signal change but my code open 60 orders everytime the signal change from BUY to SELL, (