OrderSend or bad condition ?

 

Hello every one !


I've a probleme with my code.. like we can see on the screnn..

(I failed to put the screnn in the chat)

http://image.noelshack.com/fichiers/2021/07/6/1613847387-capture-d-ecran-2021-02-20-19-51-28.png

My code :

  if(OrdersTotal()==0) ;
      if(bougie_H1>bougie_H2){
         
         OrderSend(Symbol (),OP_BUY,LotSize,Ask,3,Ask - (StopLoss * Pips), Ask + (TakeProfit * Pips),NULL,MagicNumber,0,Green);
      }


     I think this is (OrderTotal () == 0) the probleme but i don't understand why et how to fix it...

What do you think..?

Thanks you :)

Thomas

 
I think you have an extra semicolon " ; " at the end of first line just remove that
 
Khuman Bakhramirad:
Je pense que vous avez un point-virgule supplémentaire ";" à la fin de la première ligne, supprimez-le simplement

it was it !! Thanks you so much :) !!