This short article is in response to a question posted in the comment section of my Visual Jforex article, "Visual Jforex Tips: Global Variables; Source Code & Backtesting" (click here to read it).


Check for open positions before trading

The following screenshot will explain how to use an "IF" block to check that all positions are closed before moving on to the part of the strategy that determines when to open a trade.

























The "0" in the second part of the "IF" block (number 5 in the screenshot) means that in this case the strategy will check that there are 0 positions open before opening a new trade. After it opens that trade it shouldn't open a new one until there are 0 open positions.


Once you have opened the link, Please take a moment to consider clicking "like" and let me know what you think in the comments section (the page in the link, not this one )


If your browser can't see the link here it is: http://www.dukascopy.com/fxcomm/fx-article-contest/?Visual-Jforex-Tips-Global-Variables&action=read&id=1542


Thanks for your support!
Traduzir para Inglês Mostrar original