The MACD Decision making UDO, (already talked about) has Inputs: CrossOver, Lower, and Higher: Price1 BA Data, Column C; Price2, BA Data ColumnD; and Price 3, BA Data ColumnE
This UDO uses three EMA UDOs, (already named and code) to provide three numbers, Long, Short and Signal.
The UDO compares the Long, Short, and Signal to create a Value
When this Value Rises above CrossOver, it Sets the output to "BACK"
When the Value Drops below CrossOver, it Sets the output to ""
When the value Drops below Lower, it Sets the output to "CLOSETRADE"
When Value Rises above Lower, Sets the output to "LAY"
The output value must be set to the same value 3 times consecutively before an Output is actually done
Etc,Etc,Etc,