
Topics
Replies
PanagiotisCharalampous
07 May 2019, 10:37
( Updated at: 21 Dec 2023, 09:21 )
Hi erisoftdevelop,
Print function for indicators works only for the Automate section. I tried the indicator and the rectangle seems to draw fine. See below
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
07 May 2019, 10:24
( Updated at: 21 Dec 2023, 09:21 )
Hi trader.calgo,
After placing the files in the correct directory, the cBot seems to be working fine for me
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
07 May 2019, 10:10
Hi Matt,
I am not sure I understood the question but the way renko bars work is pretty standard. Bullish bars are created when price moves x pips above the previous high and bearish bars when price moves x pips below previous low.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
06 May 2019, 16:39
Hi FireMyst,
1) references all the other indicators I want used in the calculations
2) incorporate the bot's calculation logic
indeed this is the correct approach
There's currently no way then to draw objects on a chart that's not the main chart? Or is there?
There is but you need to manually add the area. See below an example
Chart.IndicatorAreas[0].DrawText("Test", "Test", Server.Time, 50, Color.Red);
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
06 May 2019, 12:58
Hi FireMyst,
The levels will appear when your indicator starts getting more values. At the moment it is zoomed at 0. e.g.
using System; using cAlgo.API; using cAlgo.API.Internals; using cAlgo.API.Indicators; using cAlgo.Indicators; using System.Collections.Generic; namespace cAlgo { [Levels(2, 1, 0)] [Indicator(IsOverlay = false, TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)] public class ConditionsOfEntry : Indicator { [Output("UpwardSell", LineStyle = LineStyle.Solid, PlotType = PlotType.Points, LineColor = "Red")] public IndicatorDataSeries UpwardSell { get; set; } [Output("UpwardNeutral", LineStyle = LineStyle.Solid, PlotType = PlotType.Points, LineColor = "Yellow")] public IndicatorDataSeries UpwardNeutral { get; set; } [Output("UpwardBuy", LineStyle = LineStyle.Solid, PlotType = PlotType.Points, LineColor = "Lime")] public IndicatorDataSeries UpwardBuy { get; set; } public int UpwardCount { get; set; } private const int UpwardMax = 5; public override void Calculate(int index) { //if (UpwardCount >= UpwardMax) UpwardBuy[index] = index % 10; //else if (UpwardCount > Math.Round(UpwardMax / 2.0, MidpointRounding.AwayFromZero)) // UpwardNeutral[index] = UpwardCount; //else // UpwardSell[index] = UpwardCount; } } }
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
06 May 2019, 12:49
Hi FireMyst,
1) We will fix the description.
2) It seems you are using new features included in 3.5 but compiling with 3.3. To solve this issue, close Spotware cTrader 3.5, go to C:\Users\UserName\Documents\cAlgo\API, delete all files in the folder and restart cTrader 3.5.
3) Deprecated fileds are not shown in Intellisence. If you want to use v3.3 of the API, repeat the process described in point 2 but with a 3.3 instance of cTrader.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
06 May 2019, 12:39
Hi reza h,
Technically speaking this is not flat.The indicator is both rising and falling at different times within the area.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
06 May 2019, 12:37
Hi FireMyst,
I am not sure what do you expect to happen here. Indicators referenced by cBots are not displayed on the charts.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
06 May 2019, 12:34
Hi FireMyst,
What do you expect the code to do? UpwardCount is always 0.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
06 May 2019, 12:30
Hi Alexander,
You need to pasd the parameters of the indicator. See here.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
06 May 2019, 12:27
( Updated at: 21 Dec 2023, 09:21 )
Hi trader.calgo,
Seems some files are needed as well.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
06 May 2019, 12:15
Hi hiba7rain,
You can draw a rectangle using DrawRectangle() method. If you need somebody to implement this for you, you can contact a consultant.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
06 May 2019, 12:10
Hi John,
1) If you plan to use a different timeframe then yes.
2) Could you explain the business need for this. What are you trying to achieve. If you want to use different symbols then you will need to somehow input them.
3) There are no such plans at the moment but we can consider it if it gets enough support by the community.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
06 May 2019, 12:03
Hi lec0456,
What is this line of code supposed to do?
_thread = new Thread(() => { Application.Run(_counter); });
Seems redundant to me.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
06 May 2019, 11:59
Hi ckgmail,
We do not have enough information to advise you on this issue. Can you please post the full source code?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
06 May 2019, 11:56
Hi tgjobscv,
Please use appropriate language when posting in our forum. Regarding the error, please advise how we can reproduce it.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
06 May 2019, 11:51
Hi FireMyst,
Send it at community@spotware.com.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
06 May 2019, 11:50
Hi jumpycalm,
Thanks for posting your suggestions. I would recommend to use the Suggestions section for such recommendations.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
06 May 2019, 11:48
Hi jumpycalm,
We are having a look at this.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
07 May 2019, 15:32
Hi Patrick,
Positions property is updated after the order is successfully executed and the relevant message sent back to the application. If you execute trading in between, there is a change to send orders before Positions is updated. Therefore, if you need to be strict with the number of positions, you would need to implement more complicated checks to avoid this situation.
Best Regards,
Panagiotis
@PanagiotisCharalampous