Adding comment to a position, then try to call that specific position by its comment to count its profit or loss and close it - page 4
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
the reason is that I really didn't know how to do that and how much this is important, just like my poor coding. I try my best to do it and learn it quickly.
What problem do you have ? What results are you expecting and what results are you getting ?
thanks Alain for your reply, it is solved now because I found the source of problem. There wasn't any wrong parameters in my code. In the closing part of my code based on my strategy it closes one basket having "B1" comment and the half of the other one with "B2" comment, I found that when the half of a position is closed the comment will be deleted, so in the next processes it can't be found as a position with "Bla Bla" comment. :)))
I know you stated earlier in this thread that this code is for testing ONLY, but BE SURE that you do NOT use this code in real accounts, it is very unreliable.
;)
Yeah sure, it's just for testing purposes. ☺️
Some brokers doesn't enable the Comment field, others can override the comment field for their own use... so you will be in trouble...
;)
Some brokers doesn't enable the Comment field, others can override the comment field for their own use... so you will be in trouble...
;)