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
Anyway, back to us I think the problem is in this part of the code ... In practice, once you enter with two different positions (a buy and a sell) the program should automatically place, buy stop and sell stop based on the last purchased position, but does not ...
Try this code
Sorry Vladimir, but I am writing to you while I am at work or as I get home after 12 hours of work, yes you are right it was a very stupid mistake, however I corrected it and it seems now I can open more symbols without messing with the positions.
Anyway if I may ask, would you leave the array static or turn it into dynamic?
I am attaching the current code
You don't listen to anything and keep making a silly mistake:
You don't listen to anything and keep making a silly mistake:
Excuse me Vladimir but I can't understand, the loop you are talking about is the one that occurs when "i" becomes equal to "size" and I take "i + 1" which is outside the array?
Try this code
Thanks Anucha for the code, however I shouldn't take the last open position on the symbol but the penultimate ... reading the code I think it returns the last position right?
Thanks Anucha for the code, however I shouldn't take the last open position on the symbol but the penultimate ... reading the code I think it returns the last position right?
NO!!! If you enter the list you MUST be on this list !!!
Forum on trading, automated trading systems and testing trading strategies
Problem with Expert Code
Vladimir Karputov, 2021.09.24 05:45
You don't listen to anything and keep making a silly mistake:
NO!!! If you enter the list you MUST be on this list !!!
Sorry Vlad, i m not a programmer.... however i had write this code now.... It working very well... So i must to close this post ?