Could someone please review for me?
Do you have a problem with the code?
I did'nt try to compile it but looks good. But just a little hint:
if((Orderselect(...))&&(Ordermagicnumber()==Magicnumber150002)) // this can also be written as.... if(Orderselect(...)==true && Ordermagicnumber()==Magicnumber15002)
So you don't need to use brackets within the if-operator condition.
Didn't look over it too closely though...
}
THIS FINAL PIECE LOOKS TO SEE IF MY THIRD ORDER HAS BEEN PLACED. IF SO, THEN IT EVALUATES THAT ORDER'S PROFIT AND ONCE IT HITS 120, WILL CLOSE ALL OPEN ORDERS(MAGICNUMBERS 150000,150001, AND 150002).
Any help would be truly appreciated! I just need to make sure I have the right syntax and that this will flow with no issues. Thank you forum-this is a great tool for us beginners to MQL!!! Daniel