From the manual it seems you can use the following RSI
RSI(IDataSeries input, int period, int smooth)
The idea is to test the difference between H,C,O,L,(H+L/2), etc.
I've tried to integrate that in a custom strategy but without success so far. This is an extract of my code:
#region Variables
// Wizard generated variables
private string vinputrsi = @"Close"; // Default setting for Vinputrsi
...
// Condition set 1
if (CrossAbove(RSI(Vinputrsi, 14, 3), 20, 1)
...
#region Properties
[Description("")]
[GridCategory("Parameters")]
public string Vinputrsi
{
get { return vinputrsi; }
set { vinputrsi = value; }
}
I have the following errors message CS1502 and NT1503 when I try to compile the custom strategy.
Any brilliant ideas?
Kind regards,
Chris
Comment