code problem  [SOLVED]

Questions about MultiCharts and user contributed studies.
plaforte
Posts: 75
Joined: 16 Aug 2012
Has thanked: 17 times
Been thanked: 2 times

code problem

Postby plaforte » 09 Oct 2018

Hello, I am not programmer but try to recycle code from existing study that works. It is a simple PaintBar study based on the value of an oscillator. This oscillator formula works well already on other charts, and the paintbar section also works on other charts as well but when I put these 2 segments together I get no plot. Can someone point me in the right direction.

Thank you

Code: Select all

Inputs:
PlotPriceH( High ),
PlotPriceL(low);


Value1 = Momentum(RSI(Close,14),9) + Average(RSI(Close,3),3) ;


If value1 > 77.5 then
begin
PlotPaintBar( High, Low, "DoW" ) ;
end;

User avatar
TJ
Posts: 7740
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1033 times
Been thanked: 2221 times

Re: code problem

Postby TJ » 09 Oct 2018

Try this:

Code: Select all


Inputs:
PlotPriceH( High ),
PlotPriceL(low);


Value1 = Momentum(RSI(Close,14),9) + Average(RSI(Close,3),3) ;


If value1 > 77.5 then
begin
Plot900( High, "DoW.H" ) ; // set plot style as BAR HIGH
Plot901( Low, "DoW.L" ) ; // set plot style as BAR LOW
end;

plaforte
Posts: 75
Joined: 16 Aug 2012
Has thanked: 17 times
Been thanked: 2 times

Re: code problem

Postby plaforte » 10 Oct 2018

Thank you TJ, I managed to get it work with your code. It seems that the best for my need would be to learn to program a strategty. Could you send me a link to manual and videos about simple strategy just based on an oscillator, I did not find it through my search.

By the way in your big reference message in the FAQ section, the first link there to MC users manual, does not work any more.

Best regards

User avatar
TJ
Posts: 7740
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1033 times
Been thanked: 2221 times

Re: code problem

Postby TJ » 10 Oct 2018

Please Google for the free ebooks
viewtopic.php?t=6929

plaforte
Posts: 75
Joined: 16 Aug 2012
Has thanked: 17 times
Been thanked: 2 times

Re: code problem  [SOLVED]

Postby plaforte » 10 Oct 2018

Thank you TJ


Return to “MultiCharts”