Forum

converting ask to a double

Hi guys, so i'm attempting to create code for a Take Profit on a buy trade. code will be a user function to be called upon when order placement happens. The rules are: Take Profit to be set at the closest institutional level 00 , 20 , 50 , 80 as long as it's more than the Stop Loss ie greater than

Code help

//+---------------------------------------------------------------------------------------------------+ //| HLHB Trend-Catcher.mq4 | //| Copyright