Re work on advisor need help

 

I am trying to learn how to program for mt4 and I am re working an advisor to fit the system i want to try and i have it working kinda. my main issue is it opens 5 to 10 orders and then goes back and modifies them i need it too check for open orders after the first one is placed.

the system is based on Ma's it also doesnt quite open orders at the beginning of the breakout like i would like it too

Files:
 

You need to use the OrdersTotal() function to make sure there are no open orders before placing one. Look in the help manual, it's your best friend!

Lux

 

reworked

hey anicomm..... assuming your wanting it to open only 1 order at a time this should do it.....

there were a few things commented out......h

Files: