Add more then two true in TextSelector

No, you just need to think it through.

Why don't you try it and see!

1 Like

i tried it and as it was stated above

how to add the event value to the Textlist

test7

thank you

this what i com up with as my understanding for TextList

test8

image

how to add the RSI value to the end of the TextList

thank you

i try to use the code below but not working

RSI_IND=RSI(10);

below_30=  cross( 30, RSI_IND );
START_BUY_ZOON= RSI_IND < 30  AND RSI_IND >25;
CONFIRM_BUY_ZOON= RSI_IND < 25 AND RSI_IND >20 ;
above_30= cross( RSI_IND, 30 ); 
Buy_ZOON= RSI_IND < 20 ; 




//s4= RSI_IND < 20 ;

/*testind = 
 WriteIf( RSI_IND < 25 AND (Ref(RSI_IND,-1) >25 OR Ref(RSI_IND,-2) >25) ,"START BUY ZOON" ,
        WriteIf( RSI_IND < 20 AND (Ref(RSI_IND,-1) >20 OR Ref(RSI_IND,-2) >20) ,"CONFIRM BUY ZOON" ,
        WriteIf( RSI_IND < 20 AND (RSI_IND  > Ref(RSI_IND,-1) AND RSI_IND  > Ref(RSI_IND,-2)) ," BUY UP" ,
        WriteIf (RSI_IND < 20 , "BUY ZOON :" ," no"))));*/
       var = ValueWhen( below_30, Close );
       varelement = SelectedValue( below_30 );
        ss=ValueWhen(below_30,RSI_IND);


       TextSelector = 1 * below_30  + 2 * START_BUY_ZOON + 4 * CONFIRM_BUY_ZOON + 8 * above_30 + 9 * Buy_ZOON ; 
       TextList = "No Signal "+ Prec(RSI_IND,2) + "\nbelow_30\nSTART_BUY_ZOON\nbelow_30 & START_BUY_ZOON RSI= "+ Prec(ss,2)+ "\nCONFIRM_BUY_ZOON\nbelow_30 & CONFIRM_BUY_ZOON\nSTART_BUY_ZOON & CONFIRM_BUY_ZOON\nbelow_30 & START_BUY_ZOON & CONFIRM_BUY_ZOON \n"+
                   "above_30\nBuy_ZOON";
       
       //TextSelector = 1 * Cond1 + 2 * Cond2 + 4 * Cond3 + 8 * Cond4 + 16 * Cond5 + 32 * Cond6 + 64 * Cond7; // etc.
/* would give 0 if no signal, 1 if Cond1, 2 if Cond2, 3 if Cond1 and Cond2, 4 if Cond3, 5 if Cond1 and Cond3, 6 if Cond2 and Cond3, 7 if Cond1 and Cond2 and Cond3, 8 if Cond4 ... */
       Filter=1;
       AddColumn(RSI_IND,"rsi",1.2,colorDefault,colorDefault);
       AddColumn(below_30,"below_30",1.2,IIf(below_30,colorGreen,colorRed),colorDefault);
       AddColumn(START_BUY_ZOON,"START_BUY_ZOON",1.2,IIf(START_BUY_ZOON,colorGreen,colorRed),colorDefault);
       AddColumn(CONFIRM_BUY_ZOON,"CONFIRM_BUY_ZOON",1.2,IIf(CONFIRM_BUY_ZOON,colorGreen,colorRed),colorDefault);
       AddColumn(above_30,"above_30",1.2,IIf(above_30,colorGreen,colorRed),colorDefault);
         AddColumn(Buy_ZOON,"Buy_ZOON",1.2,IIf(Buy_ZOON,colorGreen,colorRed),colorDefault);
  //AddTextColumn(testind, "test", 1.0, colorDefault, colorDefault,100);
  AddMultiTextColumn(TextSelector, TextList  ,"check : "+ round(RSI_IND ), 1.0, colorDefault, colorDefault,100)

image

thank you

i used DateTime(); and ValueWhen

RSI_IND=RSI(10);

below_30=  cross( 30, RSI_IND );
START_BUY_ZOON= RSI_IND < 30  AND RSI_IND >25;
CONFIRM_BUY_ZOON= RSI_IND < 25 AND RSI_IND >20 ;
above_30= cross( RSI_IND, 30 ); 
Buy_ZOON= RSI_IND < 20 ; 

      
       dt = DateTime();
       tt=ValueWhen( below_30, dt ) ;
       rr=ValueWhen( tt, RSI_IND ) ;
       ClP = ValueWhen(DateTime(),rr,1);
        
       TextSelector = 1 * below_30  + 2 * START_BUY_ZOON + 4 * CONFIRM_BUY_ZOON + 8 * above_30 + 9 * Buy_ZOON ; 
       TextList = "No Signal "+ Prec(ClP,2) + "\nbelow_30"+ Prec(rr,2)+"\nSTART_BUY_ZOON\nbelow_30 & START_BUY_ZOON RSI= "+ Prec(ClP,2)+ "\nCONFIRM_BUY_ZOON\nbelow_30 & CONFIRM_BUY_ZOON\nSTART_BUY_ZOON & CONFIRM_BUY_ZOON\nbelow_30 & START_BUY_ZOON & CONFIRM_BUY_ZOON \n"+
                   "above_30\nBuy_ZOON";
                   
       
       //TextSelector = 1 * Cond1 + 2 * Cond2 + 4 * Cond3 + 8 * Cond4 + 16 * Cond5 + 32 * Cond6 + 64 * Cond7; // etc.
/* would give 0 if no signal, 1 if Cond1, 2 if Cond2, 3 if Cond1 and Cond2, 4 if Cond3, 5 if Cond1 and Cond3, 6 if Cond2 and Cond3, 7 if Cond1 and Cond2 and Cond3, 8 if Cond4 ... */
       Filter=1;
       AddColumn(RSI_IND,"rsi",1.2,colorDefault,colorDefault);
       AddColumn(tt,"tt",formatDateTime,1.2,colorDefault,colorDefault);
       AddColumn(rr,"rr",1.2,colorDefault,colorDefault);
       AddColumn(ClP,"ClP",1.2,colorDefault,colorDefault);
       AddColumn(below_30,"below_30",1.2,IIf(below_30,colorGreen,colorRed),colorDefault);
       AddColumn(START_BUY_ZOON,"START_BUY_ZOON",1.2,IIf(START_BUY_ZOON,colorGreen,colorRed),colorDefault);
       AddColumn(CONFIRM_BUY_ZOON,"CONFIRM_BUY_ZOON",1.2,IIf(CONFIRM_BUY_ZOON,colorGreen,colorRed),colorDefault);
       AddColumn(above_30,"above_30",1.2,IIf(above_30,colorGreen,colorRed),colorDefault);
         AddColumn(Buy_ZOON,"Buy_ZOON",1.2,IIf(Buy_ZOON,colorGreen,colorRed),colorDefault);
  //AddTextColumn(testind, "test", 1.0, colorDefault, colorDefault,100);
  AddMultiTextColumn(TextSelector, TextList  ,"check : "+ round(RSI_IND ), 1.0, colorDefault, colorDefault,100);

it shows in the column but different with textlist

image

why AB is doing that ?

i don't know even though we start to like each other .

dear Tomasz

is it possible to add the value of the indicator with the same date to the TextList.

No, that is not possible. It is not obvious why you're trying to put so much information into a single text column, but perhaps your needs would be better served by just writing data to a text/CSV file.

1 Like

dear mradtke

thank you for your reply

i will make different indicator in exploration with conditions as rsi and others
when i add the value of the indicator in the and of the text i will not need to add Columns for the indicator

like the current value of the indicator i add it in the title as below

image

but i was thinking if there is away to add the value by comparing the date of the event to the date Column and add the value of the indicator in that date ( the front of the date) to the text based in the sorting

i am not able to explain it right . forgive me

thank you

if i try to use for statement it will work.

can not be done in AB

thank you

Moderator comment: that’s false assumption based on lack of knowledge

I like the title

AmiBroker - much more than just ordinary technical analysis software

Remember that you can just use AddRow function where you can freely output ANYTHING

https://www.amibroker.com/f?addrow

There are simply no “impossible” things in AmiBroker, you just may not be aware how to do use existing functionality

This is the solution
I forgot that you are the owner

i try most what i learned but not working.
even though I spend a lot of time trying to coding formulas instead of trading.

and as you know I do not have Bachelor degree from AMIBROKER University of Science and Technology.

I did not pass the test

thank you

Everything worthwhile is uphill. Keep working and you will get there.

1 Like

all readers if any

this not correct sorry

test8

up to 8 is okay

You really need to stop SMS style of communication and start writing grammatically correct and full fledged, meaningful sentences and questions.

Unfortunately your current writing is below minimum standards required on this forum. Please follow this advice: How to ask a good question

1 Like

This topic was automatically closed 100 days after the last reply. New replies are no longer allowed.