
Topics
Replies
admin
19 Dec 2012, 17:56
RE: RE:
Balena said:Probably a silly question, but new here...
reading all posts... but not finding...
How can I get the Bid or Ask that was displayed prior to the current Bid or Ask?
THANKS!
Help Please...
Hello,
Do you want this for an indicator or a robot? Can you please clarify what exactly you want to do? It will help us develop it for you faster!
Thank you in advance
@admin
admin
19 Dec 2012, 17:55
RE:
Dear team, I can suggest a not really new but useful chart type, which is time independent, the range bar type of representation of prices, with adjustable range set. tnx
Hi,
Thank you for the suggestion. We have it in our plans to deliver Range bars, along with other tick charts (like renko bars and tick bars), in the future.
@admin
admin
19 Dec 2012, 17:53
RE:
Hey @all,
I'm looking for developing robots based on different time frames.
The main execution of the robot will be executed on a 5min time frame, but some indicators or rules
should be calculated on a longer time frame (1h e.g.) .Is there any solution for that? I couldn't found some stuff around that.
Please advice....
Thx a lot :-)
Hello,
Welcome to our forums. We understand the need of multi-time frame feature and use in both cTrader and cAlgo.
We are currently working on many features. One of them is multi-time frame. It is expected to be delivered in the future.
@admin
admin
18 Dec 2012, 13:00
Hello,
I believe that you can upload more than one file. So, if you're referencing other indicators you just upload those at the same time.
Yes, thank you simons847. You can upload Referenced files together with your source code. The files will be visible and able to be downloaded as one zip file.
@admin
admin
18 Dec 2012, 12:56
Hello,
Actually to test if the code in the sample is correct or not, simply use the 'Sample SMA' on a chart with a period of 1. If last value is Current Close price then the code is correct.
Additionally, after testing the code below:
for (int i = index - Periods; i < index; i++)
with input parameter of 1, you can clearly see the the prices are off and last SMA with 1 period is not the current close.
Please let us know if you have any more question.
@admin
admin
14 Dec 2012, 09:45
( Updated at: 15 Jan 2024, 14:51 )
Please look at the examples in the API Reference for the methods in [ChartObjects]. If you like to DrawText everytime the order is executed you should use this in the OnPositionOpened method.
For example:
protected override void OnPositionOpened(Position openedPosition) { ChartObjects.DrawText("myObject", "text", StaticPosition.TopLeft); }
@admin
admin
11 Dec 2012, 16:19
You may use the WebRequest class of System.NET namespace for accessing data from the Internet.
See the example here: http://msdn.microsoft.com/en-us/library/system.net.webrequest.aspx.
@admin
admin
10 Dec 2012, 16:06
( Updated at: 19 Mar 2025, 08:57 )
Are you using this code in the OnBar event or the OnTick? In the backtest the ticks will be as close to reality as possible but not exact. Therefore there will be some difference from what you see on the chart and what your backtest results will show. If the entry is triggered in the OnTick this could be the reason why. It is not possible to know without looking at the whole code. You may send it to support@ctrader.com for futher investigation.
@admin
admin
03 Jan 2013, 10:49
Hello,
Visual Backtesting will be available in the future, then it will be possible to use DrawText while backtesting. For the time being the print log seems to be the only way to do this. Maybe you can create an indicator from this log if you save it to file and then you can visualize it on the chart?
@admin