GfxDrawImage: - Is it Possible to toggle an image on or off?

For example if a coded candlestick chart pattern appears, can an image of that pattern be shown only while the cursor is resting on it?

Sure.

bi = BarIndex();
gcx = GetCursorXPosition(0);
gcxpos = Lookup(bi, gcx);
gcy = GetCursorYPosition(0);

Plot( C, "Price", colorDefault, styleBar );

RequestMouseMoveRefresh();

GfxSetCoordsMode(1);

if ( gcxpos == LastValue(bi) ) {
	GfxDrawImage("C:\\your_pic.png", gcxpos, LastValue(H)*1.02);
}

8

4 Likes

Hello Sir, why can't my place show pic.jpn? Thanks

Thanks very much. Also appreciate the prompt response.

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