How can i get the Exponential Moving Average to work with a different time frame in a cbot?
How can i get the Exponential Moving Average to work with a different time frame in a cbot?
08 Jan 2020, 20:52
So i m trying to use 4 exponential moving average in a different time frame for example using the 1m time frame in 1h
this is how i declare the TimeFrameEMA.
[Parameter("Time Frame 4 EMA", DefaultValue = "Hour")]
public TimeFrame TimeFrameEMA { get; set; }
I was looking how people make the indicator get another time frame and they do it like this but why do i get that error?
Replies
yeril123@hotmail.com
09 Jan 2020, 22:01
RE: You are right
PanagiotisCharalampous said:
Hi there,
As the message says, you are using more parameters than needed. You should be using only two e.g. EMA1_Series.Close. What is SourceSeries?
Best Regards,
Panagiotis
The SourceSerires was a DataSeries type, i put it there because i thought it needed it but it looks like it doesnt need that, thanks you very very much!! i am learning c# and i am still trying to learn how it works in ctrader, do you mind if i ask you if there is a place where i can learn the ctrader API or is just in the guides? and thanks a lot!
@yeril123@hotmail.com
PanagiotisCharalampous
10 Jan 2020, 09:07
Hi there,
You can check the API Reference as well. For whatever is missing, feel free to ask here!
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
09 Jan 2020, 08:32
Hi there,
As the message says, you are using more parameters than needed. You should be using only two e.g. EMA1_Series.Close. What is SourceSeries?
Best Regards,
Panagiotis
Join us on Telegram
@PanagiotisCharalampous