New Version ... old Problem with VERIFY

Questions about MultiCharts and user contributed studies.
User avatar
piranhaxp
Posts: 241
Joined: 18 Oct 2005
Has thanked: 4 times
Been thanked: 30 times

New Version ... old Problem with VERIFY

Postby piranhaxp » 28 Sep 2007

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
Attachments
MC-Prob.png
(44.66 KiB) Downloaded 452 times

User avatar
Marina Pashkova
Posts: 2758
Joined: 27 Jul 2007

Postby Marina Pashkova » 28 Sep 2007

Hello,

Could you send us the code itself?

Thank you.

User avatar
piranhaxp
Posts: 241
Joined: 18 Oct 2005
Has thanked: 4 times
Been thanked: 30 times

Postby piranhaxp » 28 Sep 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]

User avatar
piranhaxp
Posts: 241
Joined: 18 Oct 2005
Has thanked: 4 times
Been thanked: 30 times

Postby piranhaxp » 08 Oct 2007

Hi,

is MC support unable to give me a solution to verify the attached code.

Thx. Best Regards.

Mike

User avatar
Marina Pashkova
Posts: 2758
Joined: 27 Jul 2007

Postby Marina Pashkova » 08 Oct 2007

Dear Mike,

I'm not sure why you can't compile the attached code. I just compiled it in PLEditor and applied it to a chart and it worked fine.


Return to “MultiCharts”