cne53622d / Publications
Forum
Previously used Lotsize in OrderSend not recognized anymore
Hello everyone, I use a function to calculate the optimal lotsize for any trade, the return value is as seen below. This function is supposed to deliver a 0.XX double so that the OrderSend function can properly open an order. double optimalLotSizeRounded = MathRound (optimalLotSize/MarketInfo(
MathRound Problem
Hey everyone, I wanted to create a function for risk management as seen in the code below. double OptimalLotSize( double maxRiskPercentage, double ATR_Lot_Multiplier) { double accEquity = AccountEquity(); double lotSize = MarketInfo( _Symbol ,MODE_LOTSIZE); double tickValue = MarketInfo(