Requesting help using MC MA Ribbon indicator to define trend in a trading system
Can anyone help me me with what is probably a newbie question. I want to add a trend filter to my trading system as a condition. I want to use the Multicharts MA Ribbon indicator (Mov Avg Exp Ribbon) that comes with MultiCharts and I want trend to be defined when the fastest MA crosses the slowest. How can I do this? TIA
A quick look at the code indicates it is using a single array "arr2" to hold the values of 8 moving averages. I would just take this Indicator code and convert it to a Function, then have that function return the array values to your Signal.
From the signal, just look at the minimum value and the maximum value, and look for the cross over.
You can open up existing Functions and see how they differ from Indicators. Mainly two differences: a) the input block keywords, and b) how they return values. Make those two adjustments, and delete the Plots(), and you now have your function. You can also open up example Signals and see how they call functions to get values.
Want my help or input? 1) Please don't PM me, instead make a post on the forum. 2) In your post, mention me by typing @Big Mike.
If you want to support our community, become an Elite Member.