The paper investigates forex trading data using Weka to analyze risk management parameters for trading robots, focusing on stop loss and target profit levels. Experiments are conducted on datasets from two major currency pairs (EUR/USD and USD/JPY) to determine optimal trading strategies in both trending and ranging market conditions. The findings highlight that a significant percentage of records fluctuate within narrow pip ranges, suggesting strategies should account for market conditions to maximize trading effectiveness.