I would like to know if it is possible in AFL to create 2 buttons .First one should hide all drawn lines and 2nd should hide all the indicators such as moving averages, Bollinger bands etc.
this for indicators
https://forum.amibroker.com/t/gui-and-displaying-values-of-indicator/27965/4?u=needhelp
it is not from me but i did not find the source of code ( some one code it ) thank you for the real coder
text = "show,hide";
GuiToggle( StrExtract(text,0), toggleID = 1, x = 0, y = 15, width = 50, height = 25, notifyflag = 1 );
guicheck = GuiGetCheck(toggleID);
// ################################################ ADD DIFERINT MOVING AVARAGE SA EA TMA WMA 5 15 30 50 100 150 200 ####################################################
Plot( C, "Price", colorDefault, styleCandle );
// SMA
MA5 = MA(C,5);
MA15 = MA(C,15);
MA30 = MA(C,30);
if ( guicheck ) {
GuiSetText( StrExtract(text,1), toggleID );
//
Plot( MA5, "MA5", colorRed,styleThick );
Plot( MA15, "MA15", colorGold ,styleThick);
Plot( MA30, "MA30", colorGreen,styleThick );
}
Thank a lot, need help. This is very helpful .I am able to hide indicator texts and plots with this.
I still do not know how to hide the manually drawn drawings such as horizontal and trendlines with a buttton.
Thank you for the tip to use Layers. I had totally forgotten about it.
Yes, Layers are designed specifically for this purpose (quickly hiding/showing parts of chart).
This topic was automatically closed 100 days after the last reply. New replies are no longer allowed.