I am trying to create a market Analyzer that tell me when my signals are met.
Here is what I am trying to do.
When current price crosses above 50 SMA & RSI Oscillator crosses above the 50 (Midline)
I would like to assign a value of 1 when this happens so it will plot a signal in my Market Analyzer
When price crosses below 50 SMA & RSI Oscillator crosses below the 50 (Midline)
I would like it to plot a -1
If neither of these things are happening just plot a 0.
I thought I had it the other night and it keeps coming back as a 0 even when the conditions are met.
This is for Ninja Trader 7
Comment