converting an indicator from another platform
converting an indicator from another platform
08 Mar 2021, 14:58
Dear Panagiotis,
thank you very much for all your former support!
I want to convert and publish an indicator from TradingView to cTrader, and have the following stements there:
price = input(close, "Period") and
mma = ma(mmaMode, price * 1000, mmaLength)
Now my question: How do I convert this to c# for cTrader?
I can use Bars.ClosePrice as source, but I don't the part with "price * 1000"
Can I ask you to point me in the right direction,
Kindest regards,
Replies
xabbu
09 Mar 2021, 11:52
Thank you Panagiotis,
I have done so with success and, as promised, I have published the TDFI indicator,new for cTrader - but wellknown on other platforms. I would be very happy if you have the time, take a look and let me know if and how I can improve it for me and the cTrader community. Kindest regards,
@xabbu
PanagiotisCharalampous
09 Mar 2021, 13:01
Hi xabbu,
Thanks for the contribution! I will have a look as soon as I find some time.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
08 Mar 2021, 15:05
Hi xabbu,
You could consider creating a new indicator that will return as a result the value of ClosePrice * 1000 and use that as an input to the MA.
Best Regards,
Panagiotis
Join us on Telegram
@PanagiotisCharalampous