Information
Username: | ellcz |
Member since: | 20 May 2015 |
Last login: | 20 May 2015 |
Status: | Active |
Activity
Where | Created | Comments |
---|---|---|
Algorithms | 0 | 15 |
Forum Topics | 0 | 0 |
Jobs | 0 | 0 |
Last Algorithm Comments
This should be free or paid? Because on the site, you have 50euro per year. Thanks! :)
Does this repaint or not? I was used to MT4 but never thought about repainting issue on cTrader. Thank You! :)
Lovely indi. Looks great on my chart.
I guess its repainter, right? No fixes whatsoever :D
Well, i can try as I learn.. :)
This code is fu... mess when tried to use it with robots.. It's impossible.. :('
Oh Im stupid.. I almost fixed it on my own.. But when i updated this code "<HMASignals>" calgo fixed it automatically to "<HMASignal>" so there was new error which makes me cunfused..
However, i made it thanks to you Paul. And it is profitable on its own with some good settings. I will probably update this and see what i can do. :)
For now i added just TP and SL.
So thanks again!
I'm totally out of ideas now.. :/ I wanted to try this indicator for my own cbot, so i have only this code. Did i forget something? Ummm, your HMA Signal is added as reference. (Via Manage References)
using System;
using System.Linq;
using cAlgo.API;
using cAlgo.API.Indicators;
using cAlgo.API.Internals;
using cAlgo.Indicators;
namespace cAlgo
{
[Robot(TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)]
public class HMASmartBotFirstEdition : Robot
{
[Parameter(DefaultValue = 0.0)]
public double Parameter { get; set; }
private MarketSeries HmaDaySeries;
private HMASignals hmaSignal;
protected override void OnStart()
{
// Put your initialization logic here
HmaDaySeries = MarketData.GetSeries(TimeFrame.Daily);
hmaSignal = Indicators.GetIndicator(HmaDaySeries, 21, false, false, 3, false, 50);
}
protected override void OnTick()
{
// Put your core logic here
}
protected override void OnStop()
{
// Put your deinitialization logic here
}
}
}
Well, I'm still learning C# so... It's ok. I knew there is missing something, but i could not find it. However, when I update your code like this, compiler still saying that error "Error CS0411: The type arguments for method cAlgo.API.Internals.IIndicatorsAccessor.GetIndicator<TIndicator>(params object[]) cannot be inferred from the usage. Try specifying the type arguments explicitly."
What is this? Shouldn't we do it like in this example "sma = Indicators.GetIndicator<SampleSMA>(Source, SmaPeriod);" instead of "hmaSignal = Indicators.GetIndicator(HmaDaySeries, 21, false, false, 3, false, 50);
Or these brackets <> doesn't work for custom indis?
Did EXACTLY what you said, got two errors.
Error CS0103: The name `hmaSignal' does not exist in the current context. And next error is..
Error CS0411: The type arguments for method cAlgo.API.Internals.IIndicatorsAccessor.GetIndicator<TIndicator>(params object[]) cannot be inferred from the usage. Try specifying the type arguments explicitly.
Any help? please?
Does this repaint/lag? Seems like it works like simple MA, but kinda nicer look. :D Thx :)