Not a good week for my Zennor Piproid trades (ignore the $ as one of my demos is $50K instead of $10K, and all just since 4/29):
Capture1.PNG
In trying to analyze why so bad, I see that pendings remain open even when the Piproid screen is showing "Mixed trend. Chill out and wait". I see in the code, if my very novice coding abilities are reading it right, that CountOpenTrades calls LookforClose for every open trade and that if ordertype is any type of buy or sell, including pendings, the pendings are to be deleted, using the variable 'ticket'.
I'm in the US, and to get the hidden SL-TP to work with the multi's (so my broker doesn't set all TP's and SL's to the TP and SL of the last trade put on) I had to substitute OrderTIcket() for TicketNo in the DrawPendingPriceLines function, but I cant puzzle out if perhaps that's whats going on here- it's beyond my abilities
Anyone have any insight here? Without screaming at me for trying to figure out the code and probably being all wrong?
You do not have the required permissions to view the files attached to this post.