help with simple code
Created at 16 Jan 2013, 16:14
help with simple code
16 Jan 2013, 16:14
hi all
i am new to programing and i need some help please
i need bit of code wchich controls amount of opened positions
i ve made little robot and it works ok but it opens to many orders
i want option to limit them for amount i will set up in robot settings
for example on start it opens two positions and i want open two new positions when previous two are closed
what paremetrs i need and what bit of code
thx
raf
supafly
16 Jan 2013, 17:35
RE:
hi rcc25,
not to sure but try this code under OnBar() or under OnTick()
if (Account.Positions.Count < 3)
{
your code
}
@supafly