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.