You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
This looks very interesting since I'm a little bit interested in trading (stocks, but still) and relatively new to GO.
If I'm correct all I have to do is to create new file for dedicated indicator which would implement the Indicator interface? Just similarly to the ema.go? If that's right I can work with SMA as it looks like the easiest one and then maybe tackle the harder indicators
We can create and initialize indicators for chats in Ninjabot.
Example:
ninjabot/examples/backtesting/main.go
Lines 58 to 63 in 516e750
A indicator is a simple struct that implements the follow interface:
Here, we have a simple example of Exponential Moving Average (EMA): https://github.com/rodrigo-brito/ninjabot/blob/516e75064107daf73495bf1d091b5dc1cba18c09/plot/indicator/ema.go
Indicators Roadmap
The text was updated successfully, but these errors were encountered: