Topics
Replies
pogostick
24 Oct 2018, 02:23
afhacker, thanks for the heads up on your indicator. That is an interesting approach for the historical data. I will definitely consider it.
I have installed the indicator to test but the source code is not available for me to retrieve the variables of the indicator which is available to call in a cbot. Do you provide any other documentation with this information?
Thanks
@pogostick
pogostick
24 Oct 2018, 02:14
Thanks, freemangreat. That was my thoughts exactly when I realised the 1 tick timeframe was not available.
@pogostick
pogostick
23 Oct 2018, 03:14
Thanks for pointing that out. I never noticed that the tick timeframes were not available.
@pogostick
pogostick
22 Oct 2018, 04:56
Thanks, freemangreat! Any thoughts on how to make it possible to use on historical data? I was thinking of using the 1 tick timeframe coupled with server time to segment into bar timeframes. Hope that makes sense.
@pogostick
pogostick
03 Aug 2018, 03:44
RE:
Panagiotis Charalampous said:
Hi pogostick,
On the bottom left corner of cTrader, you can find the Settings button. Press it and then choose Notifications. There you can configure your cTrader notifications.
Best Regards,
Panagiotis
Thanks for your assistance. I have found it.
@pogostick
pogostick
01 Jul 2018, 11:16
No stress! Realised I was using the wrong market series. All sorted.
@pogostick
pogostick
14 May 2018, 11:56
RE:
Hi Panagiotis
Thanks for the above suggested code. I solved my issue using something very similar. To better understand the flow of the code, I also tried the below variation where the OnBar() method was also called inside the OnTick() method to ensure the correct _marketTrend variable was used.
If my understanding is correct, if the cbot is attached eg. on the 1 minute chart, theOnBar() method should execute every 1 minute regardless of what methods are being called in the OnTick() method settiing the _marketTrend variable to the correct state every 1 minute to be used by the methods in the OnTick(). However, when I call the OnBar() inside the OnTick(), the backtesting using tick data from server delivered slightly different trading results. Would you have an explanation for this?
Thanks in advance for your assistance.
protected override void OnTick() { OnBar(); if (_marketTrend) { if (Positions.Count < 1) { ManageOpenSellPositions(); } } else { if (Positions.Count < 1) { ManageOpenBuyPositions(); } } } protected override void OnBar() { _marketTrend = CheckMarketTrend(); }
@pogostick
pogostick
25 Oct 2018, 04:17
Thanks, afhacker. Much appreciated.
@pogostick