View Single Post
Limit on open positions
  #25 (permalink)  
Old 08-04-2005, 08:33 AM
freshfx freshfx is offline
Freshman
 
Join Date: Jul 2005
Posts: 17
Thanks: 0
Thanked 2 Times in 1 Post
freshfx is on a distinguished road
Default Limit on open positions

Scorpion, I found the line of code that limited the number of open positions to 1 and change it to 4 as I am trading the four majors and wanted to see how the EA would work on multiple currencies. However, what happened was I was filled 3 times in USDCHF and once in USDJPY. That is not what I wanted. I need to add a line of code something like:
if Symbol > 1 then
{
DeleteOrder(OrderValue(1,VAL_TICKET),Red);
};
Does this sound right? Thanks in advance for your help, freshfx
Reply With Quote

Registered members have access to special online forex currency trading tools, software, mt4 expert advisors and indicators. Register now

Main Menu

Economic Forecast