Slideshow

Cheap Web Hosting Sites

Social Icons

'

Sunday, May 8, 2011

Replace '1' & '0' in exploration window with 'Buy' & 'SELL'

Have you ever perturbed with ‘1’ & ‘0’ in the Buy/Sell column of the exploration window in the Amibroker?
Just Rejoice!
Put this simple line in your exploration and you shall see ‘Buy’ & ‘Sell’ in the exploration window that too with colour background, green for Buy and Red for Sell.

And that line is-

AddTextColumn( WriteIf(Buy,"BUY",WriteIf(Sell,"SELL","")) , "Buy/Sell", 1.2 , colorBlack, IIf( Buy, colorLime,IIf(Sell,colorRed,colorGreen) ));

0 Comments:

Post a Comment

Related Posts Plugin for WordPress, Blogger...