With last versions I had no problems to verify everything. But with 2.1.999.999 it seems to me MC has an old Problem to verify formulas. Wy I can´t verify the attached code ?
Best Regards.
Mike
New Version ... old Problem with VERIFY
- Marina Pashkova
- Posts: 2758
- Joined: 27 Jul 2007
Here it is ....
[/code]
Input: Price(Close), Length(50), OverSold(30), OverBought(70), OverSColor(Green), OverBColor(Red);
Vars: MyRSI(0);
MyRSI=RSI(Price,Length);
Plot1(MyRSI,"RSI");
Plot2(OverBought,"OverBot");
Plot3(OverSold,"OverSld");
Plot4(50,"Signal");
Plot5(55,"H");
Plot6(45,"L");
if MyRSI>OverBought then SetPlotColor(1,OverBColor) else if MyRSI<OverSold then SetPlotColor(1,OverSColor);
If MyRSI>50 then SetPlotColor(4,Blue) else if MyRSI<50 then SetPlotColor(4,Red);
If MyRSI>50 and MyRSI[1]<=50 then begin
SetPlotColor(5,Cyan);
SetPlotColor(6,Cyan);
End;
If MyRSI<50 and MyRSI[1]>=50 then Begin
SetPlotColor(5,Magenta);
SetPlotColor(6,Magenta);
End;
[/code]
Best Regards.
Mike[/code]
[/code]
Input: Price(Close), Length(50), OverSold(30), OverBought(70), OverSColor(Green), OverBColor(Red);
Vars: MyRSI(0);
MyRSI=RSI(Price,Length);
Plot1(MyRSI,"RSI");
Plot2(OverBought,"OverBot");
Plot3(OverSold,"OverSld");
Plot4(50,"Signal");
Plot5(55,"H");
Plot6(45,"L");
if MyRSI>OverBought then SetPlotColor(1,OverBColor) else if MyRSI<OverSold then SetPlotColor(1,OverSColor);
If MyRSI>50 then SetPlotColor(4,Blue) else if MyRSI<50 then SetPlotColor(4,Red);
If MyRSI>50 and MyRSI[1]<=50 then begin
SetPlotColor(5,Cyan);
SetPlotColor(6,Cyan);
End;
If MyRSI<50 and MyRSI[1]>=50 then Begin
SetPlotColor(5,Magenta);
SetPlotColor(6,Magenta);
End;
[/code]
Best Regards.
Mike[/code]
- Marina Pashkova
- Posts: 2758
- Joined: 27 Jul 2007