one trade at a time using magic numbers

 

Hi, I am new to programming and algo trading in general.

I am having problem with my bot not being able to open just one trade at a time, but in the same time being able to sell and short.

I tried to fix this by using magic numbers but it doesn't work.


Any help would be much appreciated.

here is the code: https://github.com/Amasakis/code-

Amasakis/code-
Amasakis/code-
  • Amasakis
  • github.com
#include #include "OpenBuyOrder.mq5"; #include "OpenSellOrder.mq5"; double OpenPositionVolume=0; double LastEquity=0; double Ask=0; double Bid=0; double Equity=0; double Balance=0; CTrade trade;
 

Do not double post!

I have deleted your duplicate topic.