Other News

How to limit trades

 

Q:
In my EA, I fix – in the Open Trade Manager window, Maximum window – the Max Trades to 1. But, in the Strategy Tester, it appears done several trades per session. How can I limit the maximum trades per session (day) to 1?
The same problem happens with the MaxSells and MaxBuys.   Can you help me?
A:
Use the TradeSignal Manger to limit the number of trades. In this case, I think you should set the Next Trade Rule to NEXT_SIGNAL_RULE_OPEN_NONE, or you could use the delay feature.

 

RAQ

OpenBuyTrade and OpenSellTrade functions


Q:

When I created  an EA system it opened “OpenBuyTrade” and “OpenSellTrade” functions and also opened a tab for each. 

When the system runs I assume it will perform these 2 functions as you programmed in their tabs?

 

A:

 

Yes, the tabs are Drawings and are represented on the main system drawing as Elements. The main system drawing is the drawing with the same name as the system. Execution begins at the Start Element in the main system Drawing and follows the links.

 

The reason the “OpenBuyTrade” and “OpenSellTrade” functions will execute is because they are connected on the main system drawing.

 


 



Q:

Can I create a function in it’s own tab similar to the 2 I mentioned above? If so, how?

 

A: 

Yes, just drag and drop a Drawing from the New Elements pane in the Toolbox:

 




 


 

 

 

 

 

RAQ