Hi there,
I have a problem with this piece of code it returns only 1 value insted of the 2 values that it should...
if any one knows whats wrong with it, please help me understand how to fix it.
thanx.
here is the code (after the code I will show whats wrong) :
the code properly returns the value for the lowestbuypricesofar but will not return the value for the highestsellpricesofar...
have a look at this ( I used a print function to find this problem, but dont know how to fix the issue)
if anyone knows how to fix this please help me understand whats wrong with it...
thanx
it is yr magic no; buystop magic no is different from sellstop magic no; take out the Magic+1 and make it all Magic
it is yr magic no; buystop magic no is different from sellstop magic no; take out the Magic+1 and make it all Magic
ronaldosim,
thanks for the answer but if you look at the code I posted I already changed it to just magic.
here :
if (OrderSymbol()==Symbol()&&OrderMagicNumber()==magic)
I dont exactly see what you are referring to in the code...there is nothing there called magic+1 that I can see.
if I am missing the correct area please point it out to me.
sorry for the stupidity...but please point out to me exactly where I must do that.
thanx
ronaldosim,
thank you! your post gave me an idea and so i removed the magic number and substituted it with a comment and it works now!
thanx mate, your help is appreciated!!!!
great u got an answer; but u still need to know the Magic+1 is found in yr OrderSend command, not in the code u have posted
great u got an answer; but u still need to know the Magic+1 is found in yr OrderSend command, not in the code u have posted
thank you yes I realized that and thats why I took it out and replaced with a comment because I need it to stay magic+1 in the ordersend.
thanx much!

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi there,
I have a problem with this piece of code it returns only 1 value insted of the 2 values that it should...
if any one knows whats wrong with it, please help me understand how to fix it.
thanx.
here is the code (after the code I will show whats wrong) :
the code properly returns the value for the lowestbuypricesofar but will not return the value for the highestsellpricesofar...
have a look at this ( I used a print function to find this problem, but dont know how to fix the issue)
if anyone knows how to fix this please help me understand whats wrong with it...
thanx