Topics
Replies
ClickAlgo
16 Aug 2015, 13:19
RE:
hiba7rain said:
Hi All,
is it possible to show how to use the HMA (hull moving average) in Cbot code? i.e what will be the correct way to code it in cbot since the HMA is a custom indicator
thanks
Hello,
Open your cbot, click on manage references and add the Hull indicator, if it is not showing then you will need to install it from the custom cbots by clicking on the cbot option in the menu above and search for the hull indicator.
Add a new user defined property:
[Parameter("Hull Period", DefaultValue = 5, MinValue = 1)] public int HullPeriod { get; set; }
Add a new private variable:
private HMA hull;
- In the onstart method add this:
// HULL moving Average hull = Indicators.GetIndicator<HMA>(HullPeriod);
Now you can use it to filter:
// false signal to buy if (hull.hma.IsFalling()) return 0;
@ClickAlgo
ClickAlgo
13 Apr 2015, 09:52
Hi,
If you are using the .NET framework version 4.5 look into the Task Parallel Library
The Task Parallel Library (TPL) is based on the concept of a task, which represents an asynchronous operation. In some ways, a task resembles a thread or ThreadPool work item, but at a higher level of abstraction. The term task parallelism refers to one or more independent tasks running concurrently
https://msdn.microsoft.com/en-us/library/dd537609%28v=vs.110%29.aspx
Just refactor your code to implement this architecture.
@ClickAlgo
ClickAlgo
08 Apr 2015, 20:50
RE:
cuchufletozopo said:
Can anyone help me converting an easy prorealtime indicator to ctrader?
It,s an easy indicator of 10 lines
thanks all
i can try and help you for free if you want?
@ClickAlgo
ClickAlgo
20 Mar 2015, 11:23
RE:
TutDon said:
I have a prebuilt indicator that was working fine on MT4. After switching to ctrader and attempting to build the custom indicator I get an error message reading:-
Error : No algo source file was found in "colour.csproj".
How can I build the code without it throwing up this error message. Any help would be greatly appreciated
TIA
Hi,
If you send me your code I will try and fix it for you or tell you how you can fix it yourself.
replace (dot) with full stop.
Paul.
@ClickAlgo
ClickAlgo
16 Mar 2015, 09:24
Hello, I am listening, but I do not know how to solve your problem as I am new to this framework, but if you add some more information; as the description of the problem is a bit confusing for me and maybe other people too.
Paul. :-)
@ClickAlgo
ClickAlgo
16 Aug 2015, 13:19
RE:
hiba7rain said:
Hello,
Open your cbot, click on manage references and add the Hull indicator, if it is not showing then you will need to install it from the custom cbots by clicking on the cbot option in the menu above and search for the hull indicator.
Add a new user defined property:
Add a new private variable:
Now you can use it to filter:
@ClickAlgo