Topics
Replies
Waxy
07 Mar 2019, 07:01
Thanks for your hard work Spotware,
I have questions,
Why this feature works with custom enums being parametrizable, but not built-in enums like HorizontalAlignment, and others? I hope is available soon also.
Note: Currently I can build a custom enum and then cast to a built-in enum, that's what I can do for now.
Also, will you wait for 3.6 before launching 3.5 as the official version?
Thank you
@Waxy
Waxy
13 Nov 2018, 02:08
Hello Panagiotis,
Sadly, the problem just faded away without any explanation, tho I did re-install cTrader and Visual Studio, the issue persisted. It suddenly it works now, how odd, I must have done something, or the software must have received an update.
It didn't have anything to do with custom robots, because it was occurring even with a new bot with a default code.
I'll use this topic if the issue shows up again in the future.
Thanks for your support,
@Waxy
Waxy
06 Sep 2018, 20:25
Hello Panagiotis,
Thanks for your response, hope Spotware changes its mind in the future, I think this is a good feature to have, a good example would be what Microsoft does with Visual Studio
Best Regards,
@Waxy
Waxy
23 Jul 2018, 22:01
Hello Spotware,
This looks great and will help us develop better tools for trades.
I have two requests I haven't seen but been asking for it.
- Opacity for objects, this is important because chart data is sometimes blocked by these objects.
- Have an option to have objects drawn on backtests, but interactivity disabled.
Thanks for your continuous work.
@Waxy
Waxy
07 Jul 2018, 16:18
All you had to do is to change "Buy" for "Sell" and update the price to have both
For Buy
//If there is not a buystop order place a buy stop order if (PendingOrders.Count(item => item.OrderType == PendingOrderType.Stop && item.TradeType == TradeType.Buy) == 0) { PlaceStopOrder(TradeType.Buy, Symbol, 1000, Symbol.Ask + 100 * Symbol.PipSize); }
For Sell
//If there is not a buystop order place a buy stop order if (PendingOrders.Count(item => item.OrderType == PendingOrderType.Stop && item.TradeType == TradeType.Sell) == 0) { PlaceStopOrder(TradeType.Sell, Symbol, 1000, Symbol.Bid - 100 * Symbol.PipSize); }
@Waxy
Waxy
29 Jun 2018, 09:17
Here's a simple example:
using cAlgo.API; using cAlgo.API.Indicators; using cAlgo.API.Internals; namespace cAlgo.Robots { [Robot(TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)] public class Examples : Robot { SimpleMovingAverage SlowMA, FastMA; Position Pos; protected override void OnStart() { SlowMA = Indicators.SimpleMovingAverage(MarketSeries.Close, 100); FastMA = Indicators.SimpleMovingAverage(MarketSeries.Close, 50); } protected override void OnBar() { bool direction = FastMA.Result.Last(1) > SlowMA.Result.Last(1); TradeType tT = direction ? TradeType.Buy : TradeType.Sell; if (Positions.Count == 0) { Pos = ExecuteMarketOrder(tT, Symbol, 1000).Position; } else { if((Pos.TradeType == TradeType.Buy && !direction) || (Pos.TradeType == TradeType.Sell && direction)) ClosePosition(Pos); } } } }
@Waxy
Waxy
01 Jun 2018, 02:04
( Updated at: 21 Dec 2023, 09:20 )
Hello Panagiotis,
The error is shown when I build from VS2017:
In the end, it says: Process doesn't have access to file because it's being used by another process.
I must close VS and click Build on cTrader for these errors to become warnings, I think it's a bug.
Now without VS2017 Open:
@Waxy
Waxy
10 May 2018, 18:56
Hello Panagiotis,
I've done a lot of codes for other traders and I do think a couple features would be nice to have, I think Spotware team has their hands busy and are missing some small details.
- For example, it would be nice to have more flexible parameter types i.e.:
- Datetime, so the user doesn't have to input a date as a string leading to errors, of course, I can check if the date is being parsed correctly, but the issue here is that it's not practical for the end user.
- Enum types:
- Instead of setting parameters like these: "Long = true / Short = false" or type a string "Long/long/Buy/buy" for long and "Sell//sell/Short/short" for short, including just the TradeType as an actual parameter would solve this.
- Some users also ask for custom types, i.e: "Low Risk/Medium Risk/High Risk" or "Trade Limit Only/Trade Market Only" these type of enum parameters are available on other platforms like MT4 and it would be really useful to have them.
- Another important feature would be buttons included on the API, I can already do this with Windows Forms, but it would be nice to have a quick feature so the buttons would be included inside the charts.
- Also, it would be nice to have the objects used drawn on backtesting, sometimes lines and objects are part of the systems and not having them makes it hard to backtest/debug, again this feature is implemented on MT4 already.
- Same day tick optimization.
- Step by Step backtesting.
I think some if not all of these features are very important, especially the objects on backtesting and parameter types, would be nice if you could help me push some of these features to be implemented anytime soon.
Xavier R.
@Waxy
Waxy
12 Mar 2019, 19:48
Hello Panagiotis,
This may get the default color specified using LineColor = Color, however, if the user changes the color or line-style this is not possible to retrieve, it should be able to get the properties the user has changed, not the one hard coded, I think this is a bug.
The code below prints Red despite I'm changing it to various colors.
Thanks for your support,
@Waxy