Yes this bot is real and it is backtested on real tick data (EURUSD)..... We've made a short youtube tutorial on the bot, take a look and run the test yourself: https://youtu.be/5ZvPQ2r1Ls4
All the best,
www.succinctalgo.co.uk
Here's the code:
using System;
using System.Linq;
using cAlgo.API;
using cAlgo.API.Internals;
namespace cAlgo
{
[Robot(TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)]
public class NegativeSpreadBot : Robot
{
string label = "Negative Spread Bot";
protected override void OnTick()
{
var positionSearch = Positions.FindAll(label, Symbol);
var spread = Symbol.Spread / Symbol.PipSize;
if (spread < -2)
{
ExecuteMarketOrder(TradeType.Sell, Symbol, 100000, label);
ExecuteMarketOrder(TradeType.Buy, Symbol, 100000, label);
foreach (Position position in positionSearch)
{
ClosePosition(position);
}
}
}
}
}
SuccinctAlgoTrading
30 Jan 2019, 22:50
RE: RE: RE: RE:
deanmikan@gmail.com said:
Hi All,
Yes this bot is real and it is backtested on real tick data (EURUSD)..... We've made a short youtube tutorial on the bot, take a look and run the test yourself: https://youtu.be/5ZvPQ2r1Ls4
All the best,
www.succinctalgo.co.uk
Here's the code:
using System; using System.Linq; using cAlgo.API; using cAlgo.API.Internals; namespace cAlgo { [Robot(TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)] public class NegativeSpreadBot : Robot { string label = "Negative Spread Bot"; protected override void OnTick() { var positionSearch = Positions.FindAll(label, Symbol); var spread = Symbol.Spread / Symbol.PipSize; if (spread < -2) { ExecuteMarketOrder(TradeType.Sell, Symbol, 100000, label); ExecuteMarketOrder(TradeType.Buy, Symbol, 100000, label); foreach (Position position in positionSearch) { ClosePosition(position); } } } } }@SuccinctAlgoTrading