Topics
Replies
kyro747
29 May 2013, 17:50
Thankyou for the reply.
I mean that if (Buyexit) is true then I want to exit all long trades, but not exit any short trades.
"Where Label may be an input parameter or constant field."
Can you please give me an example of how to do this so I can reference individual trades or just long or short trades?
I have tried using the multiple positions example code with no success yet.
@kyro747
kyro747
29 May 2013, 10:46
Apologies, code should read:
foreach (var position in Account.Positions)
{
if (_position.TradeType == TradeType.Buy)
{
if (Buyexit )
{
Print("Profit Exit");
Trade.Close(position);
}
}
if (_position.TradeType == TradeType.Sell)
{
if (Sellexit)
{
Print("Profit Exit");
Trade.Close(position);
}
}
}
@kyro747
kyro747
20 May 2013, 13:11
RE: RE:
kyro747 said:Hi guys,
Is it possible to creat a cRobot that is protected so it can run but the code not be seen by the broker/others?
Thanks
For now the .algo file is just a zip file containing an assembly file.
Contact me in private for a solution to totally protect your Robot code.
Thanks hicheck, I cannot find a private message option?
@kyro747
kyro747
20 May 2013, 13:08
RE:
The .algo file is not protected. If you run it on your pc, nobody can access it but if you send it to someone else it is possible that they can view the code. In the future we will implement encryption for .algo files.
Thankyou both for your replies
@kyro747
kyro747
30 Nov 2013, 09:41
RE: RE:
Will it be possible to load 1m data in blocks rather than have to run it off one file as it is unlikely you have all the data in 1 file? E.g. I have it in 1 year files.
@kyro747