Genetic Network Programming (GNP) has been proposed as a graph-based evolutionary algorithm. GNP works well especially in dynamic environments due to its graph structures. In addition, a stock trading model using GNP with Importance Index (GNP-IMX) has been proposed. IMX is one of the criterions for decision making. However, the values of IMXs must be determined by our experience/knowledge. Therefore in this paper, IMXs are adjusted appropriately during the stock trading in order to determine buying or selling stocks. Moreover, newly defined flag nodes are introduced to GNP, which can appropriately judge the current situation, and also contributes to the use of many kinds of nodes in GNP programs. In the stock trading simulations, the effectiveness of the proposed method is confirmed. Categories and Subject Descriptors I.2 [Artificial Intelligence]: Miscellaneous General Terms Algorithms Keywords Genetic Programming, Stock trading model, Decision making, Technical analysis