my first try below code RSI

Questions about MultiCharts and user contributed studies.
Jimmyrakete
Posts: 147
Joined: 04 Jun 2014
Has thanked: 2 times

my first try below code RSI

Postby Jimmyrakete » 20 Jul 2014

my first try below code

if RSI (14) is less than 30 then Buy

but I get error can any one help me

Code: Select all

inputs:
Price( Close ),
RSI( 14 );

variables:
var0( 0 );

var0 = RSI ;





if var0 < 30
begin
PLot1( "BUY", "signal",green ) ;
end

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

Re: my first try below code RSI

Postby TJ » 20 Jul 2014

my first try below code
if RSI (14) is less than 30 then Buy
but I get error can any one help me

Code: Select all

inputs:
Price( Close ),
RSI( 14 );
variables:
var0( 0 );
var0 = RSI ;
if var0 < 30
begin
PLot1( "BUY", "signal",green ) ;
end
This is a tough one to answer... but I will try.
Tough to answer, not because it is a difficult question, but because it involves some basics that you must know before continuing.

Inside the PowerLanguage Editor, you will find that "RSI" is both an indicator as well as a function. (Look under both tabs).
(hint: you should not use "RSI" as an input or variable name.)

1) You can find the description and usage example of the function in this ebook.
(you can google for a free copy)
EasyLanguage® Functions & Reserved Words Reference

2) You can go to the PowerLangauage Editor, open the indicator code,
and see how to implement RSI in your analysis.

This will be a good first step in your quest for custom indicators.

Good luck, and let us know how you make out.


Return to “MultiCharts”