jeremymgp
08-09-2007, 08:55 AM
Hello,
I'm learning NinjaScript from scratch with only basic programming experience and am having trouble finding relevant sample scripts to get me going. In particular can anyone reference a very simple MACD indicator that:
- Buys when the MACD crosses zero from below
- Sells when the MACD crosses zero from above
And ideally also:
- Can recognize "double sells/double buys" on the chart, for example sometimes the MACD will return to zero from above, but instead of crossing zero will bounce back above zero again for a second buy.
- Gives audio signals when a trade is entered/exited.
- If possible ignore insignificant changes of the MACD indicator, ie. "whiplash" or small "bumps" on the chart.
Thanks for your patience with a newbie, at the moment I'm not making much progress on my own and would really appreciate the help,
Best Regards,
Jeremy
I'm learning NinjaScript from scratch with only basic programming experience and am having trouble finding relevant sample scripts to get me going. In particular can anyone reference a very simple MACD indicator that:
- Buys when the MACD crosses zero from below
- Sells when the MACD crosses zero from above
And ideally also:
- Can recognize "double sells/double buys" on the chart, for example sometimes the MACD will return to zero from above, but instead of crossing zero will bounce back above zero again for a second buy.
- Gives audio signals when a trade is entered/exited.
- If possible ignore insignificant changes of the MACD indicator, ie. "whiplash" or small "bumps" on the chart.
Thanks for your patience with a newbie, at the moment I'm not making much progress on my own and would really appreciate the help,
Best Regards,
Jeremy