I need help in solving my problem .. I have defined RSI 6 . I want to get displayed RSI6 value on screen in YELLOW if value is above 50.999 and in WHITE if value is below 45.000 . How to do this . Following is not working
periods5 = Param( "Periods5", 6, 1, 200, 1 );
//Plot( RSI( periods5), _DEFAULT_NAME(), ParamColor( "Color", colorCycle ), ParamStyle("Style") );
Cond21= RSI(periods5) >50.999;
Cond22= RSI(periods5) <45.000;
GfxSetTextColor( ParamColor("Color",colorYellow ));
IIf(Cond21, GfxTextOut(" RSI: " +RSI(periods5),Hor+880, Ver+180),0);
IIf(Cond22, GfxTextOut(" RSI: " +RSI(periods5),Hor+880, Ver+180),0);
You do not need GfxSetTextColor for that.
Read carefully https://www.amibroker.com/guide/h_indbuilder2.html
Only users with License Verified Badge are allowed to post on this forum.
A new custom badge for the forum has been introduced: License Verified.
On users profile page it is visible like this:
Users that have such badge in their profile page are verified holders of AmiBroker license.
The badge is automatically granted if forum account uses same email address as email used for purchase. Approximately 44% of forum users have that badge granted automatically.
If you use different email for the foru…
Search the forum
It is good idea to search the forum before asking same questions over and over. To search the forum just use magnifying glass icon in the upper right corner
Also it is good idea to use
Google and add +site:amibroker.com to your search term to limit the output to content of amibroker.com web site. Doing so will include results from Knowledge Base and Users' Guide
Enter the AFL code properly
It is of utmost importance as improperly formatted code results in syntax error…