Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
Hoping someone can help me with this code. I have multicharts, thus it uses powerlanguage, which I believe works the same as easylanguage (sorry I'm a newby at this). I found this code online for easylanguage, and am trying to create it for my multicharts. I am getting an error (please see pic attached).
inputs:
double RSIPrice( Close ), { the price to be used in the calculation of the RSI }
int RSILength( 14 ), { the number of bars to be used in the calculation of the RSI }
int RSISmoothLength( 5 ), { the length of the exponential moving average of the
RSI; this value determines the smoothing factor used in the exponential moving
average calculation }
int ATRLength( 27 ), { the length of the exponential moving average of the
true range of the smoothed RSI }
int ATRSmoothLength( 27 ), { the length of the exponential moving average of the
moving average of the true range of the smooth RSI }
double FastATRMult( 2.618 ), { a scaling factor that is multiplied by the moving
average of the moving average of the true range of the smooth RSI }
double SlowATRMult( 4.236 ), { a scaling factor that is multiplied by the moving
average of the moving average of the true range of the smooth RSI }
double SmoothRSIAlertLevel( 50 ) ; { if alerts are enabled for the indicator, an
alert will be triggered if the smoothed RSI crosses the level specified by this
input }
variables:
double RetVal( 0 ), double oSmoothRSI( 0 ),
double oFastTL( 50 ),double oSlowTL( 50 ),
intrabarpersist bool OkToPlot( false ) ;
RetVal = QQE( RSIPrice, RSILength, RSISmoothLength, ATRLength, ATRSmoothLength,
FastATRMult, SlowATRMult, oSmoothRSI, oFastTL, oSlowTL ) ;
{ do not plot until all exponential moving averages have stabilized }
once( CurrentBar > 4 * MaxList( RSILength, RSISmoothLength, ATRLength,
ATRSmoothLength ) )
OkToPlot = true ;
if OkToPlot then begin
Plot1( oSmoothRSI, "SmoothRSI" ) ;
Plot2( oFastTL, "FastTL" ) ;
Plot3( oSlowTL, "SlowTL" ) ;
Plot4( SmoothRSIAlertLevel, "SmRSIAlrtLev" ) ;
{ alerts }
if AlertEnabled then
if oSmoothRSI crosses over SmoothRSIAlertLevel then
Alert( "SmoothRSI crossing over " + NumToStr(SmoothRSIAlertLevel, 5 ) )
else if oSmoothRSI crosses under SmoothRSIAlertLevel then
Alert( "SmoothRSI crossing under " + NumToStr(SmoothRSIAlertLevel, 5 ) );
end ; // if OkToPlot
Can you help answer these questions from other members on NexusFi?
your code is an indicator that needs an underlying function called QQE, which seems to be missing. You can probably get it somewhere where you got the indicator code.