i copy and paste anything i need for my little "Helper" and now after 1 week work without success, i need a little help to understand two things:
1. I want with "Buy-Button-Click" that i entry with 2 Contracts. Every Contract have a own Profittarget & Stoploss. My problem when i re-write the code is, the system delete all PF & SL at beginning or when it hit one of them, then the system delete all PF & SL and 1 Contract have nothing.
2. The Helper have a Button "Next LONG OFF". With Buttonclick i change Colour and set a boolvariable to true... Can i use a "Mouse Simulation" in OnBarUpdate? What i want is, when the Strategie enter Long then i want the "Next LONG On" to reset to there defaults.
When i understand the concept, then i can complete my first Strategie

Thats my "Helper"
And thats my Code (i use the unmanagedTemplate)

Comment